Switching @ and ” on Hackintosh

I’ve had my hackbook for a weekend now, and I’m getting really used to it. I still can’t get over how fast it is to do anything, and how long the battery lasts.

There are a few things that have been annoying me though. It wouldn’t bother me as much on a proper mac, because they have them labelled as they are used, but on here, the switching of @ and ” (and ` and \ but I don’t really don’t use those) is quite annoying as they are labelled for windows. So I found a useful post online that showed me how to change it, as well as the Command and Control keys.

If anyone’s doing the same as me, I’m sure it’s been confusing, at least at times. So here’s a little hint about fixing it (from gyford.com and edited by me- highlighted text shows my additions):

Moving Command, Option and Control keys

If you’re using Mac OS X 10.0.1 – 10.3.8, then uControl lets you swap and change the Command, Option and Control keys around via a moderately friendly System Preferences pane.

uControl doesn’t work on Mac OS X 10.4+ (Tiger onwards), but Apple has built a similar feature into the System Preferences. Open the System Preferences application and click ‘Keyboard & Mouse’, (it was just ‘Keyboard’ for 10.6). Then click the ‘Modifier Keys…’ button in the bottom left. Re-map your keys and click OK. I change mine to look like this picture: (to make it match the windows keyboard, like Ctrl is Ctrl and Alt is Command, I’ve set it so that on the menu, Control = Command and Command = Control, as Mac uses Command how Windows uses Ctrl, for copying,pasting etc, so I’ve set it to look more like the Windows format as that is what I’m used to).

Picture of the Modifier Keys pane

In some versions of OS X, these changes apply to all keyboards — so if you have a laptop with a PC keyboard plugged in, you’ll have to re-map the modifier keys whenever you want to use your laptop’s keyboard. At some point, certainly in OS X 10.5.5 you can choose these changes to apply to only your external keyboard.

Moving punctuation keys

Another addition since Mac OS X 10.4 (Tiger) is the ‘Change Keyboard Type…’ button next to the ‘Modifier Keys…’ button in the ‘Keyboard & Mouse’ preference pane. I hoped this would take standard Windows-oriented UK PC keyboards into account, but I’ve had little luck with it. Whichever keyboard type it suggests for me, none fix the problem of wrongly-mapped characters.

Instead, we will use a custom Keyboard Layout to re-map the troublesome keys. While I haven’t had problems with this over the years, I can’t take responsibility for anything that goes wrong if you follow these instructions.

  1. Download this zip archive or this gzip archive, unzip it, and place the enclosed British-Windows-2.rsrc file in your ‘/Users/yourname/Library/Keyboard Layouts/’ folder (if you don’t have a ‘Keyboard Layouts’ folder there, just create one). You should make sure to unzip the file by double-clicking it in the Finder, rather than using the command line, as it appears this can corrupt this particular file.
  2. Next, open System Preferences and click ‘International’. Click ‘Input Menu’ and select the checkbox next to ‘British – Windows – 2’.
  3. Make sure the checkbox at the bottom of the window, next to ‘Show input menu in menu bar’, is selected and then quit System Preferences.
  4. Now you should be able to select the ‘British – Windows – 2’ keyboard layout from the little icon towards the right of the menu bar.

Hopefully your keys should now be re-mapped successfully: try typing! This layout swaps ” and @, and also the ` and \ keys (the last two are now opposite on my Hackintosh, but like I said, I don’t use them much so I don’t mind). You might need to log out and back in again (or restart your Mac).

If the \ and ` are now the wrong way round then try this alternative layout by Andy Pearce, available in zip, gzip or uncompressed formats, created with Ukelele. Follow the same procedure above, but use this ‘windows-uk.keylayout’ file instead of the ‘British – Windows – 2’ layout. I didn’t get this to work; it just stopped recognising the keyboard completely, but if you get it to, please comment and let me know how!

Again, if you have a laptop and want to use its own keyboard, you’ll have to use the Input Menu to manually change back to whichever Keyboard Layout you were using before (simply ‘British’ in my case). Also, note that whenever Mac OS X prompts you for your password to authorise something it flips back to your default Keyboard Layout — so if you use any of the re-mapped characters in your system password, be careful. Some applications, such as Virtual PC and Internet Explorer also seem to use the default Keyboard Layout — annoying, but not the end of the world.

For more information about how to create and edit a Keyboard Layout file, read the older instructions: version 1, version 2. Although these days you’re probably better off using the aforementioned Ukelele.

Kat again! So I hope this helped! Please, as I said, if you can get the ` and \ to work, please comment so I can get it to work please!

TAGS:  ,