From 161a6efd7e0ec2655d33b12271911b79b30559b2 Mon Sep 17 00:00:00 2001 From: zachir Date: Sun, 12 Feb 2023 01:41:06 -0600 Subject: parse bl from computerrc to determine backlight command --- awesome/rc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'awesome') diff --git a/awesome/rc.lua b/awesome/rc.lua index 28ed104..66ecb28 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -288,6 +288,8 @@ awful.screen.connect_for_each_screen(function(s) batt = crcparse("batt") + light = crcparse("bl") + if batt == "y" then battery = battery_widget { font = font, @@ -349,7 +351,7 @@ awful.screen.connect_for_each_screen(function(s) }), brightness_widget { type = "arc", - program = "light", + program = light, step = 5, base = 20, path_to_icon = "/usr/share/icons/Paper/scalable/status/display-brightness-symbolic.svg", -- cgit v1.2.3