]> gitweb.fluxo.info Git - rhatto/dotfiles/awesome.git/commitdiff
Feat: keys: brightness
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 30 Dec 2022 21:24:47 +0000 (18:24 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 30 Dec 2022 21:24:47 +0000 (18:24 -0300)
config.dot/awesome.link/keys.lua

index 4d4a5469524f5bdb07a608a55b5e24de4157bd35..9a2f45a8adbe50ae4d34658914dc1fc591c95290 100644 (file)
@@ -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"}),