diff options
| author | subh <subh@example.com> | 2026-01-19 21:47:02 +0530 |
|---|---|---|
| committer | subh <subh@example.com> | 2026-01-19 21:47:02 +0530 |
| commit | 65aad59ef0802708a8a7c8a312755232cc1823d3 (patch) | |
| tree | fe0a437f3e9a71ab5b9197d9b8fa72c24d2170ea /scripts/power.sh | |
initial commit
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 |
