The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

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

Comments

1

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 https://faq.i3wm.org/question/125/how-to-change-the-systems-volume/ and https://faq.i3wm.org/question/3747/enabling-multimedia-keys/ - 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
1

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:
[volume]
label=vol
#label=♪
instance=Master
command=/usr/lib/i3blocks/volume
interval=once
signal=1

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

Stats

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

Seen: 380 times

Last updated: Sep 20