Author Topic: Key mapping in OSX?  (Read 9029 times)

0 Members and 1 Guest are viewing this topic.

Offline 125ml

  • Thread Starter
  • Posts: 19
Key mapping in OSX?
« on: Mon, 04 April 2011, 07:11:54 »
Ok, having great fun with my new IBM Model M (new to me at least).
Now using it as my main keyboard for my work machine (Windows 7) and my home machine, a macbook pro.
I've been able to remap the keys I need in the registry on my work machine (they don't allow any software that they haven't approved to be installed)
but the Mac is posing more of a conundrum.

The lack of the Mac Command key is proving to be a bit of an issue as I have lots of keyboard shortcuts that use it.
I'd like to remap the Command key to my left control key, but only for this board, not in the global settings (that will really screw me up if I have to use the keyboard on the macbook).

Any suggestions?
Is there a 3rd party app that I can use or even some terminal wizardry....

Thanks in advance.
(ps. maybe I'm not using the right keywords, but I couldn't find what I was looking for with a search of the forum).

Offline phobus

  • Posts: 6
Key mapping in OSX?
« Reply #1 on: Mon, 04 April 2011, 07:48:31 »
System Preferences -> Keyboard -> Modifier keys.

Lets you re-map modifier keys (caps, ctrl, alt, and option if you were on a mac board) at will, with different settings for each keyboard. The catch here is that you can't remap only the left ctrl key, as you'd like. It'll remap both instances of that key. Your only real option with the M without some sort of third-party app is to remap caps lock.

Offline theferenc

  • Posts: 1327
Key mapping in OSX?
« Reply #2 on: Mon, 04 April 2011, 08:04:11 »
There is a piece of software that will let you do what you want. I found it here a while back for a friend (in a similar situation), but will have to track it down again.

It purports to be able to have different mappings for an external keyboard from the internal one. Not sure how useful it is in practice, but it gets some love from folks.

Also, for what it's worth, she remapped:
caps -> control
both control -> alt
both alt -> command

which was useful, as it allowed her muscle memory for shortcuts to come in to play, since command is traditionally adjacent to the space bar.

Edit: thank god for IM logs. Here's the link: http://pqrs.org/macosx/keyremap4macbook/
« Last Edit: Mon, 04 April 2011, 08:06:18 by theferenc »
HHKB Pro 2 -- Custom UNIX layout Unicomp Customizer 101 -- IBM Model M 1391401 (modded to UNIX layout) -- IBM 1397000 (also UNIX layout) -- SSK in UNIX layout -- Model F 122 key in UNIX layout (Soarer USB "native")
 
CST L-TracX trackball -- Kensington Expert Mouse trackball

Offline nathanscribe

  • Posts: 171
Key mapping in OSX?
« Reply #3 on: Mon, 04 April 2011, 08:34:57 »
There's also Ukelele and Spark; Ukelele is something I haven't put much time into but Spark took about half a second to get working.  Whether you can remap keys by location or just by function I don't know.  They're both free anyway.

As for selecting, if you use more than one keyboard layout, you can switch between them with Command-space.
« Last Edit: Mon, 04 April 2011, 08:37:21 by nathanscribe »
Conquering the world with BASIC since 1982

Offline 125ml

  • Thread Starter
  • Posts: 19
Key mapping in OSX?
« Reply #4 on: Mon, 04 April 2011, 10:26:17 »
Thanks everyone. I'll give them all a try and post my findings on which one fits the bill best.

Offline theferenc

  • Posts: 1327
Key mapping in OSX?
« Reply #5 on: Mon, 04 April 2011, 12:14:29 »
So, I'm not sure if this matters to the OP or not, but spark is an input manager. Many security policies (including the default one in 10.6, I believe) disables input managers for security reasons.

Ukelele looks more like a tool to use the built in keymapping the system supports. And given that it acts as another international layout, that looks pretty awesome. Great if you only use a single language. Unfortunately, I have a few languages on mine, so switching between them might well be a hassle.

Let us know how it works for you. I'm curious to know if the tool I linked works automagically or not (don't have a mac anymore to test it).
HHKB Pro 2 -- Custom UNIX layout Unicomp Customizer 101 -- IBM Model M 1391401 (modded to UNIX layout) -- IBM 1397000 (also UNIX layout) -- SSK in UNIX layout -- Model F 122 key in UNIX layout (Soarer USB "native")
 
CST L-TracX trackball -- Kensington Expert Mouse trackball

Offline mattdurham

  • Posts: 14
Key mapping in OSX?
« Reply #6 on: Mon, 04 April 2011, 13:13:20 »
http://pqrs.org/macosx/keyremap4macbook/ <- This is an awesome utility. I love it, since I can have CapsLock be command, except in terminal where I want it to be ctrl for emacs. I wrote a bit about it here
http://mattdurham.tumblr.com/post/2678237461/keyremap4macbook

Offline theferenc

  • Posts: 1327
Key mapping in OSX?
« Reply #7 on: Mon, 04 April 2011, 14:22:59 »
So does it work as it seems to, in that you can have different remaps for internal and external keyboards, as well as for different applications?
HHKB Pro 2 -- Custom UNIX layout Unicomp Customizer 101 -- IBM Model M 1391401 (modded to UNIX layout) -- IBM 1397000 (also UNIX layout) -- SSK in UNIX layout -- Model F 122 key in UNIX layout (Soarer USB "native")
 
CST L-TracX trackball -- Kensington Expert Mouse trackball

Offline Brummell

  • Posts: 104
Key mapping in OSX?
« Reply #8 on: Mon, 04 April 2011, 15:14:40 »
Quote from: theferenc;324439
So does it work as it seems to, in that you can have different remaps for internal and external keyboards, as well as for different applications?


I'd like to know that too, that would be a perfect solution for a Macbook Pro I used docked most of the time.
Unicomp Space Saver | Filco Majestouch Blue | IBM Model M | Filco Majestouch Brown | Realforce 86UB | Leopold Blue | HHKB Pro 2

Offline 125ml

  • Thread Starter
  • Posts: 19
Key mapping in OSX?
« Reply #9 on: Mon, 04 April 2011, 15:51:50 »
Well I've come up with a solution that works for me.
The secret is another application called PCKeyboardHack from here...

http://pqrs.org/macosx/keyremap4macbook/extra.html

This allows you to remap the Ctrl-R key to the command key. Simple as a tick box.
As the keyboard on my Macbook Pro doesn't have a Ctrl-R key (only one on the left) I can safely remap it without the need for multiple keyboard profiles.
I found this from the link that theferenc gave out. Seems to be an essential add on to get the magic from the main application.
It's also allowed me to remap my caps lock to a keyboard shortcut. In my case Option-Space, which fires up Alfred (similar to Quicksilver or Launchbar).
Now thats really good as I've always thought caps lock was a waste of a perfectly good key.

I couldn't get Spark to work due to the security policy on OSX.
Ukelele does look to give the complete control of the keyboard but I'd already got to a solution that works for me before starting to play.
Over the next couple of days I'll have a play and see if it can get it up and running.

Offline nathanscribe

  • Posts: 171
Key mapping in OSX?
« Reply #10 on: Mon, 04 April 2011, 16:52:23 »
Hmm, Spark works for me on 10.6.7.  It's probably a bit out of date now anyway and is very basic - I just used it to add volume controls to a tenkeyless.  I'll have to try that other one in the link above some time.
Conquering the world with BASIC since 1982

Offline mattdurham

  • Posts: 14
Key mapping in OSX?
« Reply #11 on: Mon, 04 April 2011, 17:13:52 »
Keyremap is so far the only solution that can do exactly what I want, its a bit obtuse in places and I had to compile my own version to work. If all you want to do is simply remap the caps lock key for different keyboards the build in options will work.