ooknet/home/modules/desktop/wayland/windowManager/hyprland/pkgs/hyprkillsession.nix
ooks-io 2130903850 refactor(hyprland): change to structure of hyprland configuration
- move bind scripts to standalone shell applications
- split configuration into more modules
- still more work to be done
2024-03-08 17:29:54 +13:00

16 lines
278 B
Nix

{ pkgs, ... }:
pkgs.writeShellApplication {
name = "hyprkillsession";
text = ''
if pgrep -x .Hyprland-wrapp >/dev/null; then
hyprctl dispatch exit 0
sleep 2
if pgrep -x .Hyprland-wrapp >/dev/null; then
killall -9 .Hyprland-wrapp
fi
fi
'';
}