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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user