bin: update power menu script to handle both and hypr and niri

This commit is contained in:
Oleksandr Smirnov 2025-06-09 20:53:27 +03:00
parent 55fbba2524
commit 025b243c48
No known key found for this signature in database
3 changed files with 8 additions and 3 deletions

View file

@ -18,7 +18,12 @@ shall_continue() {
}
case $selected in
logout) shall_continue hyprctl dispatch exit ;;
logout)
case $1 in
"niri") shall_continue niri msg action quit ;;
"hypr") shall_continue hyprctl dispatch exit ;;
esac
;;
suspend) shall_continue systemctl suspend ;;
reboot) shall_continue systemctl reboot ;;
poweroff) shall_continue systemctl poweroff ;;