

Then remember to call update-initramfs -k -all (or dracut -regenerate-all -force in Fedora) so the parameters get loaded when the module gets loaded on boot, or they will be ignored. On your Mac, choose Apple menu > System Settings, then click Keyboard in the sidebar. Once you are comfortable with the configuration, you can make them permanent.Ĭreate a file like this /etc/modprobe.d/hid_nf and add your parameters like this: options hid_apple fnmode=2 swap_opt_cmd=1 Change the behavior of the modifier keys on Mac You can change the action that modifier keys, such as Control or Option, perform when you press them.

First check the existing parameters with modinfo hid_apple and then modify them on the fly: echo 2 > /sys/module/hid_apple/parameters/fnmodeĮcho 1 > /sys/module/hid_apple/parameters/swap_opt_cmdĮcho 1 > /sys/module/hid_apple/parameters/swap_fn_leftctrl So in Mac Command as commanding & Ctrl has its another function whereas in windows.

#Mac swap control and command keys how to#
This MSDN article explains how to swap left CTRL key with the CAPS LOCK key. Windows has a built-in key scan code mapper facility.
#Mac swap control and command keys software#
To play around with the parameters you can change them live. As control is a common key in mac & windows keyboard. There is a better way to achieve this goal (to completely swap the keys) without using any 3rd-party software at all. (I don't know if this is required, but I did it.)Īnother solution which does NOT involve Xmodmap, nor depends on gnome-tweaks is to instruct the module to swap them. The extra key on many European keyboards: Xmodmap doesn't work universally in all apps, gnome tweak tool lacked the function, dconf editing a custom altwin2 key swap (like the main answer here) failed, so I was tearing my hair out until I combined several answers into this complete, simple, and elegant solution: gksudo gedit /usr/share/X11/xkb/symbols/pcĬhange it to: default partial alphanumeric_keys modifier_keys In 16.04, here's the way I finally got this to work. but might need to get used it to on the mac as others suggest. Duplicate of How to swap Command and Control keys with xkb step by step? The Command keys are located in between the Alt keys and the spacebar on the standard Mac keyboard, in similar locations to the Windows keys on Windows. Mac keyboards have Option and Command keys where standard PC keyboards have Alt and Windows keys.
