dot

NixOS dotfiles
git clone https://git.echoz.io/dot.git
Log | Files | Refs

commit e2003e74c2c92cad913e5a6fbb31aed7cd0a9afb
parent 467d5442e6e8bd16bbc2bc59b8d670d9f53711c5
Author: Chris <chris@echoz.io>
Date:   Thu,  9 Oct 2025 12:59:02 +0200

fix(hypridle): lock screen on suspend

Diffstat:
Mmodules/hypr/hypridle.nix | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/modules/hypr/hypridle.nix b/modules/hypr/hypridle.nix @@ -29,11 +29,15 @@ enable = true; settings = { - general.lock_cmd = builtins.toString ( - pkgs.writeShellScript "lock" '' - pidof hyprlock || hyprlock - '' - ); + general = { + lock_cmd = builtins.toString ( + pkgs.writeShellScript "lock" '' + pidof hyprlock || hyprlock + '' + ); + before_sleep_cmd = "loginctl lock-session"; + after_sleep_cmd = "hyprctl dispatch dpms on"; + }; listener = [ {