Is there any way to assign the tilde character '~' as system-wide shortcut for Command-Tab to switch back and forth between two recent open apps?

Currently I assigned tilde to my iterm as system-wide hotkey however, I can't figure out how to do so in System Preferences.

  • What is "tilda"?
    – nohillside
    Dec 4, 2014 at 12:38
  • @patrix tilda is tilde or ~ Dec 4, 2014 at 12:46
  • what's your physical keyboard layout?
    – klanomath
    Dec 4, 2014 at 15:59

1 Answer 1


You can do this with Karabiner with a private.xml such as this:

<?xml version="1.0"?>
    <name>~ to ⌘⇥</name>
      KeyCode::BACKQUOTE, VK_SHIFT | ModifierFlag::NONE,
      KeyCode::TAB | ModifierFlag::COMMAND_L

This will effectively replace command with shift and tab with tilde, so that holding shift and pressing tilde twice will switch to the third app rather than back to the first.

  • Thanks @grgarside.. Karabiner is awesome. Actually I removed VK_SHIFT so now just by pressing one key I can switch between two apps. Tilde is really useless ;)
    – artronics
    Dec 4, 2014 at 18:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .