sway: Setup autostart after tty1 login

This commit is contained in:
histalek 2022-05-22 06:27:20 +02:00
parent 73f8e1934a
commit 740ec0a816
No known key found for this signature in database
GPG key ID: ED1D6449704FDE03

View file

@ -1,6 +1,9 @@
[ -f ~/.profile ] && . ~/.profile
# Interesting note on `sway` and `exec sway`: https://github.com/swaywm/sway/issues/4091
#Ref.: https://github.com/swaywm/sway/wiki#login-managers
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
exec sway
fi