I recently migrated to OS X 10.10 from Ubuntu 14.04 (Linux). In Ubuntu, I could make any key of my keyboard do anything I liked. I used to have the F1, F2, and F3 keys set to function as the red, yellow, and green buttons at the top left of the screen (which are the same as in OS X). This was ridiculously useful, and I want to do this on my Mac, but I don't know how I can.

I've already used Karabiner to map the current functions of the F keys to their Fn + F* equivalent. So instead of lowering the brightness with F1, I can do so with Fn + F1.

I have read that you can add a shortcut by going to System Preferences > Keyboard > Input Sources, and then clicking on the + icon. But using Yosemite, my + icon is not there, so I cannot add the "close window", "minimise", and "maximise" shortcuts. Besides, though I can see in the shortcut list that some shortcuts use F keys, I'm not able to assign F keys to any shortcuts myself.

So I would like to:

  1. In particular, make shortcuts to close, maximise, and minimise and window. (In general, create customised shortcuts to do anything a terminal can do.)
  2. Assign this custom shortcut to F keys, overriding F keys' default behaviour to adjust screen brightness, volume, etc.

2 Answers 2


First of all, You don't need Karabinier to change F* keys behaviour. It can be done in Preferences -> Keyboard -> Use all F1, F2 etc. as standard function keys.

Then to assign keyboard shortcut to Terminal You have to switch to Shortcuts tab, select Application Shortcuts then click + sign. There You can choose application in which this shortcut will be working. There's also text input to enter Menu Item name (for example: Close, Minimize etc. check how it's named in Your Terminal app).

enter image description here

NOTE: There's no Maximize Menu item, I can find only Close and Minimize. If You want to install 3rd party app for this, I'd recommend Better Touch Tool where You can set a lot more actions to keyboard shortcuts and mouse/trackpad gestures. Here's an example for BTT:

enter image description here

Picture 1 taken from osxdaily.com

  • Excellent, I used Better Touch Tool for all of them.
    – Pertinax
    Commented Jan 30, 2015 at 12:22

I have been using Apple Scripts. Would have trouble detailing a lot of the things, but if you are coming from Ubuntu, this should be easy for you to use and no need for a 3rd party app. Here is an article that covers some basics for Yosemite. http://www.automatedworkflows.com/tips/

There are a ton of quick courses also. I learned the basics I needed for what customizing I wanted to do in a couple of days and I am definitely not a coder.

You must log in to answer this question.

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