gnome-shell-audio-output-switcher
gnome-shell-audio-output-switcher copied to clipboard
add shortcut
nice extension thanks! could you add keyboard shortcut functionality please?
Hi, thanks.
Nice idea, but in case we have 3 (or more) outputs, what should the shortcut should do ? Switch to the next ?
for a situation with 3 available outputs, I’d let it switch to the next output, so pressing the shortcut 2 times would switch to the third output. For users with 2 outputs this wouldn’t make a difference as it would result in switching between the two available outputs only.
to describe my situation, i have three outputs: on-board, external usb soundcard, hdmi projector. as I never use the hdmi outut, I disable it in PavuControl so that I only can swithch between the on-board audio(connected to my display speakers) and the usb soundcard (connected to my big room amp).
FYI there used to be an audio-output extension (now outdated, as many audio related gnome extensions, i dan’t see now which one it was as they don’t work properly with gnome 3.22 but maybe you can browse the source codes of those…) that used to have this functionality, but implemented in some form of profiles - in the extension preferences all sound outputs were listed, and you had to check those ones you want to switch between. (maybe you can re-use parts of their code?) Also there was a OSD notification about the switch which was nice, although a top panel icon change/or an always-visible label change would be nice too.
anyway, thanks for looking into this.. I’m looking forward to the day this is implemented :)
FYI the mentioned extension which already has a shortcut for switching outputs implemented (although it doesn't work with my usb external soundcard :/ ) : https://extensions.gnome.org/extension/858/volume-mixer/
Ok, the sources of this project : https://github.com/aleho/gnome-shell-volume-mixer
Will look into it when I'll have the time, but if you have the motivation to help, feel free ;)