{"id":213,"date":"2009-12-17T15:28:02","date_gmt":"2009-12-17T13:28:02","guid":{"rendered":"http:\/\/blogs.igalia.com\/berto\/?p=213"},"modified":"2009-12-17T15:28:02","modified_gmt":"2009-12-17T13:28:02","slug":"remapping-the-n900-arrow-keys","status":"publish","type":"post","link":"https:\/\/blogs.igalia.com\/berto\/2009\/12\/17\/remapping-the-n900-arrow-keys\/","title":{"rendered":"Remapping the N900 arrow keys"},"content":{"rendered":"<p>Here&#8217;s a tip for those of you using an N900 with an English keyboard.<\/p>\n<p>For those who don&#8217;t know it, this is how arrow keys are arranged in (some) non-English layouts:<\/p>\n<table border=\"0\" width=\"100%\">\n<tr>\n<td><a href=\"http:\/\/www.flickr.com\/photos\/26328476@N02\/4117627018\/\"><img decoding=\"async\" src=\"http:\/\/farm3.static.flickr.com\/2537\/4117627018_d740a8dfb9_m.jpg\" alt=\"N900 keyboard\" \/><\/a><\/td>\n<\/tr>\n<\/table>\n<p>Compare to the English layout:<\/p>\n<table border=\"0\" width=\"100%\">\n<tr>\n<td><a href=\"http:\/\/www.flickr.com\/photos\/37237156@N04\/4119588374\/\"><img decoding=\"async\" src=\"http:\/\/farm3.static.flickr.com\/2643\/4119588374_3927c8576c_m.jpg\" alt=\"N900 keyboard\" \/><\/a><\/td>\n<\/tr>\n<\/table>\n<p>My N900 has an English keyboard, and I like it because I use the X terminal a lot so having separate keys for the arrows is good.<\/p>\n<p>However I miss the accents (in particular &#8216; and ~) as I usually write in Portuguese and Spanish, and using the additional on-screen keyboard is not that convenient for a Jabber conversation.<\/p>\n<p>Fortunately, arrow keys can be re-mapped to add extra symbols by editing this file:<\/p>\n<p><tt>\/usr\/share\/X11\/xkb\/symbols\/nokia_vndr\/rx-51<\/tt><\/p>\n<p>Just go to the end of the file and replace the &#8216;<tt>arrows_4btns<\/tt>&#8216; entry with this:<\/p>\n<p><tt><br \/>\nxkb_symbols \"arrows_4btns\" {<br \/>\n  key &lt;UP&gt;   { type[Group1] = \"PC_FN_LEVEL2\", symbols[Group1] = [ Up,    dead_circumflex ] };<br \/>\n  key &lt;LEFT&gt; { type[Group1] = \"PC_FN_LEVEL2\", symbols[Group1] = [ Left,  dead_acute      ] };<br \/>\n  key &lt;DOWN&gt; { type[Group1] = \"PC_FN_LEVEL2\", symbols[Group1] = [ Down,  dead_tilde      ] };<br \/>\n  key &lt;RGHT&gt; { type[Group1] = \"PC_FN_LEVEL2\", symbols[Group1] = [ Right, dead_grave      ] };<br \/>\n};<br \/>\n<\/tt><\/p>\n<p>With this, Fn+Up\/Down\/Left\/Right will produce a dead circumflex\/tilde\/acute accent\/grave accent.<\/p>\n<p>If you want these changes to take effect immediately just type &#8216;<tt>setxkbmap us<\/tt>&#8216;.<\/p>\n<p>Hope you find it useful.<\/p>\n<p><b>Update 19 Dec 2009<\/b>. Since some people have asked: of course even if you only write in English or another language that doesn&#8217;t need accents, you can still add useful symbols to the arrow keys such as &#8216;<tt>|<\/tt>&#8216;, &#8216;<tt>&lt;<\/tt>&#8216; or &#8216;<tt>&gt;<\/tt>&#8216;. You can use any of these <a href=\"http:\/\/cgit.freedesktop.org\/xkeyboard-config\/tree\/symbols\/\">keyboard layouts<\/a> as an example. See also <a href=\"http:\/\/talk.maemo.org\/showthread.php?t=35089\">this thread<\/a> and <a href=\"http:\/\/lists.maemo.org\/pipermail\/maemo-users\/2009-December\/014912.html\">this other one<\/a>.<\/p>\n<p><b>Update 10 Jan 2010<\/b>. The information on this post is now (in expanded form) in <a href=\"http:\/\/wiki.maemo.org\/Remapping_keyboard\">the Maemo wiki<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a tip for those of you using an N900 with an English keyboard. For those who don&#8217;t know it, this is how arrow keys are arranged in (some) non-English layouts: Compare to the English layout: My N900 has an English keyboard, and I like it because I use the X terminal a lot so [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,10,11,12],"tags":[],"class_list":["post-213","post","type-post","status-publish","format-standard","hentry","category-english","category-igalia","category-maemo","category-free-software"],"_links":{"self":[{"href":"https:\/\/blogs.igalia.com\/berto\/wp-json\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.igalia.com\/berto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.igalia.com\/berto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.igalia.com\/berto\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.igalia.com\/berto\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":0,"href":"https:\/\/blogs.igalia.com\/berto\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.igalia.com\/berto\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.igalia.com\/berto\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.igalia.com\/berto\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}