feat(home/linux/gui/hyprland): hypridle & windowrules & keybindings

This commit is contained in:
Ryan Yin
2025-06-01 11:19:04 +08:00
parent 41be352b2c
commit fa9aaa6d27
7 changed files with 333 additions and 149 deletions

View File

@@ -6,14 +6,32 @@ general {
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests
}
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
# listener {
# timeout = 180 # 3 minutes
# on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
# on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
# }
listener {
timeout = 290 # 4 minutes and 50 seconds
timeout = 180 # 3min.
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = brightnessctl -r # monitor backlight restore.
}
listener {
timeout = 300 # 5 minutes
on-timeout = pidof hyprlock || hyprlock # lock screen
on-resume = hyprctl dispatch dpms on # monitor wake up
}
listener {
timeout = 300 # 5 minutes
on-timeout = hyprctl dispatch dpms off # screen off
on-resume = hyprctl dispatch dpms on # monitor wake up
timeout = 360 # 6 minutes
on-timeout = hyprctl dispatch dpms off # screen off
on-resume = hyprctl dispatch dpms on && brightnessctl -r # monitor wake up & screen on
}
listener {
timeout = 600 # 10min
on-timeout = systemctl suspend # suspend pc
}