Adds shortcuts for backlight

This commit is contained in:
Thomas Forgione 2019-12-12 10:31:05 +01:00
parent ecd3439efb
commit 9e15443a98
No known key found for this signature in database
GPG Key ID: BFD17A2D71B3B5E7
1 changed files with 8 additions and 0 deletions

8
rc.lua
View File

@ -440,6 +440,14 @@ globalkeys = awful.util.table.join(
awful.util.spawn("xbacklight -inc 5") awful.util.spawn("xbacklight -inc 5")
end, {description = "increase brightness", group="Fn Keys"}), 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.key({ }, "XF86PowerOff", function ()
awful.util.spawn("gksudo shutdown now") awful.util.spawn("gksudo shutdown now")
end, {description = "Shutdown", group="Fn Keys"}), end, {description = "Shutdown", group="Fn Keys"}),