From 375d85cd76e58eac5f345ad252f54c93736569c1 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 7 Jul 2024 11:00:57 -0400 Subject: [PATCH] hypridle: Disable laptop keyboard backlight on dim Also restores the previous state when resuming activity. --- home/hyprland.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/hyprland.nix b/home/hyprland.nix index 488d5f2c..07023dd3 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -444,8 +444,8 @@ in listener = [ { timeout = 150; - on-timeout = "brightnessctl -s set 10"; - on-resume = "brightnessctl -r"; + on-timeout = "brightnessctl -s set 10 && brightnessctl --device=tpacpi::kbd_backlight set 0 --save"; + on-resume = "brightnessctl -r && brightnessctl --device=tpacpi::kbd_backlight --restore"; } { timeout = 300;