aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2026-02-01 10:33:31 -0800
committerMark Nipper <nipsy@bitgnome.net>2026-02-01 10:33:31 -0800
commit4f1c328aa6ea02791c108c44ed69cbe08bacef04 (patch)
treeb7bdca87be20511e3fe6c670bffee2c048c3a66d /home
parentcb39f80ff7959fc5bc5d2ffe5d5f893ddb3fce6a (diff)
downloadnix-4f1c328aa6ea02791c108c44ed69cbe08bacef04.tar
nix-4f1c328aa6ea02791c108c44ed69cbe08bacef04.tar.gz
nix-4f1c328aa6ea02791c108c44ed69cbe08bacef04.tar.bz2
nix-4f1c328aa6ea02791c108c44ed69cbe08bacef04.tar.lz
nix-4f1c328aa6ea02791c108c44ed69cbe08bacef04.tar.xz
nix-4f1c328aa6ea02791c108c44ed69cbe08bacef04.tar.zst
nix-4f1c328aa6ea02791c108c44ed69cbe08bacef04.zip
Fix thinko
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