From d45bfe45758fb2da9b0a733aa37c97a6fb635f71 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 18 Jan 2025 17:46:02 +1100 Subject: [PATCH] hypridle --- hypridle.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 hypridle.conf diff --git a/hypridle.conf b/hypridle.conf new file mode 100644 index 0000000..9c82226 --- /dev/null +++ b/hypridle.conf @@ -0,0 +1,21 @@ +general { + lock_cmd = pidof hyprlock || hyprlock + before_sleep_cmd = loginctl lock-session + after_sleep_cmd = hyprctl dispatch dpms on +} + +listener { + timeout = 180 # 3mins + on-timeout = loginctl lock-session +} + +listener { + timeout = 300 # 5mins + on-timeout = hyprctl dispatch dpms off + on-resume = hyprctl dispatch dpms on +} + +listener { + timeout = 600 # 10mins + on-timeout = systemctl suspend-then-hibernate || loginctl suspend +}