Skip to content

Instantly share code, notes, and snippets.

@brymck
Created August 6, 2012 15:41
Show Gist options
  • Save brymck/3275691 to your computer and use it in GitHub Desktop.
Save brymck/3275691 to your computer and use it in GitHub Desktop.
Assign input method to a keyboard shortcut in Mac
#!/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