From aec597511862aadd89ed61809c38fcc1e3061e16 Mon Sep 17 00:00:00 2001 From: TheEdgeOfRage Date: Mon, 5 Feb 2024 10:54:18 +0100 Subject: [PATCH] Start sway on tty1 --- dot_config/sway/config.tmpl | 2 +- dot_zshrc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dot_config/sway/config.tmpl b/dot_config/sway/config.tmpl index 6895703..2eec6f9 100644 --- a/dot_config/sway/config.tmpl +++ b/dot_config/sway/config.tmpl @@ -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 diff --git a/dot_zshrc b/dot_zshrc index b15fca8..7dadfff 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -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