remove sway dependency

This commit is contained in:
Adithya 2023-07-11 22:12:49 +05:30
parent b1566efd63
commit 916e83a50d
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -2,7 +2,6 @@
set -eu set -eu
SWAYSOCK=${SWAYSOCK:-}
HYPRLAND_INSTANCE_SIGNATURE=${HYPRLAND_INSTANCE_SIGNATURE:-} HYPRLAND_INSTANCE_SIGNATURE=${HYPRLAND_INSTANCE_SIGNATURE:-}
chpower() { chpower() {
@ -19,7 +18,6 @@ chpower() {
exec systemctl hibernate exec systemctl hibernate
;; ;;
Logout) Logout)
[ -n "$SWAYSOCK" ] && swaymsg exit
[ -n "$HYPRLAND_INSTANCE_SIGNATURE" ] && hyprctl dispatch exit [ -n "$HYPRLAND_INSTANCE_SIGNATURE" ] && hyprctl dispatch exit
;; ;;
*) *)