mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-15 04:34:21 +02:00
bindings: add multimedia key support for sound volume
This commit is contained in:
parent
a9fda54455
commit
f4452eb1cd
1 changed files with 6 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue