Active Topics

 


Reply
Thread Tools
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#31
Originally Posted by debernardis View Post
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.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 106 | Thanked: 11 times | Joined on Jun 2007
#32
Here's my /home/user/.Xmodmap-debian file for my french N810 :
!/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)
__________________
Linux rocks !
And so gnuite,penguinbait,qwerty12,qole,fanoush !

Last edited by murphy; 2008-08-06 at 19:54.
 

The Following 2 Users Say Thank You to murphy For This Useful Post:
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#33
I am going to update the Original post with all three .. this is awesome.. thanks murphy!
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#34
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
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2008-10-01 at 03:33.
 

The Following User Says Thank You to qole For This Useful Post:
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#35
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.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#36
Originally Posted by fatalsaint View Post
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!
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following 4 Users Say Thank You to qole For This Useful Post:
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#37
Awesome tip!

I'll look into it if I ever end up actually booting my debian again =-(. Stupid compiles.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
jiiv's Avatar
Posts: 124 | Thanked: 47 times | Joined on Aug 2008 @ Northern DFW
#38
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

Last edited by jiiv; 2008-09-01 at 07:51.
 

The Following User Says Thank You to jiiv For This Useful Post:
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#39
Added keys to make the CONTROL key work in deblet in OP.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#40
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!
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Reply

Tags
debian, deblet


 
Forum Jump


All times are GMT. The time now is 08:46.