aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.profile8
1 files changed, 5 insertions, 3 deletions
diff --git a/.profile b/.profile
index cf657cd..fbe3015 100644
--- a/.profile
+++ b/.profile
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
-if [ -z "${XDG_RUNTIME_DIR}" ]
+if [ -z "$XDG_RUNTIME_DIR" ]
then
XDG_RUNTIME_DIR="/tmp/$UID-runtime-dir"
export XDG_RUNTIME_DIR
@@ -37,14 +37,16 @@ export GTK_THEME
export TERMINAL
BAT="$(which bat 2> /dev/null || which batcat 2> /dev/null)"
-if [ -n $BAT ]
+if [ -n "$BAT" ]
then
MANPAGER="sh -c 'col -bx | $BAT -l man -p'"
export MANPAGER
fi
+SWAY_PROCESSES="$(pgrep sway)"
+
# Sway specific
-if [ `pgrep sway` ]
+if [ -n "$SWAY_PROCESSES" ]
then
SDL_VIDEODRIVER="wayland"
_JAVA_AWT_WM_NONREPARENTING=1