- Use hyprctl dispatch for dpms actions - Remove unnecessary bash scripts - Update configuration consistency
20 lines
454 B
Plaintext
Executable File
20 lines
454 B
Plaintext
Executable File
listener {
|
|
timeout = 200
|
|
on-timeout = notify-send "You are idle!"
|
|
on-resume = notify-send "Welcome back!"
|
|
ignore_inhibit = true
|
|
}
|
|
|
|
listener {
|
|
timeout = 300
|
|
on-timeout = hyprlock
|
|
}
|
|
|
|
listener {
|
|
timeout = 360
|
|
on-timeout = hyprctl dispatch "hl.dsp.dpms({action = 'off'})"
|
|
on-resume = hyprctl dispatch "hl.dsp.dpms({action = 'on'})"
|
|
# alternative:
|
|
# on-timeout = wlopm --off '*'
|
|
# on-resume = wlopm --on '*'
|
|
} |