diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-01-18 20:51:23 +0000 |
---|---|---|
committer | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-01-18 20:51:23 +0000 |
commit | 7eb6d4034b67a2a4b141d87a03e5b81952feffc0 (patch) | |
tree | ea43ccb1d4b730a1b201b14e4703ffc2efcaff57 /.profile | |
parent | ed903f6ba027d3b40f4b9cbdccb6fc2ad6673e9c (diff) | |
download | dotfiles-7eb6d4034b67a2a4b141d87a03e5b81952feffc0.tar dotfiles-7eb6d4034b67a2a4b141d87a03e5b81952feffc0.tar.gz dotfiles-7eb6d4034b67a2a4b141d87a03e5b81952feffc0.tar.bz2 dotfiles-7eb6d4034b67a2a4b141d87a03e5b81952feffc0.tar.lz dotfiles-7eb6d4034b67a2a4b141d87a03e5b81952feffc0.tar.xz dotfiles-7eb6d4034b67a2a4b141d87a03e5b81952feffc0.tar.zst dotfiles-7eb6d4034b67a2a4b141d87a03e5b81952feffc0.zip |
Fix i3
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 |