From 670523490e4a4780591f728ba1ad9a68cb5ef559 Mon Sep 17 00:00:00 2001 From: sev Date: Mon, 16 Oct 2023 19:30:24 -0500 Subject: [PATCH 1/1] .zshrc: don't override graphical mode env vars --- etc/zsh/.zshrc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/etc/zsh/.zshrc b/etc/zsh/.zshrc index d49afaa..2c04ca6 100644 --- a/etc/zsh/.zshrc +++ b/etc/zsh/.zshrc @@ -22,13 +22,12 @@ export SAVEHIST=1000 export PYTHONSTARTUP=${XDG_CONFIG_HOME:-~/.config}/pythonrc ## vim export VIMINIT='let$MYVIMRC=($XDG_CONFIG_HOME??($HOME."/.config"))."/vim/.vimrc"|execute"source"$MYVIMRC' -## wayland/sway -# XXX: only do this if we're actually in wayland, but without a start script -export XDG_SESSION_TYPE=wayland -export QT_QPA_PLATFORM=wayland-egl -export QT_WAYLAND_DISABLE_WINDOWDECORATION=-1 -export SDL_VIDEODRIVER=wayland -export TERMINAL=${$(whence -p konsole footclient urxvt xterm)[(f)1]} +## wayland/gui env +export XDG_SESSION_TYPE=${XDG_SESSION_TYPE:-wayland} +export QT_QPA_PLATFORM=${QT_QPA_PLATFORM:-wayland-egl} +export QT_WAYLAND_DISABLE_WINDOWDECORATION=${QT_WAYLAND_DISABLE_WINDOWDECORATION:--1} +export SDL_VIDEODRIVER=${SDL_VIDEODRIVER:-wayland} +export TERMINAL=${TERMINAL:-$(whence -p konsole footclient urxvt xterm)[(f)1]} ### imports autoload -Uz zmv -- 2.47.0