I have solved this issue. xbacklight needs to know which screen to use. It can either be an environment variable DISPLAY or you can pass it as a parameter.
A command that works with awful utils would be: ``` xbacklight -display :0 -inc 10 ``` The number of the display can be obtained from ``xrandr`` output. > I use os.execute instead of awful utils (actually, I don't know why) and it > works without any problem (except that my keyboard send the keypress signal > twice...) > https://github.com/AlexisBRENON/awesome-configuration/blob/master/backend/brightness/xbacklight.lua#L17 This is might work, because os.execute seems to have access to the environment variables of the current system. Maybe because it is executed as an child process of awesome ? I don't know, the devs might know how to answer this. The solution to my problem is in this pull request[1], it also includes a nice progress bar widget if anyone is interested on taking some ideas. [1]: https://github.com/masterkorp/Awesome-config-files/pull/5 -- Alfredo Palhares GPG/PGP Key Fingerprint 68FC B06A 6C22 8B9B F110 38D6 E8F7 4D1F 0763 CAAD
signature.asc
Description: PGP signature
