fix(hypekillsession): change process from .Hyprland-wrapp > Hyprland
This commit is contained in:
parent
44ff6fd27f
commit
1294cf04e9
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue