aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rwxr-xr-xhome/nipsy/common/optional/desktops/i3/xscreensaver-activate6
1 files changed, 6 insertions, 0 deletions
diff --git a/home/nipsy/common/optional/desktops/i3/xscreensaver-activate b/home/nipsy/common/optional/desktops/i3/xscreensaver-activate
index b558da8..edcfa62 100755
--- a/home/nipsy/common/optional/desktops/i3/xscreensaver-activate
+++ b/home/nipsy/common/optional/desktops/i3/xscreensaver-activate
@@ -1,5 +1,11 @@
#!/usr/bin/env zsh
+# bail out if xscreensaver isn't installed
+if [[ ! -x =xscreensaver ]]; then
+ echo "no xscreensaver command found, ${0:t} bailing out" >&2
+ exit 0
+fi
+
# record our own PID to avoid duplicate invocations
PIDFILE="/dev/shm/${0:t}.pid"