zprofile: use smarter pre-gui checks

This commit is contained in:
leo 2023-05-24 01:31:25 +02:00
parent fc186ba2de
commit 6e06f5773f
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

View File

@ -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