Need to change Capslock to Windows-style key behavior, please update Vimo Rebinder to 1.7.7, set the super key to F13, and exchange the physical key positions of Caps Lock and F13 in user mode using the following method:
macOS's built-in hidutil command-line tool can modify keyboard key mappings in user mode. It allows you to remap the keyboard using a JSON format description file, suitable for most simple key exchange scenarios, such as swapping Caps Lock and F13.
Specific steps: (1) First, confirm the key codes:
- Caps Lock's key code is typically 0x39
- F13's key code is typically 0x68
(2) Use the hidutil command to remap keys: You can exchange Caps Lock and F13 keys with the following command:
hidutil property --set '{"UserKeyMapping":[ {"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000068}, {"HIDKeyboardModifierMappingSrc":0x700000068,"HIDKeyboardModifierMappingDst":0x700000039}]}'
This operation maps Caps Lock (0x39) to F13 (0x68), while mapping F13 (0x68) to Caps Lock (0x39)
Important notes: This command will be ineffective after a restart. If you want it to be permanent, you can add the command to your login script, such as ~/.bash_profile or ~/.zshrc. If you need to restore the original settings, use the following command:
hidutil property --set '{"UserKeyMapping":[]}'