So I’ve got an apple bluetooth keyboard that I’m trying to get set up with the same key mappings as a standard windows keyboard. In particular I want the keys on the bottom row left hand side to be Ctrl - Fn - Cmd - Alt in order (rather than Fn - Ctrl - Alt- Cmd as default on the apple keyboard). I would also prefer to have the Fn keys work as media keys by default and use the Fn key to swap to functions (since this is how my laptops keyboard works and it is least confusing if they are the same).
From the Arch wiki here: https://wiki.archlinux.org/index.php/Apple_Keyboard
I discovered the package hid-apple-patched-git-dkms
But after following the given instructions things are not working quite as I would like. I did the following:
sudo nano /etc/mkinitcpio.conf
add /etc/modprobe.d/hid_apple_pclayout.conf to FILES="" so that it reads FILES="/etc/modprobe.d/hid_apple_pclayout.conf"
sudo mkinitcpio -p linux
Now: Cmd and Alt have been swapped and work as expected. Fn keys are working as media keys unless Fn is pressed (and then work as function keys as expected). But Ctrl and Fn keys have not been swapped (as expected) and remain in their default layout. I am puzzled because some of the changes have happened but not the others. Any advice on where to go from here would be much appreciated
NB. I’d be happy to use some other way of remapping these keys, but it needs to be such that it only remaps them when I’m using the apple bluetooth keyboard and doesn’t change anything for the built in laptop keyboard, or a USB windows keyboard I use at work.
In case it matters I’m using a dell XPS 15 and Gnome desktop.