From: martin f. krafft Date: Thu, 10 Mar 2016 10:12:16 +0000 (+0100) Subject: volume keys now do pulseaudio X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/13f8fda788cf16ea7269b4e9b4868cd06195577f?ds=sidebyside volume keys now do pulseaudio --- diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index b281d34..a56aab0 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -457,12 +457,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 }, "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 }, "Prior", function () awful.util.spawn("pactl set-sink-volume 0 +2%") end), + awful.key({ cmdmodkey }, "Next", function () awful.util.spawn("pactl set-sink-volume 0 -2%") end), + awful.key({ cmdmodkey }, "Home", function () awful.util.spawn("pactl set-source-mute 1 toggle") end), + awful.key({ cmdmodkey }, "End", function () awful.util.spawn("pactl set-sink-mute 0 toggle") end), awful.key({ cmdmodkey }, "Left", function () awful.util.spawn("nyxmms2 prev") end), awful.key({ cmdmodkey }, "Right", function () awful.util.spawn("nyxmms2 next") end), awful.key({ cmdmodkey }, "space", function () awful.util.spawn("nyxmms2 toggle") end),