From bc83e9fc528ca32f9691f30760219eb4887fb15e Mon Sep 17 00:00:00 2001 From: dongkc Date: Thu, 24 Dec 2015 18:35:07 +0800 Subject: [PATCH] add backlight support --- rc.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rc.lua b/rc.lua index 5abf9dc..1224ccb 100644 --- a/rc.lua +++ b/rc.lua @@ -512,6 +512,10 @@ globalkeys = awful.util.table.join( volumewidget.update() end), + -- BACKLIGHT control + awful.key({ }, "XF86MonBrightnessUp", function() os.execute("xbacklight -inc 5") end), + awful.key({ }, "XF86MonBrightnessDown", function() os.execute("xbacklight -dec 5") end), + -- MPD control awful.key({ altkey, "Control" }, "Up", function ()