From 6e2bbc52772dfb0a29052202b1a4f54002c51d2a Mon Sep 17 00:00:00 2001 From: Adam French Date: Wed, 14 Oct 2026 23:17:56 +0100 Subject: [PATCH] Add hypridle config Lock via hyprlock on lock-session/sleep and report idle/resume and lock/unlock events to hypr-agent for activity tracking. Co-Authored-By: Claude Opus 5.5 --- hypr/hypridle.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hypr/hypridle.conf diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf new file mode 100644 index 0000000..84831b4 --- /dev/null +++ b/hypr/hypridle.conf @@ -0,0 +1,12 @@ +general { + lock_cmd = ~/.local/bin/hypr-agent lock; pidof hyprlock || hyprlock + unlock_cmd = ~/.local/bin/hypr-agent unlock + before_sleep_cmd = loginctl lock-session +} + +# Mark idle time for the activity tracker after 5 minutes without input. +listener { + timeout = 300 + on-timeout = ~/.local/bin/hypr-agent idle + on-resume = ~/.local/bin/hypr-agent resume +}