Remap the Caps Lock key to Right Ctrl using the built-in MacOS hidutil rather than depending on Karabiner

This commit is contained in:
Danielle McLean 2020-08-07 16:39:11 +10:00
parent dac8df42fe
commit cf2cd53281
Signed by: 00dani
GPG key ID: 9DDE1EDE01E3A605

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>me.00dani.hidutil-map</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/hidutil</string>
<string>property</string>
<string>--set</string>
<!-- remap caps lock to right ctrl, so that skhd picks it up -->
<string>{"UserKeyMapping":[
{
"HIDKeyboardModifierMappingSrc": 0x700000039,
"HIDKeyboardModifierMappingDst": 0x7000000E4
}
]}</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>