Alfredo,

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

Bests,
Alexis

Le jeu. 23 juil. 2015 à 05:13, Samuel Walladge <[email protected]> a
écrit :

> Haven't been able to test, but I've previously had troubles running some
> shell commands with `awful.util.spawn()` - try
> `awful.util.spawn_with_shell()` and see if that helps.
>
> On Thu, 23 Jul 2015 at 12:39 Elv1313 . <[email protected]> wrote:
>
>> Hello,
>>
>> The awesome mod4+r prompt run without a shell and withous many
>> environment variables. Maybe if you add the command in a script with a
>> #!/bin/bash header and call that, it will work. Else, you will have to
>> figure out what's missing.
>> On Jul 22, 2015 9:39 PM, "Alfredo Palhares" <[email protected]>
>> wrote:
>>
>>> Hello everyone,
>>>
>>> I am trying to xall xbacklight from awesome, with the following commands:
>>>
>>> ```lua
>>> awful.key({ }, "XF86MonBrightnessDown", function ()
>>>     awful.util.spawn("xbacklight -dec 15") end),
>>> awful.key({ }, "XF86MonBrightnessUp", function ()
>>>     awful.util.spawn("xbacklight -inc 15") end),
>>> ```
>>>
>>> But I always get this "No outputs have backlight property", calling the
>>> commands from the command line works.
>>>
>>> Do you have any ideas ?
>>>
>>> --
>>> Alfredo Palhares
>>> GPG/PGP Key Fingerprint
>>> 68FC B06A 6C22 8B9B F110
>>> 38D6 E8F7 4D1F 0763 CAAD
>>>
>> --
> Regards,
>   Samuel Walladge
>

Reply via email to