Support applications with push-to-talk button under wayland
Thank you for gnome-shell!
I know of no way to get working global push-to-talk under gnome+wayland. Push-to-talk is a very widespread feature in voice chat applications like Teamspeak, Mumble or Discord. The concept is to only enable your microphone while you are holding down a key. When I say "global" I mean, that the hotkey should work whatever application is focused. Applications like Mumble have been doing this for years und X. Because of the security design of Wayland this can no longer work without cooperation of the compositor.
To solve this problem, I am suggesting an addition to the keyboard hotkeys configuration of gnome-shell:
Right now hotkeys configured for the window manager are triggered on key press. When configuring a hotkey there could be a (by default not set) checkmark for "Execute on key release instead of key press." Then one could configure one key to trigger on key press some unmute signal and and on keyup a mute signal. The user could decide to bind pulseaudio unmute/mute to it or use e.g. the new mumble dbus endpoints they expose for exactly this purpose.
Please note, that this addition would not have anything to do with audio in the implementation and might be useful for completely different applications.
I am not completely sure, that gnome-shell is the correct repo to get this implemented in gnome, if I am wrong please direct me to the right project.
I use gnome 3.34. But I don‘t think that a feature like this has been implemented since that release.