Variants of this question have been asked before, e.g., "Remap shortcut to a single key cannot be used". The answer usually involves installing some other package. Is it possible to map/remap a single function key (I have F10 to switch windows in mind)? I have tried the official Ubuntu way and it won't allow this. I also tried this command:
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['F10']"
That won't work either. I want to map it in such a way that the operating system shortcuts should take precedence over all other program shortcuts (like when in Emacs).