From: martin f. krafft Date: Mon, 8 Sep 2014 20:46:53 +0000 (+0200) Subject: manipulate mixer relatively, not absolutely X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/3549383d58191b5f90cec0573fe0b0f1249fe15f manipulate mixer relatively, not absolutely --- diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 4a28c5e..8cd9f1e 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -456,10 +456,10 @@ cmdmodkey = "Mod3" -- xmms2 & sound globalkeys = awful.util.table.join(globalkeys, - awful.key({ cmdmodkey }, "Prior", function () awful.util.spawn("amixer set Master 2+") end), - awful.key({ cmdmodkey }, "Next", function () awful.util.spawn("amixer set Master 2-") end), - awful.key({ cmdmodkey }, "Up", function () awful.util.spawn("amixer set PCM 2+") end), - awful.key({ cmdmodkey }, "Down", function () awful.util.spawn("amixer set PCM 2-") end), + awful.key({ cmdmodkey }, "Prior", function () awful.util.spawn("amixer set Master 2%+") end), + awful.key({ cmdmodkey }, "Next", function () awful.util.spawn("amixer set Master 2%-") end), + awful.key({ cmdmodkey }, "Up", function () awful.util.spawn("amixer set PCM 2%+") end), + awful.key({ cmdmodkey }, "Down", function () awful.util.spawn("amixer set PCM 2%-") end), awful.key({ cmdmodkey }, "Home", function () awful.util.spawn("amixer set Mic toggle") end), awful.key({ cmdmodkey }, "End", function () awful.util.spawn("amixer set Master toggle") end), awful.key({ cmdmodkey }, "Left", function () awful.util.spawn("nyxmms2 prev") end),