The Following 2 Users Say Thank You to 白い熊 For This Useful Post: | ||
![]() |
2009-11-25
, 19:34
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#2
|
![]() |
2009-11-25
, 19:40
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#3
|
The Following User Says Thank You to 白い熊 For This Useful Post: | ||
![]() |
2009-11-25
, 20:34
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#4
|
The Following User Says Thank You to 白い熊 For This Useful Post: | ||
![]() |
2009-11-25
, 22:13
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#5
|
I've had partial success by doing this:
$ xkbcomp :0 default.xkb
$ vi default.xkb
comment out the two rules that cause syntax errors:
// interpret AccessX_Enable+AnyOfOrNone(all) {
// action= LockControls(controls=);
// };
// interpret MouseKeys_Accel_Enable+AnyOfOrNone(all) {
// action= LockControls(controls=);
// };
Now you can restore the settings back by running
$ xkbcmp default.xkb :0
if you screw up and end up with a nonfunctional keyboard.
Next
$ cp default.xkb mg.xkb
$ vi mg.xkb
key <RGHT> {
type= "PC_FN_LEVEL2",
symbols[Group1]= [ Right, Tab ]
};
$ xkbcomp mg.xkb :0
and now Fn+Right arrow is a Tab key.
Sadly I don't know enough about xkbcomp to see if it's possible to make it load incomplete maps on top of the current configuration, just to update a few symbols without replicating the full configuration.
The Following 4 Users Say Thank You to qole For This Useful Post: | ||
![]() |
2009-11-25
, 22:58
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#6
|
the problem that is exposed with xev (and my LXDE on Xephyr project) is that every window has to explicitly call XSetInputFocus() to grab the keyboard, otherwise the keystrokes don't go to that window.
![]() |
2009-11-25
, 23:01
|
Posts: 258 |
Thanked: 138 times |
Joined on Oct 2009
@ St. Louis, MO, USA
|
#7
|
![]() |
2009-11-25
, 23:43
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#8
|
![]() |
2009-11-25
, 23:45
|
Posts: 451 |
Thanked: 334 times |
Joined on Sep 2009
|
#9
|
![]() |
2009-11-26
, 00:17
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#10
|
The Following 2 Users Say Thank You to qole For This Useful Post: | ||
I've compiled xmodmap on board the N900. It's not functional. If I try a simple key remap, the key gets probably captured, since it doesn't type anymore, but the replacement key doesn't get echoed...
BTW, I was surprised to find out that xmodmap doesn't exist even in the SDK repository for the N900.
Anyone know what's up?