aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rwxr-xr-xhome/nipsy/common/optional/desktops/rotatebg4
1 files changed, 2 insertions, 2 deletions
diff --git a/home/nipsy/common/optional/desktops/rotatebg b/home/nipsy/common/optional/desktops/rotatebg
index d3b4d6e..05443ae 100755
--- a/home/nipsy/common/optional/desktops/rotatebg
+++ b/home/nipsy/common/optional/desktops/rotatebg
@@ -1,7 +1,7 @@
#!/usr/bin/env zsh
# bail out if not running under i3 or sway
-if [[ ! -S ${I3SOCK} || ! -S ${SWAYSOCK} ]]; then
+if [[ ! -S ${I3SOCK} && ! -S ${SWAYSOCK} ]]; then
echo "no running window manager detected, ${0:t} bailing out" >&2
exit 0
fi
@@ -26,7 +26,7 @@ echo ${$} > ${PIDFILE}
while true; do
# test for continued presence of a running window manager and bail if not found
- if [[ ! -S ${I3SOCK} || ! -S ${SWAYSOCK} ]]; then
+ if [[ ! -S ${I3SOCK} && ! -S ${SWAYSOCK} ]]; then
echo "window manager has stopped running, ${0:t} bailing out" >&2
exit 0
fi