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]>
13 lines
375 B
Plaintext
13 lines
375 B
Plaintext
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
|
|
}
|