Ubuntu – Brightness control on Awesome windowing manager

awesomebrightness

I have just installed Awesome WM and I have no options to change the screen brightness, and also its shortcut doesn't working. Any one can help?

Best Answer

In the globalkeys = awful.util.table.join( section of ~/.config/awesome/rc.lua:

    -- Brightness

    awful.key({ }, "XF86MonBrightnessDown", function ()
        awful.util.spawn("xbacklight -dec 15") end),
    awful.key({ }, "XF86MonBrightnessUp", function ()
        awful.util.spawn("xbacklight -inc 15") end),