diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf index 3ecb1193..b7d17690 100644 --- a/config/hypr/hypridle.conf +++ b/config/hypr/hypridle.conf @@ -15,6 +15,12 @@ listener { on-timeout = loginctl lock-session # lock screen when timeout has passed } +listener { + timeout = 330 # 5.5min + on-timeout = brightnessctl -sd '*::kbd_backlight' set 0 # save state and turn off keyboard backlight + on-resume = brightnessctl -rd '*::kbd_backlight' # restore keyboard backlight +} + listener { timeout = 330 # 5.5min on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed diff --git a/migrations/1771618300.sh b/migrations/1771618300.sh new file mode 100644 index 00000000..28794966 --- /dev/null +++ b/migrations/1771618300.sh @@ -0,0 +1,2 @@ +echo "Turn off keyboard backlight when idle" +cp $OMARCHY_PATH/config/hypr/hypridle.conf ~/.config/hypr/hypridle.conf