nixos-config/home/xinitrc

22 lines
681 B
Plaintext

cd "$HOME"
if test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval $(dbus-launch --exit-with-session --sh-syntax)
fi
systemctl --user import-environment DISPLAY XAUTHORITY
if command -v dbus-update-activation-environment >/dev/null 2>&1; then
dbus-update-activation-environment DISPLAY XAUTHORITY
fi
xwallpaper --zoom "$HOME"/img/wallpaper
systemctl stop --user sxhkd.scope
systemd-cat -t sxhkd systemd-run --user --scope --property=OOMPolicy=continue -u sxhkd sxhkd -m 1 &
systemctl restart --user dunst
systemctl restart --user picom
systemctl restart --user polybar
systemctl restart --user network-manager-applet
systemctl restart --user battery-check.timer
exec berry