56

I would like to know if there is any application that can enable you use use Fn keys differently based on the current application.

For example in terminal or you favourite IDE you want to use them as standard function keys but for other applications you want to keep the default Apple keys.

daviesgeek
  • 38,901
  • 52
  • 159
  • 203
sorin
  • 29,875
  • 2
    The new MacBook with TouchBar does exactly what you asked for (six years ago). – Glorfindel Mar 15 '17 at 13:41
  • 1
    Unfortunately, the preference for the TouchBar function does not carry over to the external keyboard. So I still use Fluor on my TouchBar MacBook. (It's a great app too!) – noio Jul 25 '18 at 09:21

6 Answers6

45

Fluor is a relative newcomer to this space that does exactly what you want:

Fluor is a tool that allows you to automatically change the behaviour of the keyboard's fn keys depending on the active application.

It is open source, works on macOs Sierra and is actively developed (as of March 2017).

robd
  • 1,070
10

FunctionFlip might be what you're looking for.

FunctionFlip's purpose is simply to disable the special features — rewind, play, mute, etc. — on the function keys. For example, if you "flip" F7, F8, and F9, those keys — only those keys — will revert back to normal F keys. Press the fn key with the special key to get the special function back. That is, the "special" and "normal" functions are flipped.

To assign a custom shortcuts to your reclaimed keys, use a program like Quicksilver or Keyboard Maestro.

ron
  • 211
10

Palua will do exactlly what you need.

Introducing Palua, the easy way to quickly switch the mode of your Function Keys on any Mac keyboard!

You need to run a game, or start a graphic application, or work on a project that need F1-F12 as function keys, just hit option+command+TAB and the switch will happen.

Smart Mode: Key mode changes with the application that has the focus.

  • The link to Palua doesn't work, go here https://itunes.apple.com/us/app/palua/id431494195?mt=12 – fredw Jul 11 '15 at 06:49
  • 1
    Unfortunately Palua doesn't work with el capitan. I ended up setting the default to function keys (with keyboard pref pane) as I generally use those and using Keyboard Maestro to remap some of them back to the special apple keys. – jonaustin Nov 26 '15 at 18:19
  • 1
    As of today Palua has disappeared from the App Store and internet in general. – krs013 Mar 10 '16 at 04:46
  • I am not certain, but I think Palua used to work on El Capitan. I tried running it from bash, /Applications/Palua.app/Contents/MacOS/Palua, but got this error. "2016-03-19 23:07:40.302 Palua[21714:183915] Palua must exit, the Mac Apple Store Receipt is invalid." – sigjuice Mar 20 '16 at 06:11
  • @ksr013 I was very disappointed not being able to find Palua any more. I started to love this small app. Any idea where it could've gone? – preeze Jun 03 '16 at 10:09
3

There is an app - FNable - that can help you (works with El Capitan as well).

It can switch Fn keys based on app or using a shortcut.

It is no longer available on App Store, so here is their website: https://fnable.com/

0

I don't know what keys you need, but for me the easiest solution was to use all of them as standard function keys amnd using bowtie with global shortcuts to keep F7-F12 as media keys, while having F1-F6 as standard function keys.

voidStern
  • 889
0

I've been using Palua for about a decade. It left the app store about the time Apple was cracking down on some apps that they felt violated allowed scope of action. Fortunately, I've been able to copy it from one machine to the next. As of Feb 2023, It also works on my 2022 MBP running Monterrey 14.3. I'm glad to hear there may be other options, but this has really been bulletproof across the years, OS, and machines.

The one glitch happened last night: I had an error on 2013 MBA 10.14 saying it was corrupted and asking me to reinstall. I copied from my desktop and it's working again. I did have to put in my Apple ID and password, but it authenticated even though it's no longer downloadable from that source.

KJG
  • 34