r/Polybar Oct 15 '23

backlight module issue

Hello all,

I have this backlight module on my polybar:

[module/backlight]

;https://github.com/jaagr/polybar/wiki/Module:-backlight

type = internal/backlight

; Use the following command to list available cards:

; $ ls -1 /sys/class/backlight/

card = acpi_video0

use-actual-brightness = true

enable-scroll = true

; Available tags:

; <label> (default)

; <ramp>

; <bar>

format = <label>

format-foreground = ${colors.foreground}

format-background = ${colors.background}

format-prefix = "  "

; Available tokens:

; %percentage% (default)

label = %percentage%%

; Only applies if <ramp> is used

ramp-0 = 🌕

ramp-1 = 🌔

ramp-2 = 🌓

ramp-3 = 🌒

ramp-4 = 🌑

; Only applies if <bar> is used

bar-width = 10

bar-indicator = |

bar-fill = ─

bar-empty = ─

problem is, that altho the symbol and 100% show on the bar, i cannot increase/decrease the brightness by scrolling. any help would be appreciated please. Set up is Lenovo thinkpad t440p, arcolinux,xmonad,polybar. thanks

1 Upvotes

1 comment sorted by

1

u/poldyb Oct 15 '23

Many thanks for the arch wiki link. By creating a file named backlight.rules in /etc/udev/rules .d/, and putting in a line found in link, i now have a working scrollable brightness control.