From 96755d0243163787ef6624fe4fc10abaffcbf4dc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 30 Dec 2022 18:24:47 -0300 Subject: Feat: keys: brightness --- config.dot/awesome.link/keys.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"}), -- cgit v1.2.3