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 <[email protected]>
This commit is contained in:
2026-10-14 23:23:06 +01:00
co-authored by Claude Opus 5.5
parent 6af444ad72
commit 6e2bbc5277
+12
View File
@@ -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
}