Finer control for xbacklight

This commit is contained in:
Thomas Forgione 2020-05-31 23:32:26 +02:00
parent dbf53ab975
commit 168b9c877b
1 changed files with 4 additions and 4 deletions

8
rc.lua
View File

@ -430,19 +430,19 @@ globalkeys = awful.util.table.join(
end, {description = "mute sound", group="Fn Keys"}),
awful.key({ }, "XF86MonBrightnessDown", function ()
awful.util.spawn("xbacklight -dec 5")
awful.util.spawn("xbacklight -dec 2")
end, {description = "decrease brightness", group="Fn Keys"}),
awful.key({ }, "XF86MonBrightnessUp", function ()
awful.util.spawn("xbacklight -inc 5")
awful.util.spawn("xbacklight -inc 2")
end, {description = "increase brightness", group="Fn Keys"}),
awful.key({modkey}, "#82", function ()
awful.util.spawn("xbacklight -dec 5")
awful.util.spawn("xbacklight -dec 2")
end, {description = "decrease brightness", group="Brightness controls"}),
awful.key({modkey}, "#86", function ()
awful.util.spawn("xbacklight -inc 5")
awful.util.spawn("xbacklight -inc 2")
end, {description = "increase brightness", group="Brightness controls"}),
awful.key({ }, "XF86PowerOff", function ()