Closed FerrielMelarpis closed 6 months ago
0.5
Device 'intel_backlight' of class 'backlight': Current brightness: 496 (100%) Max brightness: 496
496
246
Quick fix
get_brightness_cmd = "bash -c \"brightnessctl -m | awk -F ',' '{print $4+0}'\""
Possible solution I think you have to calculate the percentage with (brightnessctl get/brightnessctl max)x100
Hi there, awesomewm beginner here. First of, thanks for this awesome project.
Description
When setting the brightness_widget settings to
the text displayed is not a percentage value but actual brightness value. In my case it shows
14543
for e.g. and the max brightness value19393
.Possible solution
To get the actual percentage, I think we can use
brightnessctl -m | cut -d, f4 | tr -d %
.Happy to create a PR to fix this and get myself familiar with awesomewm.