mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-22 03:52:53 +00:00
23 lines
424 B
Text
23 lines
424 B
Text
$lock_cmd = pidof hyprlock || hyprlock
|
|
$suspend_cmd = systemctl suspend || loginctl suspend
|
|
|
|
general {
|
|
lock_cmd = $lock_cmd
|
|
before_sleep_cmd = $lock_cmd
|
|
}
|
|
|
|
listener {
|
|
timeout = 180 # 3mins
|
|
on-timeout = $lock_cmd
|
|
}
|
|
|
|
listener {
|
|
timeout = 240 # 4mins
|
|
on-timeout = hyprctl dispatch dpms off
|
|
on-resume = hyprctl dispatch dpms on
|
|
}
|
|
|
|
listener {
|
|
timeout = 540 # 9mins
|
|
on-timeout = $suspend_cmd
|
|
}
|