diff options
Diffstat (limited to 'scripts/power.sh')
| -rwxr-xr-x | scripts/power.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/power.sh b/scripts/power.sh new file mode 100755 index 0000000..ef349fc --- /dev/null +++ b/scripts/power.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +choice=$(printf "⏻ Shutdown\n Reboot\n Suspend\n Logout" | rofi -dmenu -prompt "Power") + +case "$choice" in + "⏻ Shutdown") systemctl poweroff ;; + " Reboot") systemctl reboot ;; + " Suspend") systemctl suspend ;; + " Logout") /opt/scripts/lock.sh ;; +esac |
