diff options
Diffstat (limited to 'modules/desktops/hyprland/idle.nix')
-rw-r--r-- | modules/desktops/hyprland/idle.nix | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/modules/desktops/hyprland/idle.nix b/modules/desktops/hyprland/idle.nix deleted file mode 100644 index d09e665..0000000 --- a/modules/desktops/hyprland/idle.nix +++ /dev/null @@ -1,37 +0,0 @@ -{config, ...}: { - home-manager.users.${config.user} = { - services.hypridle = { - enable = config.desktops.hyprland; - systemdTarget = "hyprland-session.target"; - - settings = { - general = { - lock_cmd = "pidof ${config.default.lockScreen} || ${config.default.lockScreen}"; - before_sleep_cmd = "loginctl lock-session"; - after_sleep_cmd = "hyprctl dispatch dpms on"; - ignore_dbus_inhibit = false; - }; - - listener = [ - # dim screen - { - timeout = 150; - on-timeout = "brightnessctl -s set 10"; - on-resume = "brightnessctl -r"; - } - # lock - { - timeout = 300; - on-timeout = "loginctl lock-session"; - } - # turn off screen - { - timeout = 350; - on-timeout = "hyprctl dispatch dpms off"; - on-resume = "hyprctl dispatch dpms on"; - } - ]; - }; - }; - }; -} |