You are not logged in.

#1 2014-10-12 18:56:04

emacsomancer
Member
Registered: 2014-09-20
Posts: 211

[Solved] Remapping multimedia keys for Pulse audio in Awesome WM

I switched over to Pulseaudio and would like to have my keyboard vol up, vol down, mute control Pulseaudio volume.

I used to have:

    -- Multimedia
   awful.key({ }, "XF86AudioRaiseVolume", function ()
       awful.util.spawn("amixer set Master 9%+", false) end),
   awful.key({ }, "XF86AudioLowerVolume", function ()
       awful.util.spawn("amixer set Master 9%-", false) end),
   awful.key({ }, "XF86AudioMute", function ()
       awful.util.spawn("amixer set Master toggle", false) end),

I tried:

   -- Multimedia
   awful.key({ }, "XF86AudioRaiseVolume", function ()
       awful.util.spawn("pactl set-sink-volume 0 +5%", false) end),
   awful.key({ }, "XF86AudioLowerVolume", function ()
       awful.util.spawn("pactl set-sink-volume 0 -- -5%", false) end),
   awful.key({ }, "XF86AudioMute", function ()
       awful.util.spawn("pactl set-sink-mute 0 toggle", false) end),

(and also with "exec" in front of each "pactl" command), but with no success.

Suggestions?

Last edited by emacsomancer (2014-10-13 10:55:05)

Offline

#2 2014-10-12 19:03:56

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [Solved] Remapping multimedia keys for Pulse audio in Awesome WM

Dunno about that specific implementations, but I wrote a script for this purpose.  Look in the AUR for pulseaudio-ctrl and see if it meets your needez.

Offline

#3 2014-10-12 19:30:11

emacsomancer
Member
Registered: 2014-09-20
Posts: 211

Re: [Solved] Remapping multimedia keys for Pulse audio in Awesome WM

Thanks.

For some reason it's not actually affecting the HDMI output volume to my monitor.

I can see it's correctly adjusting the "Pulseaudio" device in Alsamixer, but that doesn't seem to affect the actual output.  So I suppose this is no longer a question about mapping multikeys, but I'm confused as to what's going on.

Offline

#4 2014-10-12 20:43:47

emacsomancer
Member
Registered: 2014-09-20
Posts: 211

Re: [Solved] Remapping multimedia keys for Pulse audio in Awesome WM

Nevermind - I figured it out.  I needed to set a different default sink.

Offline

Board footer

Powered by FluxBB