aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-12-30 18:24:47 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-12-30 18:24:47 -0300
commit96755d0243163787ef6624fe4fc10abaffcbf4dc (patch)
treea329a9bacf833124d52d8648557b8bfc524e5f8d
parent17a42de3d4914a9d4c423e5e728df6ab8084330c (diff)
downloadawesome-96755d0243163787ef6624fe4fc10abaffcbf4dc.tar.gz
awesome-96755d0243163787ef6624fe4fc10abaffcbf4dc.tar.bz2
Feat: keys: brightness
-rw-r--r--config.dot/awesome.link/keys.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.dot/awesome.link/keys.lua b/config.dot/awesome.link/keys.lua
index 4d4a546..9a2f45a 100644
--- a/config.dot/awesome.link/keys.lua
+++ b/config.dot/awesome.link/keys.lua
@@ -27,11 +27,15 @@ globalkeys = awful.util.table.join(root.keys(),
{description = "toggle display", group = "client"}
),
- -- Volume keys
+ -- Volume
awful.key({ }, "XF86AudioRaiseVolume", function () awful.spawn("amixer set Master 9%+", false) end, {description = "volume up", group = "client"}),
awful.key({ }, "XF86AudioLowerVolume", function () awful.spawn("amixer set Master 9%-", false) end, {description = "volume down", group = "client"}),
awful.key({ }, "XF86AudioMute", function () awful.spawn("amixer set Master toggle", false) end, {description = "mute", group = "client"}),
+ -- Brightness
+ awful.key({ }, "XF86MonBrightnessDown", function () awful.util.spawn("xbrightness -10%") end),
+ awful.key({ }, "XF86MonBrightnessUp", function () awful.util.spawn("xbrightness +10%") end),
+
-- Hibernate
awful.key({ }, "XF86Launch1", function () awful.spawn("xhibernate") end, {description = "", group = "client"}),