aboutsummaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
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