kgaut / gnome-shell-audio-output-switcher

Gnome-Shell Extension: Easily switch between your audio outputs from the system menu
GNU General Public License v2.0
18 stars 4 forks source link

add shortcut #8

Open corebots opened 7 years ago

corebots commented 7 years ago

nice extension thanks! could you add keyboard shortcut functionality please?

kgaut commented 7 years ago

Hi, thanks.

Nice idea, but in case we have 3 (or more) outputs, what should the shortcut should do ? Switch to the next ?

corebots commented 7 years ago

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 :)

corebots commented 7 years ago

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/

kgaut commented 7 years ago

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 ;)