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-13 07:28

[Debian] N810 Xmodmap Mappings - Azerty/Italian/English
 
Hey all,

my first post and I wanted it useful. One of the biggest problems I had with debian was the hardware keyboard for the N810.. none of the numbers or special characters would work for me..considering i spend a lot of time in the terminal this was unsat. I couldn't find anyone that had a complete xmodmap for all the keys on the keyboard.. if there is and I just failed to see it let me know.

I saved this file as .Xmodmap in my users home directory:

Updated with Multiple Keyboards.. Big Thanks to Debernardis and Murphy

For US/English Keyboard:
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 U00A5
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 EuroSign
keysym semicolon = semicolon colon U00A3
keysym minus = minus underscore underscore
keysym plus = plus plus equal
keysym comma = comma less Escape
keysym period = period greater bar
keysym KP_Enter = Return Return
keysym BackSpace = BackSpace BackSpace Tab
add control = Control_L Control_R
add shift = Shift_L Shift_R
add lock = Caps_Lock

PIPE = FN + .
Escape = FN + ,
TAB = FN + Backspace

Italian Keyboards:
Quote:

Originally Posted by debernardis (Post 204139)
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 asterisk
keysym h = h H backslash
keysym j = j J slash
keysym k = k K parenleft
keysym l = l L parenright
keysym apostrophe = apostrophe question igrave Igrave
keysym z = z Z EuroSign
keysym x = x X asciitilde
keysym c = c C ampersand
keysym v = v V equal
keysym b = b B less
keysym n = n N greater
keysym m = m M plus
keysym semicolon = eacute Eacute ograve Ograve
keysym minus = egrave Egrave agrave Agrave
keysym equal = minus underscore ugrave
keysym comma = comma semicolon Tab
keysym period = period colon bar

Tab = FN + ,
Pipe = FN + .

For French/Azerty Keyboards:
Quote:

Originally Posted by murphy (Post 210915)
!/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

Pipe = FN + '
Tab = FN + <


Then create/add the following to /home/user/.icewm/startup:
Code:

#!/bin/sh
/usr/bin/xmodmap /home/user/.Xmodmap

This will load the Xmodmap file when launching IceWM.

EDIT: To keep the original topic up to date.. if you experience weird behavior with your keyboard; reversed Function-Key operation or just not getting anything at all when using the function key (even after running the xmodmap command).. this code may help (run from OS2008, and if your debian is mount on /debian)..

Code:

sudo gainroot
mv /debian/usr/share/X11/xkb /debian/usr/share/X11/xkb.bak
cp -R /usr/share/X11/xkb /debian/usr/share/X11/


debernardis 2008-07-13 09:19

Re: My Debian Tricks - N810 xmodmap
 
I knew that sooner or later some nice fellow would have done the xmodmap file... thanks :-) Now I have only to change something for my localised keyboard.

fatalsaint 2008-07-13 16:20

Re: My Debian Tricks - N810 xmodmap
 
Np... I really prefer the icewm interface but without the keyboard support it was useless.

Anyone that wants to modify their icewm setup.. like putting the bar at the top and many other options.. the file is in /usr/share/icewm/preferences and there is also /usr/share/icewm/menu for modifying your menu system. You can either edit these directly as root for global changes or copy them to /home/user/.icewm for user specific changes.

If anyone has anything they want to know how to do in their icewm debian post here and i'll try and figure it out. So far I got xchat and is working fine.. nice thing is since both home directories are same the OS2008 xchat and debians will use the same config.

mplayer is giving me problems.. watching movies is proving to be problematic...

fatalsaint 2008-07-14 01:26

Re: My Debian Tricks - N810 xmodmap
 
Modified original post to use /home/user/.icewm/startup instead of /home/user/.profile because the profile was being used by OS2008 terminal as well giving errors. Startup seems more consistent with icewm as well.

fatalsaint 2008-07-14 21:30

Re: My Debian Tricks - N810 xmodmap
 
Modified the xmodmap file.. the Enter/Return key was not giving a normal Enter to VI.. causing it to freak out and not create newlines right.. fixed that.

Added the ability to use FN+BackSpace to get a tab effect... who doesn't use Tab when navigating in a terminal?

qole 2008-07-14 22:16

Re: My Debian Tricks - N810 xmodmap
 
Thanks so much! I have an N800, but it was stressing me out that people couldn't use their N810 keyboards properly under IceWM.

I'll put this into the next release of Easy Debian.

Quote:

Originally Posted by fatalsaint (Post 202497)
mplayer is giving me problems.. watching movies is proving to be problematic...

What does that mean? You mean Maemo mplayer or are you trying to get Debian mplayer to work? If the latter, why?

PS: As far as I know, they only got the USB2VGA thing to produce 2 fps from the tablet... :(

fatalsaint 2008-07-14 22:20

Re: My Debian Tricks - N810 xmodmap
 
Quote:

Originally Posted by qole (Post 202986)
PS: As far as I know, they only got the USB2VGA thing to produce 2 fps from the tablet... :(

I don't plan on duplicating my current screen.. i want chroot debian (like yours) and get completely rebuild an xorg.conf from scratch using something like:

https://help.ubuntu.com/community/USB2VGA

and hoping to produce a completely seperate full screen debian working station... we'll see how it goes when I have the money for all the parts.

But eventually my goal is to have a docking station be just 1 USB cord away :). It won't duplicate the current screen.. although I guess if you do the vnc hack thing it might... but It'll be interesting how/if it works at all.

qole 2008-07-14 22:23

Re: My Debian Tricks - N810 xmodmap
 
Quote:

Originally Posted by fatalsaint (Post 202987)
I don't plan on duplicating my current screen.. i want chroot debian (like yours) and get completely rebuild an xorg.conf from scratch using something like:

https://help.ubuntu.com/community/USB2VGA

and hoping to produce a completely separate full screen debian working station... we'll see how it goes when I have the money for all the parts.

But essentially my goal is to have a docking station be just 1 USB cord away :). It won't duplicate the current screen.. although I guess if you do the vnc hack thing it might... but It'll be interesting how/if it works at all.

I don't think that will work, but good luck to you... Here's what they've got so far.

I have managed to get X-Forwarding working well from Debian SSH, so I can run apps on my tablet but display them on another computer, including a Windows computer running Cygwin and an X server. That's pretty cool.

fatalsaint 2008-07-14 22:27

Re: My Debian Tricks - N810 xmodmap
 
Quote:

Originally Posted by qole (Post 202986)
What does that mean? You mean Maemo mplayer or are you trying to get Debian mplayer to work? If the latter, why?

Because I want everything to run in debian.. I hate switching when I am in IceWM. My ultimate goal is probably to boot to Debian instead of using Debian in a chroot.. although I haven't quite decided 100%.

Right now the chroot is wonderful because it makes Wireless/BT pairing easy; as well as BT transfer of files, etc.. Eventually I am going to offload these tasks onto Debian as well using the debian bluetooth stuff and find a decent WPA-GUI for wireless connections.

At the moment I can't see a single reason why I would want to keep Maemo.. it provides me easy access to the internet until I get the debian configured the way I want.. but other than that.. I just stay in my IceWM window.. I moved Xchat and Pidgin into Debian instead of running the Maemo copies.. so that they are right in front of me while I work instead of sitting back on the maemo desktop and interrupt me with the little blink.

I got mplayer to show the video - and using the -ao esd even got sound! - but it complains about slow running and is extremely chopping. Passing -vo sdl worked wonders for the interface as well.. but again; slow and choppy - I am not sure if this is due to debian's access to the devices.. or due to the fact that the memory is already being used by 2 os's running window managers and Xchat/Pidgin to boot.

I am not sure if this does anything.. but I have noticed you can pass the options -extension Composite to the Xephyr line - do you know if this will provide any usefulness to IceWM?

fatalsaint 2008-07-16 22:22

Re: My Debian Tricks - N810 xmodmap
 
Not sure what happened.. but something I installed last night (most likely a dependency of one of these window managers: openbox, XFCE4, Window Maker) screwed with the files in the /usr/share/X11/xkb directory.

No idea what changed.. but it was quite entertaining.. when executing my xmodmap .Xmodmap like normal .. it caused the keyboard to be completely backwards.. when pressing the buttons WITHOUT the function key, you got the function key's item, (IE: hit q, get a 1).. but when pressing the function key and the letter - you got the letter.. (FN+q = q)..

Totally reversed on me. I messed with my xmodmap and nothing worked.. so - IF this happens to you.. running the following from OS2008

Code:

sudo gainroot
mv /debian/usr/share/X11/xkb /debian/usr/share/X11/xkb.bak
cp -R /usr/share/X11/xkb /debian/usr/share/X11/

will get your keyboard working again with my file. I do not know exactly what it changed.. and if I get bored I'll try and find out the exact file - but for now; I have noticed no other problems in using OS2008's xkb directory in debian.. and the keyboard works again.

maillaxa 2008-07-17 19:01

Re: My Debian Tricks - N810 xmodmap
 
Works like a champ ! It's cool to get my qwerty back even with my azerty tablet ! Thank you!

debernardis 2008-07-17 19:02

Re: My Debian Tricks - N810 xmodmap
 
Here is the .xmodmap file for my Italian keyboard. Has Tab on Fn-comma and pipe on Fn-period. Several other keysyms should be added in order for this to be useful, because on the chroot setting the Chr key doesn't work and so you miss dollar, percent, ticks and backticks, etc. But, indeed, I am not using other wm's than matchbox, because it's quicker and allows moving big windows to press out-of-sight buttons.

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 asterisk
keysym h = h H backslash
keysym j = j J slash
keysym k = k K parenleft
keysym l = l L parenright
keysym apostrophe = apostrophe question igrave Igrave
keysym z = z Z EuroSign
keysym x = x X asciitilde
keysym c = c C ampersand
keysym v = v V equal
keysym b = b B less
keysym n = n N greater
keysym m = m M plus
keysym semicolon = eacute Eacute ograve Ograve
keysym minus = egrave Egrave agrave Agrave
keysym equal = minus underscore ugrave
keysym comma = comma semicolon Tab
keysym period = period colon bar


maillaxa 2008-07-17 19:45

Re: My Debian Tricks - N810 xmodmap
 
what is matchbox ?

Benson 2008-07-17 19:50

Re: My Debian Tricks - N810 xmodmap
 
A window manager, http://matchbox-project.org/, used in the tablets.

debernardis 2008-07-17 19:54

Re: My Debian Tricks - N810 xmodmap
 
http://en.wikipedia.org/wiki/Matchbox_%28window_manager%29

It's the plain vanilla window manager our NITs.

qole 2008-07-17 20:38

Re: My Debian Tricks - N810 xmodmap
 
Nothing "plain vanilla" about our NIT window manager :)

I find it interesting that nothing much has happened over at matchbox-project.org since March 2007...

debernardis, do you know of a hack for non-dialog windows that are too large, such as the "Restore Document" window in OOO?

Benson 2008-07-17 20:49

Re: My Debian Tricks - N810 xmodmap
 
I assume you've tried rotation and small-font-themes?

qole 2008-07-17 21:23

Re: My Debian Tricks - N810 xmodmap
 
Um, Benson, maemo theming has no effect on Debian OOO :) And if you've run Debian apps, you'll notice that the fonts are already teensy-tiny, since they're assuming a 96dpi screen (as opposed to 226dpi on the tablets).

But rotation... that's an idea... Haven't hit that window since I got rotation working...

Benson 2008-07-17 21:36

Re: My Debian Tricks - N810 xmodmap
 
Oh, that's right. (Duh!)

Well, you could set a smaller theme there, too. (Actually, one thing I had thought of doing was getting the Debian apps using the Maemo themes... then it occurred to me that that'd NOT help the window-size issues, and I figured I'd not bother. Why I couldn't remember that just now is beyond me...)

Xnest is the only thing that comes to mind; you could run xnest with scrollbars (does xephyr do scrollbars, since it's already working?) and run matchbox, hildon-desktop, etc. all inside on :1, and no window manager on display :0... that'd be somewhat less overhead than the whole two-wm routine, but it's plainly suboptimal. (And hard to set up...)

jhford 2008-07-17 22:34

Re: My Debian Tricks - N810 xmodmap
 
I followed your instructions in #1, but the function key on my slide-down keyboard isn't usable.
Thanks

fatalsaint 2008-07-17 22:55

Re: My Debian Tricks - N810 xmodmap
 
Quote:

Originally Posted by jhford (Post 204226)
I followed your instructions in #1, but the function key on my slide-down keyboard isn't usable.
Thanks

Try running the xmodmap manually..
ive noticed sometimes it doesnt load right ..

open a terminal in Icewm
Code:

cd
xmodmap .Xmodmap

im still working on a more consistant method.

qole 2008-07-17 23:25

Re: My Debian Tricks - N810 xmodmap
 
I can tell Benson still doesn't have his tablet set up right, yet. :D

Benson 2008-07-18 00:27

Re: My Debian Tricks - N810 xmodmap
 
Indeed. Too many distracting projects... But I was just going back to it, honest!

An enhancement I'm making (which I'll post once I've got it working; you may want to incorporate it, or not) allows easy swapping out of the relevant files in /etc for boot/chroot usage.

I'm actually gonna grab your .deb, rip its guts out and spill them all over my computer, and try to put together a reasonable hybrid. I'm liking the xephyrized method you've got going, at least as something to try. Besides, I don't feel like copy/pasting out of the wiki for all the scripts. So, tomorrow, maybe, I'll have some answers. ;)

debernardis 2008-07-18 04:53

Re: My Debian Tricks - N810 xmodmap
 
2 Attachment(s)
Quote:

Originally Posted by qole (Post 204186)
debernardis, do you know of a hack for non-dialog windows that are too large, such as the "Restore Document" window in OOO?

I have no generic solution involving the window manager, but as regards *that* particular dialog, I have it quite readable on my NIT, probably because I reduced the percent size of GUI elements of OOO to 80% - see attached pics.

If you can name me another window that's too big and can't be moved, and tell me how to show it, I'll experiment a little bit :)

qole 2008-07-18 16:24

Re: My Debian Tricks - N810 xmodmap
 
WOW Those are some TINY fonts! But at least you can see the whole window...

qole 2008-07-20 08:49

Re: My Debian Tricks - N810 xmodmap
 
Ok, I stumbled upon something interesting.

Someone with an N810 try this copy command with your Debian chroot mounted in /debian:

Code:

cp -r /usr/share/X11/xkb /debian/usr/share/X11
Then edit your /debian/usr/bin/xpice file. Add "+kb" (without quotes) to your Xephyr command line, before the & at the end.

Disable your xmodmap stuff.

Run the IceWM menu item in OS2008

See if this changes anything about how the N810 keyboard works in IceWM.

debernardis 2008-07-20 09:47

Re: My Debian Tricks - N810 xmodmap
 
Quote:

Originally Posted by qole (Post 205013)
See if this changes anything about how the N810 keyboard works in IceWM.

Not in my setup. Still no 2nd function chars.

But, indeed, not even xmodmap was working as described. No matter where I put the xmodmap call - in .icewm/profiles or .icewm/startup - it was not working. I had to call a rox terminal under icewm and issue the command there. Quite uncomfortable.

qole 2008-07-20 10:00

Re: My Debian Tricks - N810 xmodmap
 
Quote:

Originally Posted by debernardis (Post 205021)
Not in my setup. Still no 2nd function chars.

So no improvement from the basic setup using the +kb method? I'm trying to determine if this is something I should be adding to my next chroot image.

fatalsaint 2008-07-21 14:06

Re: My Debian Tricks - N810 xmodmap
 
Quote:

Originally Posted by qole (Post 205025)
So no improvement from the basic setup using the +kb method? I'm trying to determine if this is something I should be adding to my next chroot image.

May not be worth it unless someone (or me) figures out how to load that xmodmap file on startup.. it worked a couple times after I edited the .icewm/startup but doesn't work after a reboot.. think it kept it loaded in memory or something which caught me off.

I know the startup script is running because I also launch xchat and pidgin; both of which worked - but the xmodmap wasn't for some reason... so one of two things: a script that loads the file.. when you login you just click the script.. or some way to get xmodmap to start when the WM starts.. I'm still working on that.

debernardis 2008-07-21 15:44

Re: My Debian Tricks - N810 xmodmap
 
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.

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 17:06.

vBulletin® Version 3.8.8