From e4f354086268ffc9a025648269221cdb09667240 Mon Sep 17 00:00:00 2001 From: lightly-toasted Date: Tue, 12 Aug 2025 12:40:37 +0900 Subject: [PATCH] feat: add hypridle --- home/toast/home.nix | 1 + home/toast/programs/hypridle.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 home/toast/programs/hypridle.nix 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"; + }]; + }; + }; +}