aboutsummaryrefslogtreecommitdiffstats
path: root/stumpwm
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-04-14 22:14:58 -0700
committerGravatar Tom Willemse2020-04-14 22:14:58 -0700
commitf339c6b23756d07214b742c4aac51cb0f6ee6933 (patch)
treeb936de622fc56209475a3b2707736e8df9f63f38 /stumpwm
parented92628a5296c32cc3feed8a9809aefbbf152a6d (diff)
downloadnew-dotfiles-f339c6b23756d07214b742c4aac51cb0f6ee6933.tar.gz
new-dotfiles-f339c6b23756d07214b742c4aac51cb0f6ee6933.zip
Warn if the i3lock program can’t be found
Diffstat (limited to 'stumpwm')
-rw-r--r--stumpwm/.stumpwmrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/stumpwm/.stumpwmrc b/stumpwm/.stumpwmrc
index fda3412..927c682 100644
--- a/stumpwm/.stumpwmrc
+++ b/stumpwm/.stumpwmrc
@@ -36,4 +36,9 @@ after it has been unlocked."
(swm-gaps:toggle-gaps)
+(with-message-queuing t
+ (let ((programs-in-path (programs-in-path)))
+ (unless (member "i3lock" programs-in-path :test #'string-equal)
+ (echo "Couldn't find the i3lock executable, can't lock screen"))))
+
(swank:create-server :dont-close t)