Start sway on tty1

This commit is contained in:
Pavle Portic 2024-02-05 10:54:18 +01:00
parent cf1a9b96e6
commit aec5975118
Signed by: TheEdgeOfRage
GPG Key ID: 66AD4BA646FBC0D2
2 changed files with 5 additions and 5 deletions

View File

@ -184,7 +184,7 @@ assign [app_id="(?i)firefox"] $firefox
assign [app_id="(?i)chromium"] $firefox
assign [app_id="org.telegram.desktop"] $telegram
assign [app_id="thunderbird"] $thunderbird
assign [app_id="(?i)slack"] $telegram
assign [class="(?i)slack"] $telegram
for_window [app_id="Lxappearance"] floating enable
for_window [app_id="tidal-hifi"] move to workspace $telegram

View File

@ -63,9 +63,9 @@ if which pyenv &> /dev/null; then
eval "$(pyenv init -)"
fi
# startx on tty1
[[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]] && exec startx -- vt1
# sway on tty2
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [[ $(tty) = /dev/tty2 ]]; then
# sway on tty1
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [[ $(tty) = /dev/tty1 ]]; then
exec sway
fi
# startx on tty2
[[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]] && exec startx -- vt1