The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

When will sound be included in i3?

asked 2015-09-18 01:55:47 +0000

saterhater gravatar image

Hi, I've found i3wm to be quite enjoyable. However, the lack of any sound support whatsoever is a rather large inconvenience. Is there any plan on to include sound support in the near future? I would like a wm that includes keyboard support with some audio features.

edit retag flag offensive close merge delete



A window manager does not in any way shape or form have anything to do with sound. Please see pulseaudio, pavucontrol, ponymix, multiple volume control applets to run in your tray

Michael Rose gravatar imageMichael Rose ( 2015-09-18 02:38:43 +0000 )edit

I guess what I was looking for was a way of actually getting one of those applets to actually work. Has that ever been done before? I see lots of documentation on how to get it to not work. I'm wondering if there's an actual build that has audio working in some way, shape or form.

saterhater gravatar imagesaterhater ( 2015-09-18 02:43:05 +0000 )edit

I3 supports running any standard tray applets you could run in any other other wm/de. Personally I find its most useful to bind multimedia keys or an audio mode to shell functions. ponymix a simple cli to control pulse playerctl a simple cli to control various media players

Michael Rose gravatar imageMichael Rose ( 2015-09-18 04:18:08 +0000 )edit

The questions and - among others - already cover this particular issue. Searching the FAQ for "sound" or "volume" will provide you a list.

Adaephon gravatar imageAdaephon ( 2015-09-19 06:46:58 +0000 )edit

What ales me is that the bind-keys (and anything to do with pactl) is failing in the config. scripts I use for toggling mute work, just not in ~/.i3/config. Any thoughts? new question?

saterhater gravatar imagesaterhater ( 2015-09-19 17:08:57 +0000 )edit

1 answer

Sort by » oldest newest most voted

answered 2015-09-20 16:39:05 +0000

dd0 gravatar image

updated 2015-09-20 16:39:23 +0000

Do you mean changing volumes?

  • You can use tray applets like volumeicon, volwheel. I was using that but it wasn't like I wanted.
  • You can use i3blocks statusbar. There is a volume block included in config file like this:

This will display the volume in the statusbar. Hovering over with mouse and scrolling will change the volume. Right click toggles muting.

To change volumes with keyboard you see here and here but also add pkill -RTMIN+1 i3blocks to your commands so statusbar block will be refreshed. Like this:

bindsym XF86AudioMute exec "amixer set Master toggle ; pkill -RTMIN+1 i3blocks"
bindsym XF86AudioLowerVolume exec "amixer -M set Master 5%- ; pkill -RTMIN+1 i3blocks"
bindsym XF86AudioRaiseVolume exec "amixer -M set Master 5%+ ; pkill -RTMIN+1 i3blocks"

If you mean things like notification sounds I'm sure it can be done by running commandline audio players as needed. In that case main question would be how to run commands when specific events happen.

edit flag offensive delete link more

Question Tools


Asked: 2015-09-18 01:55:47 +0000

Seen: 380 times

Last updated: Sep 20