Skip to content

Instantly share code, notes, and snippets.

@msuksong
Last active July 23, 2023 22:38
Show Gist options
  • Select an option

  • Save msuksong/ccf75af037118db0a0fa3e8ec136dccd to your computer and use it in GitHub Desktop.

Select an option

Save msuksong/ccf75af037118db0a0fa3e8ec136dccd to your computer and use it in GitHub Desktop.

Revisions

  1. msuksong renamed this gist Jul 26, 2022. 1 changed file with 2 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,6 @@ KEY=AppleSymbolicHotKeys.61.value.parameters.2
    # Shift-space
    VALUE=131072

    plutil -replace "$KEY" -integer "$VALUE" -o /tmp/hangle_shiftspace.plist ~/Library/Preferences/com.apple.symbolichotkeys.plist
    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/hangle_shiftspace.plist ~/Library/Preferences/com.apple.symbolichotkeys.plist
    cp /tmp/hangul_shiftspace.plist ~/Library/Preferences/com.apple.symbolichotkeys.plist
  2. msuksong created this gist Jul 26, 2022.
    9 changes: 9 additions & 0 deletions mac_hangle_input_shortcut_to_shiftspace.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/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/hangle_shiftspace.plist ~/Library/Preferences/com.apple.symbolichotkeys.plist
    cp ~/Library/Preferences/com.apple.symbolichotkeys.plist{,.backup}
    cp /tmp/hangle_shiftspace.plist ~/Library/Preferences/com.apple.symbolichotkeys.plist