diff options
| author | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-06-14 19:29:33 +0300 |
|---|---|---|
| committer | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-06-14 19:29:33 +0300 |
| commit | 56082af20a8712570edd6ed523baad4755ecd241 (patch) | |
| tree | 2366ad69de817a80403cdcbe5cdd48ad90106bd6 /config/waybar/scripts | |
init
Diffstat (limited to 'config/waybar/scripts')
| -rwxr-xr-x | config/waybar/scripts/power.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config/waybar/scripts/power.sh b/config/waybar/scripts/power.sh new file mode 100755 index 000000000..df0643dba --- /dev/null +++ b/config/waybar/scripts/power.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +choice=$(printf "Poweroff\nReboot\nLogout" | wofi \ + --dmenu \ + --window \ + --normal-window \ + --hide-scroll true \ + --hide-search true \ + --prompt "" \ + --width 10 \ + --lines 3 \ + --columns 1) + +case "$choice" in +Poweroff) + hyprshutdown --post-cmd 'systemctl poweroff' + ;; +Reboot) + hyprshutdown --post-cmd 'systemctl reboot' + ;; +Logout) + hyprshutdown + ;; +esac |
