diff options
author | Freya Murphy <freya@freyacat.org> | 2025-01-23 09:26:51 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-01-23 09:26:51 -0500 |
commit | 1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2 (patch) | |
tree | eecdad132615a4469c22ee6d4ccd1df087b6159d /modules/programs/hypr/hypridle.nix | |
parent | use base16 in neovim and starship (diff) | |
download | dotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.tar.gz dotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.tar.bz2 dotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.zip |
reconfigure
Diffstat (limited to 'modules/programs/hypr/hypridle.nix')
-rw-r--r-- | modules/programs/hypr/hypridle.nix | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/modules/programs/hypr/hypridle.nix b/modules/programs/hypr/hypridle.nix deleted file mode 100644 index b7417f5..0000000 --- a/modules/programs/hypr/hypridle.nix +++ /dev/null @@ -1,50 +0,0 @@ -{ config, lib, ... }: - -{ - config = lib.mkIf config.desktop.enable { - - home-manager.users.${config.user} = { - services.hypridle = { - - enable = true; - - settings = { - general = { - lock_cmd = "pidof hyprlock || hyprlock"; - 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"; - } - # dim keyboard backlight - { - timeout = 150; - on-timeout = "brightnessctl -sd rgb:kbd_backlight set 0"; - on-resume = "brightnessctl -rd rgb:kbd_backlight"; - } - # 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"; - } - ]; - }; - }; - }; - - }; -} - |