diff options
Diffstat (limited to '.profile')
-rw-r--r-- | .profile | 25 |
1 files changed, 14 insertions, 11 deletions
@@ -44,17 +44,20 @@ then fi # Sway specific -SDL_VIDEODRIVER="wayland" -_JAVA_AWT_WM_NONREPARENTING=1 -QT_QPA_PLATFORM="wayland" -XDG_CURRENT_DESKTOP="sway" -XDG_SESSION_DESKTOP="sway" - -export SDL_VIDEODRIVER -export _JAVA_AWT_WM_NONREPARENTING -export QT_QPA_PLATFORM -export XDG_CURRENT_DESKTOP -export XDG_SESSION_DESKTOP +if [ `pgrep sway` ] +then + SDL_VIDEODRIVER="wayland" + _JAVA_AWT_WM_NONREPARENTING=1 + QT_QPA_PLATFORM="wayland" + XDG_CURRENT_DESKTOP="sway" + XDG_SESSION_DESKTOP="sway" + + export SDL_VIDEODRIVER + export _JAVA_AWT_WM_NONREPARENTING + export QT_QPA_PLATFORM + export XDG_CURRENT_DESKTOP + export XDG_SESSION_DESKTOP +fi PATH="$HOME/go/bin:$DENO_INSTALL/bin:$BUN_INSTALL/bin:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/.luarocks/bin:$PATH" export PATH |