From ea7608e7935cd3b191ace33767b333066b0a5789 Mon Sep 17 00:00:00 2001 From: "Reid \"reidlab" Date: Wed, 11 Dec 2024 23:01:48 -0800 Subject: [PATCH] keyboard backlight --- modules/desktop/hypridle.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/desktop/hypridle.nix b/modules/desktop/hypridle.nix index a9304ed..100ae68 100644 --- a/modules/desktop/hypridle.nix +++ b/modules/desktop/hypridle.nix @@ -32,10 +32,15 @@ in { listener = [ { - timeout = 60 * 1; + timeout = 60; on-timeout = "${lib.getExe pkgs.brightnessctl} -c backlight -s set 20"; # dim screen, save brightness state on-resume = "${lib.getExe pkgs.brightnessctl} -c backlight -r"; # restore previous screen brightness state } + { + timeout = 60; + on-timeout = "${lib.getExe pkgs.brightnessctl} -d '*:kbd_backlight' -s set 0"; # turn off keyboard backlight, save state + on-resume = "${lib.getExe pkgs.brightnessctl} -d '*:kbd_backlight' -r"; # restore previous keyboard backlight state + } { timeout = 90; # 1.5 min on-timeout = "${hyprctl} dispatch dpms off"; # turn off screen