The short answer is: it is not possible to reassign <Super>+<F1>
in Gnome v3.21.9x+.
The long answer: starting with Gnome version 3.21.90 there's a hardcoded assignment of Super+F1 to Gnome Help, so you can't reassign this key combination without recompiling gnome-settings-daemon
(and, more specifically, the gsd-media-keys
plugin).
According to gnome-settings-daemon changelog:
===============
Version 3.21.90
===============
...
Media keys:
- Add Super+F1 as a hardcoded shortcut for launching Help
...
Looking at the source code (file .../plugins/media-keys/shortcuts-list.h) you'll find:
...
{ HELP_KEY, NULL, N_("Help"), "<Super>F1", GSD_ACTION_MODE_LAUNCHER },
...
I was able to successfully recompile the gnome-settings-daemon binary, but it took me a few hours to get everything right. I wrote a detailed step-by-step, but here's a summary:
Download and install Gnome Builder
"Clone" the official repo at https://gitlab.gnome.org/GNOME/gnome-settings-daemon
Go to the directory where you downloaded the repo, and checkout your specific version with git checkout tag/GNOME_SETTINGS_DAEMON_3_28_1
(make sure this matches your version; check the Gnome version you're running with gnome-shell --version
, and all the tags available with git tag -l
).
Install dependencies:
apt install libcolord-dev, \
libgeocode-glib-dev, \
gnome-desktop3-data, \
libgweather-3-dev, \
libcanberra-gtk3-dev, \
libgeoclue-2-dev, \
libnotify-dev, \
libpulse-mainloop-glib0, \
libpulse-dev, \
gobject-introspection, \
libupower-glib-dev, \
libpolkit-gobject-1-dev, \
libasound2-dev, \
libgudev-1.0-dev, \
libwacom-dev, \
libnss3-dev, \
libcups2-dev, \
libnm-dev
Patch the file ./gnome-settings-daemon/plugins/media-keys/shortcuts-list.h
, by adding a comment in front of the line with the Super+F1 (around line 69, for v3.28.x)
Recompile using Builder
Locate the compiled gsd-media-keys
binary and replace in your system (don't forget to make a copy of the original before proceeding, in the case you need to revert back)
Log out or reboot, and you're done!
Now you can re-assign the Super+F1 keys normally to anything you want.