amixer (hotkeys): +-1% -> +-5%.

This commit is contained in:
Kolan Sh 2016-10-14 22:23:26 +03:00
parent 738c403532
commit 4b5aa0b95f
1 changed files with 4 additions and 4 deletions

8
rc.lua
View File

@ -391,17 +391,17 @@ root.buttons(awful.util.table.join(
globalkeys = awful.util.table.join(
-- Volume control --
awful.key({ modkey }, ".", function ()
os.execute("pgrep -x amixer || amixer set Master 1%+") end),
os.execute("pgrep -x amixer || amixer set Master 5%+") end),
awful.key({ modkey }, ",", function ()
os.execute("pgrep -x amixer || amixer set Master 1%-") end),
os.execute("pgrep -x amixer || amixer set Master 5%-") end),
awful.key({ modkey }, "/", function ()
awful.util.spawn("amixer sset Master toggle") end),
-- Volume control --
awful.key({ }, "XF86AudioRaiseVolume", function ()
os.execute("pgrep -x amixer || amixer set Master 1%+") end),
os.execute("pgrep -x amixer || amixer set Master 5%+") end),
awful.key({ }, "XF86AudioLowerVolume", function ()
os.execute("pgrep -x amixer || amixer set Master 1%-") end),
os.execute("pgrep -x amixer || amixer set Master 5%-") end),
awful.key({ }, "XF86AudioMute", function ()
awful.util.spawn("amixer sset Master toggle") end),