fish: Start sway if running from tty1

sway seems to not start at all when using lightdm to login. We disabled
lightdm and now just use the login shell to start sway. sway never
recommended login managers so this was long due anyways.

See https://github.com/swaywm/sway/wiki#login-managers.
This commit is contained in:
Sanchayan Maity 2021-10-22 13:15:14 +05:30
parent db9f8c8f58
commit 9bc28d47a3

View file

@ -0,0 +1,5 @@
# If running from tty1 start sway
set TTY1 (tty)
if test -z "$DISPLAY"; and test $TTY1 = "/dev/tty1"
exec sway
end