From 740ec0a816c8d45f6277718db81e712527e7ee82 Mon Sep 17 00:00:00 2001 From: histalek Date: Sun, 22 May 2022 06:27:20 +0200 Subject: [PATCH] sway: Setup autostart after tty1 login --- .zlogin | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.zlogin b/.zlogin index 7bba26f..01a6b46 100644 --- a/.zlogin +++ b/.zlogin @@ -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