skipper: exit out of niri

This commit is contained in:
Adithya 2024-09-25 21:19:07 +05:30
parent 839f8ddcdf
commit cfa4d837d3
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -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"