diff options
Diffstat (limited to 'nixos/cat.nix')
| -rw-r--r-- | nixos/cat.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/cat.nix b/nixos/cat.nix index 3bc6db5..deb8bcc 100644 --- a/nixos/cat.nix +++ b/nixos/cat.nix @@ -239,7 +239,7 @@ home.packages = with pkgs; [ case "$choice" in *lock*) ${pkgs.hyprlock}/bin/hyprlock ;; - *logout*) hyprctl dispatch exit ;; + *logout*) command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()' ;; *reboot*) systemctl reboot ;; *shutdown*) systemctl poweroff ;; esac |
