nixos, home, sway: fix autostart command

This commit is contained in:
Guanran Wang 2023-11-21 19:58:56 +08:00
parent 036cd93da3
commit 15a2fe7ffe
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -15,8 +15,9 @@
./components/waybar.nix
];
# https://wiki.archlinux.org/title/Fish#Start_X_at_login
programs.fish.loginShellInit = ''
if test -z "$Display" -a "$XDG_VTNR" = 1
if test -z "$DISPLAY" -a "$XDG_VTNR" = 1
exec sway
end
'';