diff options
author | Shubham Saini <shubham6405@gmail.com> | 2020-03-28 11:55:04 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2020-03-28 11:56:31 +0000 |
commit | 70aa35c1b7311462c7564e36f6f8aae282587009 (patch) | |
tree | 6e6e5709592a202086ca6d49a826f0793e4d743e /bin | |
parent | 34617dce5cc1c94478aee098c196fd365674d08b (diff) |
doas > sudo
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/.local/bin/shut | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/.local/bin/shut b/bin/.local/bin/shut index e55784b..88711d1 100755 --- a/bin/.local/bin/shut +++ b/bin/.local/bin/shut | |||
@@ -3,9 +3,9 @@ | |||
3 | RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara") | 3 | RET=$(echo -e "shutdown\nreboot\nsleep\nlock\ncancel" | dmenu -l 5 -p "Sayonara") |
4 | 4 | ||
5 | case $RET in | 5 | case $RET in |
6 | shutdown) sudo poweroff ;; | 6 | shutdown) doas poweroff ;; |
7 | reboot) sudo reboot ;; | 7 | reboot) doas reboot ;; |
8 | sleep) /home/fd0e/.local/bin/lock & sudo sh -c "echo -n mem > /sys/power/state" ;; | 8 | sleep) /home/fd0e/.local/bin/lock & doas sh -c "echo -n mem > /sys/power/state" ;; |
9 | lock) /home/fd0e/.local/bin/lock ;; | 9 | lock) /home/fd0e/.local/bin/lock ;; |
10 | *) ;; | 10 | *) ;; |
11 | esac | 11 | esac |