Collection of useful macros for Keyboard Maestro.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Close all tabs except from active one.kmmacros
New Tweet from Notification Center.kmmacros
Resize iPad-Images.kmmacros
iTerm Text Editing.kmmacros


Collection of useful macros for Keyboard Maestro.


  1. Download the macros you want. You can use the button labelled with Download as ZIP on the right hand side. Search via F if you can't see it immediately.
  2. Open the macros to import them. They can be found in a folder called Window Manager.

The Macros in Detail

Close all tabs except from active one

Does exactly what you'd think it does in Google Chrome. Shortcut is W by default. Feel free to change it to your needs.


There are a lot of tools out there for managing your windows on OS X. But as a geek who likes to fiddle around I wanted to build my own thing with KM. So here's a list of shortcuts and how they resize the currently active window:

  • ^ : 50% left
  • ^ : 50% right
  • ^ : 100% width and height
  • ^ : 50% height, place at top
  • ^ -: 50% height, place at bottom
  • ^ 1: 33% left
  • ^ 2: 33% center
  • ^ 3: 33% right
  • ^ 6+1: 66% left
  • ^ 6+2: 66% right
  • ^ <: switch window to other monitor

As always you can modify the shortcuts to your needs.

iTerm Text Editing

(works in standard, too)

Gives you a little Cocoa-like text editing by mapping standard terminal shortcuts for text processing. I had a hard time remembering the standard shortcuts, so I made macros to use the ones I already know.

  • Delete whole line: Backspace
  • Delete word left to cursor: Backspace
  • Forward Delete: Delete
  • Place cursor at line's end:
  • Place cursor at line's start:
  • Place cursor at word's end:
  • Place cursor at word's start:

Bonus, iTerm only and not directly related to text editing, but handy if you're used to navigate through tabs in Chrome:

  • Select Next Tab:
  • Select Previous Tab:

New Tweet from Notification Center

Use ^ T in order to quickly set up a new tweet from the Notification Center. Major advantage: you get autocompletion for mentions and hashtags without using a third party client.

Notice: It assumes you already set up the shortcut ^ N to activate Notification Center. Look here for instructions on how to do that.
Furthermore you might need to adjust the "Move and Click at"-Action to your needs. Currently it assumes you only have buttons for Messages and Twitter in your Notification Center.

Resize iPad-Images

A possibility to quickly shrink an image to 50% of its original size. Just select an image in Finder and press ^ R. Since it should perform pretty well you won't get a notification or something like that when it's done. Just press the shortcut and move on with your work. The macro should be fast enough to cope with it.

It also works with multiple files.

And just for clarity: the macro's name has its origin in a time when I searched for a tool to halve the image size of Retina-Display-Screenshots.

If you got any questions or issues let me know: enricoschlag at gmail dot com