Thread: The Keyboard
View Single Post
Guest | Posts: n/a | Thanked: 0 times | Joined on
#10
Originally Posted by solarion View Post
My kingdom for a pipe! Seriously, that's the #1 annoyance on my n810. So much so that I went and bought a bluetooth keyboard.
There's xmodmap for remapping or adding keyboard shortcuts to the N810 hardware keyboard. It will probably be available for the N900 as well shortly. I use Fn Space for Tab and Fn - for | on my N810 FI/SE/NO (Scandinavian) keyboard (see below). Also Fn , for [ and Fn . for ].


Details:

These files are under /home/user. The new keyboard map is activated when X Terminal is first started after boot.


.profile

Code:
export ENV=~/.ashrc

.ashrc

Code:
... Unrelated code for PATH, aliases, etc. ...

if ! xmodmap -pke | grep -q "keycode \+21.*bar"; then
  xmodmap ~/.xmodmap
  echo "Additional keys mapped"
fi

... More code for ssh-agent, extra kernel modules...
The code above prevents running xmodmap more than once after boot.


.xmodmap

Code:
keycode  21 = minus underscore underscore underscore bar underscore 
keycode  65 = space space space space Tab space
keycode  59 = comma semicolon comma semicolon bracketleft semicolon
keycode  60 = period colon period colon bracketright colon
Attached Images
 

Last edited by jethro.itt; 2009-10-09 at 06:38.
 

The Following 5 Users Say Thank You to For This Useful Post: