![]() Step 5: Click OK and close System Preferences. Step 4: For the Command (⌘) Key setting, select (⌥) Option. ![]() Step 3: For the Option (⌥) Key setting, select ⌘ Command. Step 2: Select your third-party Windows keyboard via the Select keyboard drop down box. Step 1: Open System Preferences → Keyboard → Modifier Keys. Fortunately, there is a dead-simple fix for this issue. Such a little thing, the swapping of the Command and Option keys, can cause trouble for someone who’s been typing on a Mac for years. Modifier key arrangement differences between Mac and Windows: The problem stems from their arrangement on the keyboard. The problem isn’t the function of the keys, because as we discussed, from a pure functionality standpoint, the modifier keys (Control, Option, Command) all map 1:1. For example, the Control (⌃) key does the same thing on a Mac that it does on Windows, the Option (⌥) key on Mac does the same thing as the Alt key on Windows, and the Command (⌘) key on Mac does the same thing as the Windows key. All of the modifier keys on a Windows keyboard map 1:1 with the keys on a Mac from a functionality standpoint. Instead of the friendly ⌃, ⌥, and ⌘ keys, I was presented with Control, Windows, and Alt keys. Immediately, I could sense relief in my wrists, but because this was a keyboard designed for Windows and not for Mac, the switch presented a whole new problem. I just so happened to have an AmazonBasics wired keyboard available thanks to my recent Hackintosh build, so I decided to use it with my Mac. The shallow key travel of the MacBook’s keyboard is partly to blame. The reason behind such a change was that my MacBook Pro’s keyboard was causing wrist pain. This option is specially good because the command key can be used as AltGr, which helps you type special characters like áéíóúñ, which is not possible with the alternative fixes.Over the last few days I’ve been finding myself using a keyboard designed for Windows users on my Mac. 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. 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 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 To play around with the parameters you can change them live. (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. Duplicate of How to swap Command and Control keys with xkb step by step?
0 Comments
Leave a Reply. |