Ubuntu 21.04 F13 button opens Gnome settings panel instead
This is something that has been a pain since perhaps Ubuntu 20.04. Never bothered to look beyond the CLI solution until recently.
Expected behavior
Mouse button 5 is mapped to ‘F13’ and used as push-to-talk button for Discord.
Discord accepts the key and push-to-talk works.
Actual behavior
Gnome Settings panel is opened instead.
Solution
Install dconf Editor
sudo apt install dconf-editor dconf-editor
Open
conf-editor
Search for ‘control-center-static
Double-click and deslected ‘use default value’ and make sure ‘Custom value’ is set to [’’]
Alternative solution (not working)
gsettings set org.gnome.settings-daemon.plugins.media-keys control-center-static "['']"
This does not work in recent versions of Ubuntu? Since 20.04 potentially, based on one source.
Perhaps restart of Gnome or computer would make this work?
Bug?
This seems to not work when nothing is selected by just clicking on the Desktop. But selecting an application makes it work again. Some exceptions though it seems, such as Firefox and the Gnome Settings.
Make sure to always keep your Operating System(s) and all of the software that you are using up to date.
Feedback on our content or did you find a bug somewhere?
Send us an email to feedback at this domain.
kthxbai