feat: CapsLock <-> Esc swap for macOS
This commit is contained in:
parent
8c259f5292
commit
f6b8086c55
1 changed files with 19 additions and 0 deletions
19
.include/io.github.null2264.CapslockEscSwap.plist
Normal file
19
.include/io.github.null2264.CapslockEscSwap.plist
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<?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">
|
||||||
|
<!-- Place in ~/Library/LaunchAgents/ -->
|
||||||
|
<!-- launchctl load io.github.null2264.CapslockEscSwap.plist -->
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>Label</key>
|
||||||
|
<string>io.github.null2264.CapslockEscSwap</string>
|
||||||
|
<key>ProgramArguments</key>
|
||||||
|
<array>
|
||||||
|
<string>/usr/bin/hidutil</string>
|
||||||
|
<string>property</string>
|
||||||
|
<string>--set</string>
|
||||||
|
<string>{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029},{"HIDKeyboardModifierMappingSrc":0x700000029,"HIDKeyboardModifierMappingDst":0x700000039}]}</string>
|
||||||
|
</array>
|
||||||
|
<key>RunAtLoad</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
Loading…
Add table
Add a link
Reference in a new issue