TouchCursor under Linux ; I can't believe there is no way to do that
I'm trying to do something like TouchCursor does (cf. touchcursor.com, there is a video). It uses the spacebar as a meta-key to give access to the navigation keys (and more) from the main keyboard, like Space+L for Right-key (see the video).
Atm, it almost works. E.g. I can Shift+Ctrl+Space+L to select the word to the right of the cursor.
But my spacebar no longer works as a spacebar. I'm trying to find a way to make it works like with TouchCursor : when I press than release the spacebar, and only if no other keys have pressed, it should spawn a space character.
I tried with Xbindkeys :
but it prevents the new arrow keys from working. And, even, It wouldn't give us the result we expect (aka. print a space character when only the space bar is pressed and then released, without any other key pressed in the mean time)
"/usr/bin/xvkbd -xsendevent -text '\[space]'"
Anyone has an idea ? It seams quite tricky.
Btw, here is the ~/.Xmodmap code for the navigation pad feature (keycode 65 is my spacebar ; you can use an other key to test safely) :
Maybe should I try Xkbd ? Is it more powerful ?
keycode 65 = Mode_switch Mode_switch space space nobreakspace U202F
add mod3 = Mode_switch
keysym i = i I Up NoSymbol icircumflex Icircumflex
keysym k = k K Down NoSymbol idiaeresis Idiaeresis
keysym j = j J Left NoSymbol udiaeresis Udiaeresis
keysym l = l L Right NoSymbol U0140 U013F
keysym h = h H Prior NoSymbol eth ETH
keysym n = n N Next NoSymbol notsign rightarrow
keysym u = u U Home NoSymbol ucircumflex Ucircumflex
keysym o = o O End NoSymbol oe OE
keysym comma = comma question Delete NoSymbol questiondown U2026
keysym p = p P BackSpace NoSymbol ocircumflex Ocircumflex
keysym y = y Y Insert NoSymbol ydiaeresis Ydiaeresis
It's easier than we think.
Actually I'm feeling a bit of a fool. This entire thing is simpler than we think. With the Linux capabilities one should be able to do this quite easily. In Fedora 12 do Start > System Settings > General > Regional & Language > Keyboard Layout > Advanced to get to an Xkb Options dialog. Scroll down and you'll get a Compose key position option. You can run FC 12 live from a pen drive.
I used this an my old Amiga A500 although I did not know then it was a compose key. Did carets, umlauts et al diacritics just like that. The mere fact that you get this says you should be able to do the other hot keys things as well. There are whole rafts of other choices there as well.
It works on the level of Ctrl-x,c,v. In Amigan the keyboard you see now is a vanilla keyboard. At the clipboard level it was known as the raw keyboard.
Haven't had time to study this further.