Switch input sources with the right_command key
The problem
As someone who often switches back and forth between a windows pc and a macbook, one thing that irritates me is the different way of switching languages between the two operating systems. In fact, for Korean keyboards in windows, changing the input source is a simple press of the button to the right of the spacebar. Once this becomes muscle memory, the standard mac way of cmd+space/ctrl+space/(long press)caps-lock(for korean keyboards) becomes way too cumbersome. The equivalent input switch key for osx would be the right_command key, located to the right of the spacebar. I could easily map the right_command key to change input, but that would mean I would lose one completely usable command key. To be able to use the command key normally as well to periodically switch languages would be amazing.
The solution
To make this a reality in osx, we can map the right_command key found to the right of the spacebar to the f18 key. One caveat, since the command key can be used along with other keys, it would be wise to enable this only when the right command key is pressed alone.
Now, from the keyboard shortcut settings under system settings, switch the ‘Select next source in input menu’ shortcut to the right command key and the f18 key will magically appear. (More accruately, for me, command+f18 appeared, but this shouldn’t be a problem)
All I had to do was import a similar ‘switch key if pressed alone’ rule made by another user and change it like below. The right command key becomes f18 if pressed alone. Here’s the code (json):
| |
With the above complex rule, as it is called within karabiner, you are now able to change your input source with the right command key as well actually use the right command key when you need to.