[i3-discuss] Re: How to control the sound volume in i3?

  • From: Michael Stapelberg <michael@xxxxxxxx>
  • To: i3-discuss@xxxxxxxxxxxxx
  • Date: Sat, 26 Jan 2019 17:11:07 +0100

What happens when you run the commands in a terminal? It looks like “0”
might not be a valid identifier for your sink. You can use @DEFAULT_SINK@
instead:

exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ 10\%


On Sat, Jan 26, 2019 at 4:19 PM Luí­s Moreira de Sousa <
dmarc-noreply@xxxxxxxxxxxxx> wrote:

Hello again, more novice questions on i3.

I would like to control the sound volume in i3. Since all the keyboards I
use have dedicated keys to control sound volume, I added the following
lines to the config file (as indicated in the FAQ):

# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0
+5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0
-5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle #
mute sound

However, with these bindings loaded the system remain unresponsive to
these keys. I then tried software based controls. I am able to start the
sound volume applet from Mutiny, which adds an indicator to the i3 bar
where one can access a classical volume scroll bar. As with the buttons,
scrolling the volume control has no effect on the volume of the sound
output.

How can I control  then sound volume in i3 then?

Thank you.

--
Luís



-- 
Best regards,
Michael

Other related posts: