mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 00:40:44 +02:00
bin: update power menu script to handle both and hypr and niri
This commit is contained in:
parent
55fbba2524
commit
025b243c48
3 changed files with 8 additions and 3 deletions
|
|
@ -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 ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue