summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-12 01:41:06 -0600
committerzachir <zachir@librem.one>2023-02-12 01:41:06 -0600
commit161a6efd7e0ec2655d33b12271911b79b30559b2 (patch)
treea87ce155cbab25b87d2f38a3a2fe2cf0f6029c33
parent11b53c95c96b7f50cea42e45f1811610514573c7 (diff)
parse bl from computerrc to determine backlight command
-rw-r--r--awesome/rc.lua4
-rwxr-xr-xcomputerrc.txt1
2 files changed, 4 insertions, 1 deletions
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",
diff --git a/computerrc.txt b/computerrc.txt
index 69cdc49..95ec4c1 100755
--- a/computerrc.txt
+++ b/computerrc.txt
@@ -8,4 +8,5 @@ snd: sound server to launch automatically i.e. pipewire, pulseaudio, sndio,
batt: if there is a battery or not i.e. y or n
wayland: if boot into wayland or not i.e. y or n
tsname: touchscreen xorg device i.e. device from xinput
+bl: backlight control command to use i.e. light or xbacklight
term: terminal to use i.e. st or alacritty