diff options
author | Shubham Saini <pryr@pryr.xyz> | 2020-12-19 15:30:26 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2020-12-19 15:30:26 +0000 |
commit | 4cf6e4f582831423668c0af152a21190942a58da (patch) | |
tree | 522ab2bbb674c9628c181fd1db5f0fba719ddb1c /bin/.bin/shut | |
parent | ca82b3dea5d4bf35dae6c560370510289e3ce079 (diff) |
changes
Diffstat (limited to 'bin/.bin/shut')
-rwxr-xr-x | bin/.bin/shut | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/.bin/shut b/bin/.bin/shut index 1fb1295..2d24299 100755 --- a/bin/.bin/shut +++ b/bin/.bin/shut | |||
@@ -1,11 +1,11 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 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") | 3 | RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -p "Sayonara" -fn "JetBrains Mono Nerd Font Mono:style=medium:size=9" -nb "#171a1f" -nf "#f3f4f5" -sb "#c6c8d1" -sf "#171a1f") |
4 | 4 | ||
5 | case $RET in | 5 | case $RET in |
6 | shutdown) doas poweroff ;; | 6 | shutdown) systemctl poweroff ;; |
7 | reboot) doas reboot ;; | 7 | reboot) systemctl reboot ;; |
8 | sleep) xset s activate & doas zzz;; | 8 | sleep) systemctl suspend ;; |
9 | lock) xset s activate ;; | 9 | lock) xset s activate ;; |
10 | *) ;; | 10 | *) ;; |
11 | esac | 11 | esac |