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 { pkgs.writeShellApplication {
name = "hyprkillsession"; name = "hyprkillsession";
runtimeInputs = with pkgs; [ procps ];
text = '' text = ''
if pgrep -x .Hyprland-wrapp >/dev/null; then if pgrep -x Hyprland >/dev/null; then
hyprctl dispatch exit 0 hyprctl dispatch exit 0
sleep 2 sleep 2
if pgrep -x .Hyprland-wrapp >/dev/null; then if pgrep -x Hyprland >/dev/null; then
killall -9 .Hyprland-wrapp killall -9 Hyprland
fi fi
fi fi
''; '';