diff options
| author | ozpv <39195175+ozpv@users.noreply.github.com> | 2022-06-13 15:16:02 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-13 15:16:02 -0500 |
| commit | 518d16d51edc9796d2ebf130d75913218253d976 (patch) | |
| tree | 7be4972da836309a8923f711c3d820cfbf593b58 /scripts/powermenu | |
| parent | 0231e38b5aa5ce94d7c33c09aec61d7a9f3b9a85 (diff) | |
powermenu
Diffstat (limited to 'scripts/powermenu')
| -rw-r--r-- | scripts/powermenu | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/powermenu b/scripts/powermenu new file mode 100644 index 0000000..027d513 --- /dev/null +++ b/scripts/powermenu @@ -0,0 +1,8 @@ +#!/bin/sh +case "$(echo "Poweroff \nReboot ﰇ\nSuspend ⏾\nCancel ﰸ" | dmenu)" in + "Poweroff ") sudo poweroff ;; + "Reboot ﰇ") sudo reboot ;; + "Suspend ⏾") sudo ZZZ -z ;; + "Cancel ﰸ") exit ;; + *) exit ;; +esac |
