aboutsummaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2023-01-18 20:51:23 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2023-01-18 20:51:23 +0000
commit7eb6d4034b67a2a4b141d87a03e5b81952feffc0 (patch)
treeea43ccb1d4b730a1b201b14e4703ffc2efcaff57 /.profile
parented903f6ba027d3b40f4b9cbdccb6fc2ad6673e9c (diff)
downloaddotfiles-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--.profile25
1 files changed, 14 insertions, 11 deletions
diff --git a/.profile b/.profile
index bc07a20..cf657cd 100644
--- a/.profile
+++ b/.profile
@@ -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