Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkung/5bd68952a19a1879b4e0309906980267 to your computer and use it in GitHub Desktop.
Save kkung/5bd68952a19a1879b4e0309906980267 to your computer and use it in GitHub Desktop.
This script change Hangul input shortcut to shift-space.
#!/bin/sh
# Select next source in Input menu
KEY=AppleSymbolicHotKeys.61.value.parameters.2
# Shift-space
VALUE=131072
plutil -replace "$KEY" -integer "$VALUE" -o /tmp/hangul_shiftspace.plist ~/Library/Preferences/com.apple.symbolichotkeys.plist
cp ~/Library/Preferences/com.apple.symbolichotkeys.plist{,.backup}
cp /tmp/hangul_shiftspace.plist ~/Library/Preferences/com.apple.symbolichotkeys.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment