bindings: add multimedia key support for sound volume

This commit is contained in:
Vincent Bernat 2012-07-07 12:16:21 +02:00
parent a9fda54455
commit f4452eb1cd

View file

@ -45,7 +45,12 @@ config.keys.global = awful.util.table.join(
awful.key({ modkey, }, "Return", function () awful.util.spawn(config.terminal) end), awful.key({ modkey, }, "Return", function () awful.util.spawn(config.terminal) end),
-- Restart awesome -- Restart awesome
awful.key({ modkey, "Control" }, "r", awesome.restart) awful.key({ modkey, "Control" }, "r", awesome.restart),
-- Multimedia keys
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer -q -c 0 set Master 2dB+", false) end),
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer -q -c 0 set Master 2dB-", false) end),
awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer -q -c 0 set Master toggle", false) end)
) )
config.keys.client = awful.util.table.join( config.keys.client = awful.util.table.join(