Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix i3xrocks volume blocklet #102

Open
grzkv opened this issue Apr 26, 2020 · 6 comments
Open

Fix i3xrocks volume blocklet #102

grzkv opened this issue Apr 26, 2020 · 6 comments

Comments

@grzkv
Copy link

grzkv commented Apr 26, 2020

The screenshot says it all.
image

Most likely, the volume widget is either set to another device or tries to query a different sound system.

@jefft
Copy link

jefft commented Apr 27, 2020

Broken as in the screenshot for me too, on a clean Ubuntu 20.04 + PPA, for at least two reasons:

  • The script uses amixer, which does not automatically control the same device ('card') as the 'Output Device' in Gnome. If you're lucky it might; in my case asound defaulted to a S/PDIF device, and doesn't update when I plug my headphones in. A hacky fix is to set the default device in /etc/asound.conf.
  • The amixer output format isn't as expected, even if the right card is chosen. The equivalent volume script in i3blocks-contrib gets this right. So, for instance, if I dpkg -P i3xrocks-volume; apt install i3blocks; cp -a /usr/share/i3blocks/volume /usr/share/i3xrocks/volume I get a working volume control.

Given the widget's limitations, a useful enhancement is to launch the Gnome control panel at the Sound tab when the volume is clicked:

case $BLOCK_BUTTON in
        1) /usr/bin/i3-msg -q exec /usr/bin/gnome-control-center sound;;

@moritzheiber moritzheiber self-assigned this May 22, 2020
@moritzheiber
Copy link
Contributor

moritzheiber commented May 22, 2020

I'm sort of drawn towards removing anything but Pulseaudio support for the blocklet, to make sure we're on-par with the GNOME dialog here. Any objections? Pulseaudio has been the default audio system for Ubuntu since ages, and folks that want to use a different system (e.g. JACK) or remove it completely are likely skilled enough to also integrate their own blocklet for volume management .. ?

@grzkv
Copy link
Author

grzkv commented May 22, 2020

@moritzheiber Totally makes sense to me. This is the advantage of building the Ubuntu-specific i3 version: you have to cover fewer variations.

@kgilmer
Copy link
Member

kgilmer commented Aug 30, 2020

What's the status of this PR @moritzheiber ?

@moritzheiber
Copy link
Contributor

@kgilmer Ugh, sorry, this vanished off my radar. I'll rewrite the volume blocklet next (and add tests!). I'm also moving this issue to https://github.com/regolith-linux/regolith-i3xrocks-config

@moritzheiber moritzheiber transferred this issue from regolith-linux/regolith-desktop Jan 2, 2021
@nated0g
Copy link

nated0g commented Apr 28, 2021

Any progress @moritzheiber? I just added the volume blocklet to my setup, and it displays correctly until I change the output device in the Gnome control center sound settings. Also for me the actions don't work.

@moritzheiber moritzheiber removed their assignment May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants