zprofile: use smarter pre-gui checks
This commit is contained in:
parent
fc186ba2de
commit
6e06f5773f
@ -74,13 +74,13 @@ if [[ -z $DISPLAY ]]; then
|
||||
|
||||
test -f ~/.zsh/bemenu-dracula/bemenu-dracula && . ~/.zsh/bemenu-dracula/bemenu-dracula
|
||||
|
||||
if [[ $(tty) == /dev/tty1 ]]; then
|
||||
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
|
||||
export GTK_IM_MODULE=ibus
|
||||
export QT_IM_MODULE=ibus
|
||||
export XMODIFIERS=@im=ibus
|
||||
export XDG_CURRENT_DESKTOP=sway
|
||||
exec systemd-cat --identifier=sway sway > $XDG_RUNTIME_DIR/sway.log 2>&1
|
||||
elif [[ $(tty) == /dev/tty2 ]]; then
|
||||
elif [ "${XDG_VTNR}" -eq 2 ]; then
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
exec systemd-cat --identifier=gnome-session gnome
|
||||
|
Loading…
Reference in New Issue
Block a user