fix(hypekillsession): change process from .Hyprland-wrapp > Hyprland

This commit is contained in:
ooks-io 2024-03-16 21:33:36 +13:00
parent 44ff6fd27f
commit 1294cf04e9

View file

@ -2,14 +2,15 @@
pkgs.writeShellApplication {
name = "hyprkillsession";
runtimeInputs = with pkgs; [ procps ];
text = ''
if pgrep -x .Hyprland-wrapp >/dev/null; then
if pgrep -x Hyprland >/dev/null; then
hyprctl dispatch exit 0
sleep 2
if pgrep -x .Hyprland-wrapp >/dev/null; then
killall -9 .Hyprland-wrapp
if pgrep -x Hyprland >/dev/null; then
killall -9 Hyprland
fi
fi
'';