From bace762f66eeefeebda72a6600ce4371c059f9a2 Mon Sep 17 00:00:00 2001 From: winston Date: Tue, 25 Oct 2022 20:09:41 +0200 Subject: [PATCH] feat: set wayland env vars if in wayland session --- dot_zshenv | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dot_zshenv b/dot_zshenv index 9942698..c0eb01c 100644 --- a/dot_zshenv +++ b/dot_zshenv @@ -1,3 +1,9 @@ # vim:ft=zsh:fenc=utf-8 export ZDOTDIR=$HOME/.config/zsh . $ZDOTDIR/.zshenv + +if [ "$XDG_SESSION_TYPE" = "wayland" ]; then + export GDK_BACKEND=wayland + export QT_QPA_PLATFORM=wayland-egl + export MOZ_ENABLE_WAYLAND=1 +fi