From 23c2be1ad5e5fb5dfb58f6d4f39d59929caa327f Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Tue, 28 Apr 2026 07:52:28 -0400 Subject: hypridle, keyboard brightness --- .config/hypr/hypridle.conf | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .config/hypr/hypridle.conf (limited to '.config/hypr/hypridle.conf') diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf new file mode 100644 index 0000000..affaf64 --- /dev/null +++ b/.config/hypr/hypridle.conf @@ -0,0 +1,31 @@ +# sample hypridle.conf +# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hypridle + +general { + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. +} + +# Dim after 5 minutes +listener { + timeout = 300 + on-timeout = brightnessctl -s set 10 + on-resume = brightnessctl -r # monitor backlight restore. +} +listener { + timeout = 300 + on-timeout = brightnessctl -sd kbd_backlight set 0 # turn off keyboard backlight. + on-resume = brightnessctl -rd kbd_backlight # turn on keyboard backlight. +} + +# screenoff after half hour +listener { + timeout = 1800 + on-timeout = hyprctl dispatch dpms off + on-resume = hyprctl dispatch dpms on +} + +# suspend after an hour +listener { + timeout = 3600 + on-timeout = loginctl suspend +} -- cgit 1.4.1