From 9e15443a98badceca1df89b9dc8cf141c890fefb Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 12 Dec 2019 10:31:05 +0100 Subject: [PATCH] Adds shortcuts for backlight --- rc.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rc.lua b/rc.lua index 4d30f94..39c3acb 100644 --- a/rc.lua +++ b/rc.lua @@ -440,6 +440,14 @@ globalkeys = awful.util.table.join( awful.util.spawn("xbacklight -inc 5") end, {description = "increase brightness", group="Fn Keys"}), + awful.key({modkey}, "#82", function () + awful.util.spawn("xbacklight -dec 5") + end, {description = "decrease brightness", group="Brightness controls"}), + + awful.key({modkey}, "#86", function () + awful.util.spawn("xbacklight -inc 5") + end, {description = "increase brightness", group="Brightness controls"}), + awful.key({ }, "XF86PowerOff", function () awful.util.spawn("gksudo shutdown now") end, {description = "Shutdown", group="Fn Keys"}),