Adds shortcuts for backlight
This commit is contained in:
parent
ecd3439efb
commit
9e15443a98
8
rc.lua
8
rc.lua
|
@ -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"}),
|
||||||
|
|
Loading…
Reference in New Issue