From cfa4d837d30b94122ed147931a78b140c32ce28e Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Wed, 25 Sep 2024 21:19:07 +0530 Subject: [PATCH] skipper: exit out of niri --- extra-packages/scripts/misc/power-menu.sh | 2 ++ 1 file changed, 2 insertions(+) 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"