summaryrefslogtreecommitdiff
path: root/bin/.bin/shut
diff options
context:
space:
mode:
Diffstat (limited to 'bin/.bin/shut')
-rwxr-xr-xbin/.bin/shut11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/.bin/shut b/bin/.bin/shut
new file mode 100755
index 0000000..1fb1295
--- /dev/null
+++ b/bin/.bin/shut
@@ -0,0 +1,11 @@
1#!/bin/bash
2
3RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara" -nb "#000000" -nf "#bfbfbf" -sb "#84a0c6" -sf "#000000" -fn "Hermit:size=10:antialias=true:autohint=true")
4
5case $RET in
6 shutdown) doas poweroff ;;
7 reboot) doas reboot ;;
8 sleep) xset s activate & doas zzz;;
9 lock) xset s activate ;;
10 *) ;;
11esac