How to Use the Keyboard on a Mac Like on Windows
This document aims to help users adapt their Mac keyboard habits to be more like Windows by using Karabiner-Elements.
Basic Settings
1. Install Karabiner-Elements
First, you need to download and install Karabiner-Elements from the official website: https://karabiner-elements.pqrs.org/.
2. Simple Modifications
With the “Simple Modifications” feature in Karabiner-Elements, you can easily map keys. For example, you can set the following mappings:
left_commandtoleft_optionleft_controltoleft_commandleft_optiontoleft_control
This helps to make the Mac keyboard behavior more consistent with Windows habits.
3. Swap Command and Control Keys
In the Simple Modifications of Karabiner-Elements, you can easily map Left Command to Left Control and Left Control to Left Command to match the key layout of Windows.
Advanced Custom Rules (Complex Modifications)
Beyond simple modifications, Karabiner-Elements also supports “Complex Modifications”. In the Karabiner-Elements application, navigate to the “Complex Modifications” tab and click the Add your own rule button to add custom rules.
Below are some common custom rule JSON codes that you can paste into the new rule editor.
1. Use the Left Shift Key to Switch Input Methods
This rule allows you to switch input methods with a short press of the left Shift key, while a long press retains its original function.
*Source: https://idawnlight.com/2022/use-left-shift-to-switch-input-sources-on-macos/
1 | { |
2. Make the Stop Key Actually Stop Music
This rule maps the “Stop” key on the keyboard (usually in the F-key row) to execute the stop command in the “Music” application.
1 | { |
3. Map the Calculator Key to Open the Calculator App
This rule maps the calculator shortcut key on the keyboard (if available) to open the built-in calculator application on macOS.
1 | { |