Remap the Caps Lock key to Right Ctrl using the built-in MacOS hidutil rather than depending on Karabiner
This commit is contained in:
parent
dac8df42fe
commit
cf2cd53281
1 changed files with 23 additions and 0 deletions
23
Library/LaunchAgents/me.00dani.hidutil-map.plist
Normal file
23
Library/LaunchAgents/me.00dani.hidutil-map.plist
Normal 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>
|
Loading…
Reference in a new issue