From aa7bb74226e95a967c073502ace464f8582915df Mon Sep 17 00:00:00 2001 From: Mark Arranz Date: Sun, 13 Oct 2024 02:31:32 -0700 Subject: [PATCH] Update Brightness.ts to grab a keyboard backlight device. (#316) Co-authored-by: Jas Singh --- services/Brightness.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/Brightness.ts b/services/Brightness.ts index cbfec92..4ac8d49 100644 --- a/services/Brightness.ts +++ b/services/Brightness.ts @@ -5,7 +5,7 @@ if (!dependencies('brightnessctl')) App.quit(); const get = (args: string): number => Number(Utils.exec(`brightnessctl ${args}`)); const screen = await bash`ls -w1 /sys/class/backlight | head -1`; -const kbd = await bash`ls -w1 /sys/class/leds | head -1`; +const kbd = await bash`ls -w1 /sys/class/leds | grep '::kbd_backlight$' | head -1`; class Brightness extends Service { static {