In-order to:
- Enable function keys by default
- Swap option (alt) with command key
- Swap fn with left-ctrl key
on the Apple Magic Keyboard:
- Create
/etc/modprobe.d/hid_apple.conf
:
options hid_apple fnmode=2
options hid_apple swap_opt_cmd=1
options hid_apple swap_fn_leftctrl=1
For more options have a look at Arch Linux's Wiki here.
- Trigger copying the configuration into the initramfs bootfile.
sudo update-initramfs -u -k all
- Reboot
sudo reboot