forked from Shinonome/dots-hyprland
idle: turn off screen before sleeping a bit
This commit is contained in:
@@ -3,19 +3,21 @@ $suspend_cmd = systemctl suspend
|
|||||||
|
|
||||||
general {
|
general {
|
||||||
lock_cmd = $lock_cmd
|
lock_cmd = $lock_cmd
|
||||||
# unlock_cmd
|
|
||||||
before_sleep_cmd = $lock_cmd
|
before_sleep_cmd = $lock_cmd
|
||||||
# after_sleep_cmd
|
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 300
|
timeout = 180 # 3mins
|
||||||
on-timeout = $lock_cmd
|
on-timeout = $lock_cmd
|
||||||
# on-resume
|
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 450
|
timeout = 240 # 4mins
|
||||||
on-timeout = $suspend_cmd
|
on-timeout = hyprctl dispatch dpms off
|
||||||
# on-resume
|
on-resume = hyprctl dispatch dpms on
|
||||||
|
}
|
||||||
|
|
||||||
|
listener {
|
||||||
|
timeout = 540 # 9mins
|
||||||
|
on-timeout = $suspend_cmd
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user