{"id":24,"date":"2006-12-04T08:48:20","date_gmt":"2006-12-04T07:48:20","guid":{"rendered":"http:\/\/www.martyndavis.com\/?p=24"},"modified":"2006-12-11T14:55:11","modified_gmt":"2006-12-11T13:55:11","slug":"remapping-a-macs-keys","status":"publish","type":"post","link":"https:\/\/www.martyndavis.com\/?p=24","title":{"rendered":"Remapping a Mac&#8217;s Keys"},"content":{"rendered":"<p><img decoding=\"async\" id=\"image25\" alt=\"Mac Keyboard\" src=\"http:\/\/martyndavis.com\/wp-content\/uploads\/2006\/12\/m9034lla_90x80.jpg\" \/><\/p>\n<p>As I may have mentioned in previous posts, I really like my new Macbook (initial hardware teething troubles aside), but one thing has been bugging me.  I&#8217;m a programmer by trade, and simply because I&#8217;m always on a keyboard, can touch type very well.  <em>On a PC keyboard.<\/em><\/p>\n<p><!--more--> The Apple keyboard layout has a few quirks.  Having the function key in the bottom left, where Ctrl should be is a tad annoying, but I am fairly used to it as I have used IBM ThinkPads quite extensively.<\/p>\n<p>What I <em>cannot<\/em> get used to, however, is the way that it&#8217;s just not a UK-PC style keyboard.  Shift-2 should give me quotation marks!  The hash key, which I happen to use a lot, for example &#8220;#!\/bin\/bash&#8221;, doesn&#8217;t even exist on the keyboard &#8211; one has to use Alt-3 to get it.  And backslash should be next to the Z key.<\/p>\n<p>Given the fact that I touch type and don&#8217;t look at the keyboard very often, I figured I could simply remap the offending keys to my preferred layout.  It took me a while to figure it out, but now it&#8217;s done.  <a target=\"_blank\" href=\"http:\/\/www.marengo-ltd.com\/UKPC.zip\">You can download my keymap here<\/a>.<\/p>\n<p>Once you&#8217;ve got it, put it in your ~\/Library\/Keyboard Layouts directory, log out and back in again, and it should be available to you in the &#8220;International&#8221; section of System Preferences, under the &#8220;Input menu&#8221; section.<\/p>\n<p>Experiment at your own risk. if you somehow muck up your keyboard (I can&#8217;t see how you could, but still&#8230;) then don&#8217;t blame me.<\/p>\n<p>Oddly when you&#8217;ve got multiple inputs defined, the hotkey to switch between is defined as Cmd-Space, which overrides the existing hotkey (in my case, set to Quicksilver).  Just turn off the hotkey for input selection and you&#8217;re good to go.<\/p>\n<p>Ah, I can now get back to typing easily again:<\/p>\n<pre>ls -l | less\r\nfoo@foo.com\r\n#!\/bin\/bash\r\n#This is a comment<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>As I may have mentioned in previous posts, I really like my new Macbook (initial hardware teething troubles aside), but one thing has been bugging me. I&#8217;m a programmer by trade, and simply because I&#8217;m always on a keyboard, can touch type very well. On a PC keyboard.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts\/24"}],"collection":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24"}],"version-history":[{"count":0,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}