diff options
author | Shubham Saini <pryr@pryr.xyz> | 2020-12-01 20:21:04 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2020-12-01 20:21:04 +0000 |
commit | 1ff834e2b06761b083df9959d6c3d6bd2a94d2de (patch) | |
tree | abb8ff13bab1c6b5a0c0b17f2d29c058358d2135 /bin/.bin/shut | |
parent | 90e96958f919df1f914381e93a97d77506fdcf03 (diff) |
mah thinkpad
Diffstat (limited to 'bin/.bin/shut')
-rwxr-xr-x | bin/.bin/shut | 11 |
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 | |||
3 | RET=$(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 | |||
5 | case $RET in | ||
6 | shutdown) doas poweroff ;; | ||
7 | reboot) doas reboot ;; | ||
8 | sleep) xset s activate & doas zzz;; | ||
9 | lock) xset s activate ;; | ||
10 | *) ;; | ||
11 | esac | ||