⚙️ config(hypr): hypridle added features
monitors turn off at 15 minutes and at 30 the pc is suspended
This commit is contained in:
parent
34ebde91f4
commit
94c9c7800f
1 changed files with 18 additions and 2 deletions
|
@ -1,8 +1,24 @@
|
|||
$lock_cmd = pidof hyprlock || hyprlock
|
||||
$suspend_cmd = systemctl suspend || loginctl suspend
|
||||
|
||||
general {
|
||||
lock_cmd = hyprlock
|
||||
lock_cmd = $lock_cmd
|
||||
before_sleep_cmd = $lock_cmd
|
||||
after_sleep_cmd = hyprctl dispatch dpms on
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 600
|
||||
timeout = 600 # 10 min
|
||||
on-timeout = loginctl lock-session
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 900 # 15 min
|
||||
on-timeout = hyprctl dispatch dpms off
|
||||
on-resume = hyprctl dispatch dpms on
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 1800 # 30 min
|
||||
on-timeout = $suspend_cmd
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue