end-4 / dots-hyprland

i hate minimalism so...
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.71k stars 255 forks source link

[Feature] Value indicator popup: Display sink output mute state #334

Open yrnmsk opened 5 months ago

yrnmsk commented 5 months ago

What would you like to be added?

Anything that can help a user recognize that the current sink output is muted (e.g.: headphones/speakers/other bluetooth device).

Right now, it just displays the current volume value regardless of the sink mute state.

How will it help

It would help users who frequently toggle mute/unmute their sink outputs for whatever valid reasons they have. Raising/lowering the volume of the sink output doesn't necessarily unmute it if it is muted, so it would be useful if we could somehow display current sink mute state.

Extra info

You might already know this since we talked about this already before, but based on the AGS docs, I got mute state (boolean) via Audio.speaker?.stream?.isMuted.

The last time I did it on my own, I just displayed 0 both for the number label and the slider value, so it could be improved. For example, an icon that resembles a mute state, or some scss shenanigans that can help visually imply a disabled effect for the slider and the number label, or whatever else.