From 40089362a1b9b9f39766e4e2870d1d95be86e5f4 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Mon, 25 Jun 2012 12:51:05 +0400 Subject: [PATCH] Volume control --- rc.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rc.lua b/rc.lua index 9d367d7..3c31a3f 100644 --- a/rc.lua +++ b/rc.lua @@ -204,6 +204,15 @@ root.buttons(awful.util.table.join( -- {{{ Key bindings globalkeys = awful.util.table.join( + -- Volume control -- + awful.key({ modkey }, ".", function () + awful.util.spawn("amixer set Master 9%+") end), + awful.key({ modkey }, ",", function () + awful.util.spawn("amixer set Master 9%-") end), + awful.key({ modkey }, "/", function () + awful.util.spawn("amixer sset Master toggle") end), + + -- Volume control -- awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer set Master 9%+") end), awful.key({ }, "XF86AudioLowerVolume", function ()