Created
August 6, 2012 15:41
-
-
Save brymck/3275691 to your computer and use it in GitHub Desktop.
Assign input method to a keyboard shortcut in Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Run with | |
# curl -L https://raw.github.com/gist/3275691/changeInput.sh | sh | |
git clone git://gist.github.com/2146751.git changeInput | |
cd changeInput | |
gcc t.m -o changeInput -lobjc -framework foundation -framework carbon | |
cp changeInput ~/bin | |
# Then open Automator and create something like: | |
# Service | |
# Service receives no input in any application | |
# Add Run Shell Script and set its contents to: | |
# ~/bin/changeInput "U.S. Extended" | |
# Save as "Use Extended" | |
# | |
# Open System Preferences | |
# Keyboard > Services > General | |
# Click "Use Extended" and assign a keyboard shortcut |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment