aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2015-06-30 22:12:18 +0200
committerDuncaen <mail@duncano.de>2015-06-30 22:12:18 +0200
commitaf363d10381831bef8ac3f24ab86e3243a9493b1 (patch)
treead026ddad41487b1e912da511c21af72d9f64c31
parentb2706eb5f04ae86ddad8b02262ad3aefd7c7bf61 (diff)
downloaddotfiles-af363d10381831bef8ac3f24ab86e3243a9493b1.tar.gz
dmenu_power add lock option
-rwxr-xr-xbin/dmenu_power5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/dmenu_power b/bin/dmenu_power
index 7e767d0..d6bc792 100755
--- a/bin/dmenu_power
+++ b/bin/dmenu_power
@@ -1,9 +1,10 @@
-#!/bin/mksh
+#!/usr/bin/mksh
: ${DMENU:=dmenu}
-ret=$(echo "Suspend\nHibernate\nReboot\nShutdown" | ${DMENU} -p "Power:" -i | tr '[A-Z]' '[a-z]')
+ret=$(echo "Suspend\nLock\nHibernate\nReboot\nShutdown" | ${DMENU} -p "Power:" -i | tr '[A-Z]' '[a-z]')
case "$ret" in
suspend) sudo zzz ;;
+ lock) slock ;;
hibernate) sudo ZZZ ;;
reboot) sudo reboot ;;
shutdown) sudo halt ;;