Start sway on tty1
This commit is contained in:
parent
cf1a9b96e6
commit
aec5975118
|
@ -184,7 +184,7 @@ assign [app_id="(?i)firefox"] $firefox
|
||||||
assign [app_id="(?i)chromium"] $firefox
|
assign [app_id="(?i)chromium"] $firefox
|
||||||
assign [app_id="org.telegram.desktop"] $telegram
|
assign [app_id="org.telegram.desktop"] $telegram
|
||||||
assign [app_id="thunderbird"] $thunderbird
|
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="Lxappearance"] floating enable
|
||||||
for_window [app_id="tidal-hifi"] move to workspace $telegram
|
for_window [app_id="tidal-hifi"] move to workspace $telegram
|
||||||
|
|
||||||
|
|
|
@ -63,9 +63,9 @@ if which pyenv &> /dev/null; then
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# startx on tty1
|
# sway on tty1
|
||||||
[[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]] && exec startx -- vt1
|
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [[ $(tty) = /dev/tty1 ]]; then
|
||||||
# sway on tty2
|
|
||||||
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [[ $(tty) = /dev/tty2 ]]; then
|
|
||||||
exec sway
|
exec sway
|
||||||
fi
|
fi
|
||||||
|
# startx on tty2
|
||||||
|
[[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]] && exec startx -- vt1
|
||||||
|
|
Loading…
Reference in New Issue