Skip to content

Instantly share code, notes, and snippets.

@puilp0502
Last active March 15, 2021 07:06
Show Gist options
  • Select an option

  • Save puilp0502/2ff1a66d8eb33800e164dafd8c96b8cf to your computer and use it in GitHub Desktop.

Select an option

Save puilp0502/2ff1a66d8eb33800e164dafd8c96b8cf to your computer and use it in GitHub Desktop.

Revisions

  1. puilp0502 revised this gist Mar 15, 2021. 1 changed file with 19 additions and 0 deletions.
    19 changes: 19 additions & 0 deletions kr.hakk.RAltF13.plist
    Original file line number Diff line number Diff line change
    @@ -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 kr.hakk.RAltF13.plist -->
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>kr.hakk.RAltF13</string>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/bin/hidutil</string>
    <string>property</string>
    <string>--set</string>
    <string>{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x7000000E6,"HIDKeyboardModifierMappingDst":0x700000068}]}</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>
  2. puilp0502 created this gist Mar 10, 2021.
    1 change: 1 addition & 0 deletions change-rightalt.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x7000000E6,"HIDKeyboardModifierMappingDst":0x700000068}]}'