aboutsummaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2023-01-22 13:36:05 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2023-01-22 13:36:05 +0000
commit409ecbcd97fa363b052c51d8a6db4856a9075965 (patch)
tree5730b859374b55d822527800d2a37182202601fb /.profile
parent7eb6d4034b67a2a4b141d87a03e5b81952feffc0 (diff)
downloaddotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.tar
dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.tar.gz
dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.tar.bz2
dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.tar.lz
dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.tar.xz
dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.tar.zst
dotfiles-409ecbcd97fa363b052c51d8a6db4856a9075965.zip
Fix shell script
Diffstat (limited to '.profile')
-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