From b0c3b52f1b289722a913eeb321a24968e7fe3dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20B=C3=BCchler?= Date: Fri, 8 Aug 2025 10:24:13 +0200 Subject: [PATCH] feat: update device-specific Hyprland idle configs for desktop and laptop preferences MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Updated hypridle-desktop.conf and hypridle-laptop.conf to match user preferences - Modular, device-aware idle handling 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode --- .config/hypr/includes/hypridle-desktop.conf | 13 +++++++++ .config/hypr/includes/hypridle-laptop.conf | 29 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .config/hypr/includes/hypridle-desktop.conf create mode 100644 .config/hypr/includes/hypridle-laptop.conf diff --git a/.config/hypr/includes/hypridle-desktop.conf b/.config/hypr/includes/hypridle-desktop.conf new file mode 100644 index 0000000..fd0c8e0 --- /dev/null +++ b/.config/hypr/includes/hypridle-desktop.conf @@ -0,0 +1,13 @@ +# hypridle-desktop.conf — Minimal desktop idle config + +general { + lock_cmd = pidof hyprlock || hyprlock + before_sleep_cmd = loginctl lock-session + after_sleep_cmd = hyprctl dispatch dpms on +} + +listener { + timeout = 600 # 10min. + on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor. + on-resume = brightnessctl -r # monitor backlight restore. +} diff --git a/.config/hypr/includes/hypridle-laptop.conf b/.config/hypr/includes/hypridle-laptop.conf new file mode 100644 index 0000000..ae90278 --- /dev/null +++ b/.config/hypr/includes/hypridle-laptop.conf @@ -0,0 +1,29 @@ +# hypridle-laptop.conf — Full-featured laptop idle config + +general { + lock_cmd = pidof hyprlock || hyprlock + before_sleep_cmd = loginctl lock-session + after_sleep_cmd = hyprctl dispatch dpms on +} + +listener { + timeout = 150 + on-timeout = brightnessctl -s set 10 + on-resume = brightnessctl -r +} + +listener { + timeout = 150 + on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 + on-resume = brightnessctl -rd rgb:kbd_backlight +} + +listener { + timeout = 300 + on-timeout = pidof hyprlock || hyprlock +} + +listener { + timeout = 600 + on-timeout = systemctl suspend +}