diff --git a/extra-packages/scripts/misc/power-menu.sh b/extra-packages/scripts/misc/power-menu.sh index f44eaf6..92b41a2 100755 --- a/extra-packages/scripts/misc/power-menu.sh +++ b/extra-packages/scripts/misc/power-menu.sh @@ -3,6 +3,7 @@ set -eu HYPRLAND_INSTANCE_SIGNATURE=${HYPRLAND_INSTANCE_SIGNATURE:-} +NIRI_SOCKET=${NIRI_SOCKET:-} chpower() { case "$1" in @@ -19,6 +20,7 @@ chpower() { ;; Logout) [ -n "$HYPRLAND_INSTANCE_SIGNATURE" ] && hyprctl dispatch exit + [ -n "$NIRI_SOCKET" ] && niri msg action quit ;; *) notify-send -t 1500 -u low "Invalid Option"