nixfiles/home/gui/environments/sway/zsh-autostart.nix
ChaotiCryptidz 26190df018 pavucontrol
2022-02-13 13:57:39 +00:00

19 lines
423 B
Nix

_: {
programs.zsh.profileExtra = ''
# If running from tty1 start sway
if [ "$(tty)" = "/dev/tty1" ]; then
systemctl --user unset-environment \
SWAYSOCK \
I3SOCK \q
WAYLAND_DISPLAY \
DISPLAY \
IN_NIX_SHELL \
__HM_SESS_VARS_SOURCED \
GPG_TTY \
NIX_PATH \
SHLVL
exec env --unset=SHLVL systemd-cat -t sway -- sway
fi
'';
}