skipper: exit out of niri
This commit is contained in:
parent
839f8ddcdf
commit
cfa4d837d3
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue