diff --git a/home/toast/home.nix b/home/toast/home.nix index f89e71c..e832f10 100644 --- a/home/toast/home.nix +++ b/home/toast/home.nix @@ -21,6 +21,7 @@ ./programs/dunst.nix ./programs/keepassxc.nix ./programs/mouse-actions + ./programs/hypridle.nix ]; home = { diff --git a/home/toast/programs/hypridle.nix b/home/toast/programs/hypridle.nix new file mode 100644 index 0000000..9270487 --- /dev/null +++ b/home/toast/programs/hypridle.nix @@ -0,0 +1,17 @@ +{ + services.hypridle = { + enable = true; + settings = { + general = { + after_sleep_cmd = "hyprctl dispatch dpms on"; + ignore_dbus_inhibit = false; + }; + + listener = [{ + timeout = 5 * 60; + on-timeout = "hyprctl dispatch dpms off"; + on-resume = "hyprctl dispatch dpms on"; + }]; + }; + }; +}