.zshrc: Set variables for Wayland applications

Some application UI toolkits need to specifically be told that we
want to use Wayland instead of XWayland.
This commit is contained in:
Alan Orth 2020-02-10 14:00:41 +02:00
parent 68e7413c63
commit 44996e495f
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 10 additions and 0 deletions

10
.zshrc
View File

@ -66,6 +66,16 @@ elif [[ "$OSTYPE" =~ ^linux.*$ ]]; then
# $ npm config set prefix ~/.node_modules
# $ npm install -g bower grunt grunt-cli
PATH=$PATH:~/.node_modules/bin
if [[ -n $WAYLAND_DISPLAY ]]; then
export MOZ_ENABLE_WAYLAND=1
export KITTY_ENABLE_WAYLAND=1
export QT_QPA_PLATFORM=wayland-egl
export CLUTTER_BACKEND=wayland
# 2020-02-10: https://github.com/swaywm/sway/wiki#issues-with-java-applications
export _JAVA_AWT_WM_NONREPARENTING=1
export SDL_VIDEODRIVER=wayland
fi
fi
alias ls='ls -F --color=auto'