Please note: This is not a duplicate as the fn key behaves differently than other keys on the keyboard. I can't get the fn keycode by using, for example, xev
.
I'm running Xubuntu 16.04 on my Macbook now, with UK keyboard layout for input, which works fine and has all the keys in the correct positions.
The one thing I never got used to on my Macbook is that the fn and Ctrl keys are swapped over from what you would usually see in most UK laptops' keyboard layouts.
Can I reconfigure my keyboard layout in Ubuntu so that the fn key in the picture above becomes Ctrl, and vice-versa (while keeping all others keys exactly the same)?
This is tricky because the fn key doesn't seem to behave like other keys. You can't get the fn keycode by running xev
. Every other answer to this question I've found doesn't apply when dealing with the fn
key, as they depend on getting the keycode from xev
.
How can I remap fn to Ctrl and vice-versa?
I will welcome any "hackish" idea or solution.
sudo acpi_listen
and press a Fn + volUp will showbutton/volumeup VOLUP 00000080 00000000 K
. It connects directly to the hardware so is OS independent. Remapping probably is out of the question.