maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [Debian] My Debian Tricks - N810 xmodmap (https://talk.maemo.org/showthread.php?t=21848)

fatalsaint 2008-07-21 15:56

Re: My Debian Tricks - N810 xmodmap
 
Quote:

Originally Posted by debernardis (Post 205471)
I succeeded with icewm :) and now it starts with xmodmapped keyboard.
What's needed:
start icewm with "icewm-session" instead that "icewm".
don't forget to chmod 755 the .icewm/startup script and start it with #!/bin/sh.
Let me know if it works for you.

Could have swore I was doing all of this.. but after double checking my startup was missing the #!/bin/sh..

I just rebooted, launched a term and keyboard was mapped automagically.

Thanks Debernardis.

murphy 2008-08-06 19:49

Re: My Debian Tricks - N810 xmodmap
 
Here's my /home/user/.Xmodmap-debian file for my french N810 :
Quote:

!/home/user/.Xmodmap
!keymaps for french N810 by Murphy
keycode 216 = Mode_switch
keysym q = a A 1
keysym w = z Z 2
keysym e = e E 3
keysym r = r R 4
keysym t = t T 5
keysym y = y Y 6
keysym u = u U 7
keysym i = i I 8
keysym o = o O 9
keysym p = p P 0
keysym a = q Q at
keysym s = s S percent
keysym d = d D ecircumflex
keysym f = f F eacute
keysym g = g G egrave
keysym h = h H oe
keysym j = j J parenleft
keysym k = k K parenright
keysym l = l L agrave
keysym apostrophe = m M ugrave
keysym z = w W EuroSign
keysym x = x X numbersign
keysym c = c C ccedilla
keysym v = v V plus
keysym b = b B equal
keysym n = n N quotedbl
keysym m = comma question backslash
keysym semicolon = semicolon period minus
keysym minus = colon slash underscore
keysym plus = apostrophe bar mu
keysym comma = less greater Tab
keysym period = exclam section asterisk
keysym KP_Enter = Return Return
keysym BackSpace = BackSpace BackSpace
I've added bar ( | ) to Fn+' and Tab to Fn+<

A good help for finding correspondances :
http://wiki.linuxquestions.org/wiki/...sed_by_Xmodmap

Be aware that when a wrong keysym is written, xmodmap does not charge the file, you have to launch it manually have the error message (with few special character):
cd home
cd user
xmodmap .Xmodmap-debian
(and see the error message)

fatalsaint 2008-08-06 20:16

Re: My Debian Tricks - N810 xmodmap
 
I am going to update the Original post with all three .. this is awesome.. thanks murphy!

qole 2008-08-13 06:39

Re: My Debian Tricks - N810 xmodmap
 
I'll put this here, as it is the most likely place for it to be.

If you want application-by-application control over your keycodes (for instance, mapping the + and - hardware keys in an app to do zoom-in and zoom-out for that app), just preface the app with
Code:

xmodmap -e "keysym <original keysym> = <your new keysym>"
After you are done, clean up the key to work right again:
Code:

xmodmap -e "keycode <original keycode> = <original keysym>"
And here are the keysym and keycode entries to use for <original keysym> and <original keycode>, at least on the N800:

- HW key: keysym: F8 keycode: 74
FullScreen HW key : keysym: F6 keycode: 72
+ HW key: keysym: F7 keycode: 73
Menu HW key: keysym: F4 keycode: 70
Home (Swap) HW key: keysym: F5 keycode: 71

fatalsaint 2008-08-13 13:04

Re: My Debian Tricks - N810 xmodmap
 
One nifty trick that I've added to my xmodmap is changing the full screen F6 to F11... F11 is what every browser I've tried so far (konqueror, galeon, epiphany, iceweasel, kazahakaske (or whatever)) uses for a full screen key. F6 does pretty much nothing on the debian side. I didn't add it to the original because I dunno how important it is to anyone and only works for browsers I think...but as an example of what qole is saying:
Code:

xmodmap -e "keysym F6 = F11"
Thanks for the list qole.. I'll see what else I can change using those keys.

qole 2008-08-13 16:50

Re: My Debian Tricks - N810 xmodmap
 
Quote:

Originally Posted by fatalsaint (Post 213254)
One nifty trick that I've added to my xmodmap is changing the full screen F6 to F11... F11 is what every browser I've tried so far (konqueror, galeon, epiphany, iceweasel, kazahakaske (or whatever)) uses for a full screen key. F6 does pretty much nothing on the debian side. I didn't add it to the original because I dunno how important it is to anyone and only works for browsers I think...but as an example of what qole is saying:
Code:

xmodmap -e "keysym F6 = F11"
Thanks for the list qole.. I'll see what else I can change using those keys.

Even better for fullscreen, use xbindkeys (as suggested by psykosis for right-click).

put this in your /home/user/.xbindkeysrc file:
Code:

"wmctrl -r :ACTIVE: -b toggle,fullscreen"
  F6

When you run xbindkeys (as root) you will be able to fullscreen any application with the fullscreen key!

fatalsaint 2008-08-13 17:32

Re: My Debian Tricks - N810 xmodmap
 
Awesome tip!

I'll look into it if I ever end up actually booting my debian again =-(. Stupid compiles.

jiiv 2008-09-01 07:47

Re: My Debian Tricks - N810 xmodmap
 
Nothing terribly new here, but I figured I'd add mine in since I changed a few things (I needed curly braces so I replaced the Euro and Pound symbols, also added grave in place of Yen). I also changed _ and = to shift modifiers instead of Fn and changed their Fn definitions to [ and ]. I believe those are the only changes from the file in the original post. My .xbindkeysrc eats up F6-F8, but allows for left, middle, and right clicking. I initially tried to use the Release + <keysym> trick, but it wasn't working reliably for me.
My ~/.Xmodmap:
Code:

keycode 216 = Mode_switch
keysym q = q Q 1
keysym w = w W 2
keysym e = e E 3
keysym r = r R 4
keysym t = t T 5
keysym y = y Y 6
keysym u = u U 7
keysym i = i I 8
keysym o = o O 9
keysym p = p P 0
keysym a = a A exclam
keysym s = s S quotedbl
keysym d = d D at
keysym f = f F numbersign
keysym g = g G backslash
keysym h = h H slash
keysym j = j J parenleft
keysym k = k K parenright
keysym l = l L asterisk
keysym apostrophe = apostrophe apostrophe question
keysym z = z Z grave
keysym x = x X asciicircum
keysym c = c C asciitilde
keysym v = v V percent
keysym b = b B ampersand
keysym n = n N dollar
keysym m = m M braceleft
keysym semicolon = semicolon colon braceright
keysym minus = minus underscore bracketleft
keysym plus = plus equal bracketright
keysym comma = comma less Escape
keysym period = period greater bar
keysym BackSpace = BackSpace BackSpace Tab
pointer = 1 2 3

My ~/.xbindkeysrc:
Code:

"r-mouse"
        F7
"l-mouse"
        F6
"m-mouse"
        F8

My ~/.icewm/startup:
Code:

#!/bin/sh
/usr/bin/xmodmap ~/.Xmodmap
/usr/bin/xbindkeys -f ~/.xbindkeysrc


fatalsaint 2008-09-14 18:47

Re: My Debian Tricks - N810 xmodmap
 
Added keys to make the CONTROL key work in deblet in OP.

qole 2008-09-15 00:20

Re: My Debian Tricks - N810 xmodmap
 
Can anyone tell me a way to check for tablet model number (ie N800 or N810) in a shell script, for example, a postinst script? I want to put the plain keymap file (see my "virtual keyboard woes" thread) in place for N800 users, and the keymap file + fatalsaint's mappings for N810 users.

It didn't matter before, because fatalsaint's mappings would just cause an error for N800 users, and xmodmap wouldn't load. But now, everyone needs xmodmap so that Debian virtual keyboards will function correctly, and so simply letting xmodmap crash on the N800 isn't an option. And installing the N810 xmodmap on the N800 does very wacky things to the maemo virtual keyboard.

The good news is that I'm getting really close to having Easy-Debian-Final ready. It will have sound, adobe Flash, "real" Sun Java (openjdk-6-jre), Gimp, LXDE, etc. It really feels like a finished, functional system.

Thanks in advance!


All times are GMT. The time now is 11:30.

vBulletin® Version 3.8.8