mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
27 lines
684 B
Plaintext
27 lines
684 B
Plaintext
$lock_cmd = hyprctl dispatch 'hl.dsp.global("quickshell:lock")' & pidof qs quickshell hyprlock || hyprlock
|
|
# $lock_cmd = pidof hyprlock || hyprlock
|
|
$suspend_cmd = systemctl suspend || loginctl suspend
|
|
|
|
general {
|
|
lock_cmd = $lock_cmd
|
|
before_sleep_cmd = loginctl lock-session
|
|
after_sleep_cmd = hyprctl dispatch 'hl.dsp.global("quickshell:lockFocus")'
|
|
inhibit_sleep = 3
|
|
}
|
|
|
|
listener {
|
|
timeout = 300 # 5mins
|
|
on-timeout = loginctl lock-session
|
|
}
|
|
|
|
listener {
|
|
timeout = 600 # 10mins
|
|
on-timeout = hyprctl dispatch 'hl.dsp.dpms(false)'
|
|
on-resume = hyprctl dispatch 'hl.dsp.dpms(true)'
|
|
}
|
|
|
|
listener {
|
|
timeout = 900 # 15mins
|
|
on-timeout = $suspend_cmd
|
|
}
|