summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
00ec637)
Display a warning if none is found.
hc keybind $mod-Shift-c close
hc keybind $mod-q reload
hc keybind $mod-Shift-q quit
hc keybind $mod-Shift-c close
hc keybind $mod-q reload
hc keybind $mod-Shift-q quit
+# Find an existing screen locker.
+for locker in xtrlock ''; do
+ if installed "$locker"; then
+ break
+ fi
+done
+if test -z "$locker"; then
+ echo 'No screen locker found!' | notify 60
+fi
# Lock the screen. The sleep is necessary to allow xtrlock to grab the
# keyboard input.
# Lock the screen. The sleep is necessary to allow xtrlock to grab the
# keyboard input.
-hc keybind $mod-z spawn sh -c 'sleep 1 && exec xtrlock'
+hc keybind $mod-z spawn sh -c "sleep 1 && exec $locker"
# Tag key bindings. Create tags 1 to 9 with bindings to switch and move
# windows to them.
# Tag key bindings. Create tags 1 to 9 with bindings to switch and move
# windows to them.