Skip to content

add an optional panel button to control the input volume

Anthony Baire requested to merge a-ba/xfce4-pulseaudio-plugin:mic-button into master

This PR introduces an optional panel button for controlling the input volume.

image

In this video-conferencing intensive era, i find very useful to have an always-there, immediately-reachable button for controlling the input volume. You are in the middle of a video conference, wandering on another window/workspace/browser-tab then your name is called and your facing a dilema, either you focus on unmuting your mic (after having to figure out if it is really muted and to find the right window to control it) you're ready to talk but haven't listened to the question, or you focus on the question which makes you able to answer accurately but you are unable to talk because you mic is still muted. With this addition the dilema is gone, whatever your were doing, unmuting the mic takes only a fraction of a second (and you can elevate that to a reflex if you're smart enough to place the button in a corner of the screen!)

The input volume button is disabled by default. It can be enabled in the preferences dialog:

image

If the panel only has a single row, then the buttons are arranged in the same direction:

  • horizontal panel: image
  • vertical panel: image

If the panel is wider, then the buttons are arranged orthogonally (the plugin is no longer small):

  • horizontal panel: image
  • vertical panel: image

If the input volume button is disabled, then the behaviour is unchanged (small plugin with a single button):

  • horizontal panel: image
  • vertical panel: image

The implementation resuse the existing PulseaudioButton widget (adding a boolean mic property), thus the behaviour of the button is the same as for the output volume button:

  • left-click: open the plugin dialog
  • middle-click: mute/unmute
  • mouse-scroll: volume up/down

Merge request reports

Loading