51 lines
1.1 KiB
Text
51 lines
1.1 KiB
Text
|
general {
|
||
|
lock_cmd = pidof hyprlock || hyprlock
|
||
|
before_sleep_cmd = loginctl lock-session
|
||
|
}
|
||
|
|
||
|
# battery timers
|
||
|
listener {
|
||
|
timeout = 30
|
||
|
on-timeout = systemd-ac-power || light -S 0
|
||
|
on-resume = systemd-ac-power || light -I
|
||
|
}
|
||
|
|
||
|
listener {
|
||
|
timeout = 30
|
||
|
on-timeout = systemd-ac-power || light -s razer/0003:1532:02B6.0004/backlight -S 0
|
||
|
on-resume = systemd-ac-power || light -s razer/0003:1532:02B6.0004/backlight -S 40
|
||
|
}
|
||
|
|
||
|
listener {
|
||
|
timeout = 120
|
||
|
on-timeout = systemd-ac-power || systemd-ac-power && loginctl lock-session
|
||
|
}
|
||
|
|
||
|
listener {
|
||
|
timeout = 600
|
||
|
on-timeout = systemd-ac-power || systemctl suspend
|
||
|
}
|
||
|
|
||
|
# ac power timers
|
||
|
listener {
|
||
|
timeout = 60
|
||
|
on-timeout = systemd-ac-power && light -S 0
|
||
|
on-resume = systemd-ac-power && light -I
|
||
|
}
|
||
|
|
||
|
listener {
|
||
|
timeout = 60
|
||
|
on-timeout = systemd-ac-power && light -s razer/0003:1532:02B6.0004/backlight -S 0
|
||
|
on-resume = systemd-ac-power && light -s razer/0003:1532:02B6.0004/backlight -S 40
|
||
|
}
|
||
|
|
||
|
listener {
|
||
|
timeout = 300
|
||
|
on-timeout = systemd-ac-power && loginctl lock-session
|
||
|
}
|
||
|
|
||
|
listener {
|
||
|
timeout = 1800
|
||
|
on-timeout = systemd-ac-power && systemctl suspend
|
||
|
}
|