From 13f8fda788cf16ea7269b4e9b4868cd06195577f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 10 Mar 2016 11:12:16 +0100 Subject: [PATCH 1/1] volume keys now do pulseaudio --- .config/awesome/rc.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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), -- 2.39.5