From c764098185c3bab9cf10d75c5069e5c0d4dc6d48 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 22 Feb 2013 15:09:51 -0300 Subject: Adding volume keys and widgets --- modules/awesome/config.dot/awesome.link/keys.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/awesome/config.dot/awesome.link/keys.lua') diff --git a/modules/awesome/config.dot/awesome.link/keys.lua b/modules/awesome/config.dot/awesome.link/keys.lua index 2b1294e..04e1549 100644 --- a/modules/awesome/config.dot/awesome.link/keys.lua +++ b/modules/awesome/config.dot/awesome.link/keys.lua @@ -11,8 +11,13 @@ globalkeys = awful.util.table.join(root.keys(), awful.key({ modkey, "Control" }, "h", function () awful.util.spawn("xhibernate") end), awful.key({ modkey, "Control" }, "k", function () awful.util.spawn("kedpm") end), awful.key({ modkey, "Control" }, "c", function () awful.util.spawn("chromium-browser") end), - awful.key({ modkey, "Control" }, "t", function () awful.util.spawn("thunar") end) + awful.key({ modkey, "Control" }, "t", function () awful.util.spawn("thunar") end), --awful.key({ modkey, "Control" }, "b", function () awful.util.spawn("terminal irssi") end), + + -- Volume keys + awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 9%+", false) end), + awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 9%-", false) end), + awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer sset Master toggle", false) end) ) -- Set keys -- cgit v1.2.3