first commit
This commit is contained in:
commit
8e85fe845b
22 changed files with 1449 additions and 0 deletions
30
hypr/hypridle.conf
Normal file
30
hypr/hypridle.conf
Normal file
|
@ -0,0 +1,30 @@
|
|||
general {
|
||||
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
||||
before_sleep_cmd = ~/.config/hypr/scripts/lock.sh # lock before suspend.
|
||||
after_sleep_cmd = hyprctl dispatch dpms on # turn screen on after wake.
|
||||
}
|
||||
|
||||
# Dimming the monitor using ddcutil (DDC/CI brightness)
|
||||
listener {
|
||||
timeout = 150 # 2.5min
|
||||
on-timeout = dim && ~/.config/hypr/scripts/lock.sh # dim monitor (safe for OLED)
|
||||
}
|
||||
|
||||
# Lock screen at 5 minutes
|
||||
listener {
|
||||
timeout = 300
|
||||
on-timeout = ~/.config/hypr/scripts/lock.sh
|
||||
}
|
||||
|
||||
# Turn screen off at 5.5 minutes
|
||||
listener {
|
||||
timeout = 330
|
||||
on-timeout = hyprctl dispatch dpms off && ddcutil setvcp 10 0
|
||||
on-resume = hyprctl dispatch dpms on && ddcutil setvcp 10 100
|
||||
}
|
||||
|
||||
# Suspend after 30 minutes
|
||||
listener {
|
||||
timeout = 1800
|
||||
on-timeout = systemctl suspend
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue