MacOS – manually edit shortcuts on os x 10.9 (Mavericks)

keyboardmacosterminal

I'm using TotalTerminal on 10.9 Mavericks and while it's not great, it's the best quake terminal I've found right now. I usually show/hide the visor using command-escape but unfortunately can't seem to pull this off as I'm being told there's an existing universal shortcut for this key combination.

I've gone through the keyboard preferences shortcuts and can't find anything that maps to command-escape. The only thing I can think of is that this used to be front-row (which is no longer installed by default on new macs).

Does anyone know how I can set command-escape manually in total terminal via config file? I'm happy doing that by modifying the apple keyboard shortcuts and erasing whatever is mapped their now or editing a totalterminal config.

Thanks in advance

Best Answer

  1. Run plutil -convert xml1 ~/Library/Preferences/com.apple.Terminal.plist.
  2. Quit Terminal.
  3. Edit the plist in a text editor:

    <key>ToggleVisor</key>
    <dict>
      <key>KeyCode</key>
      <integer>53</integer> <!-- escape (see Events.h) -->
      <key>Modifiers</key>
      <integer>9437184</integer> <!-- command -->
    </dict>
    
  4. Terminate the cfprefsd process from Activity Monitor.

  5. Open Terminal.

Preference files are cached in 10.9, so if you edit a preference file directly, just quitting and reopening the application does not apply the changes. You can also run defaults read com.apple.Terminal instead of terminating cfprefsd.