After several fruitless attempts, still write in the Q&A.
Want to simplify your work with keyboard under Linux (in Windows this is solved with AutoHotKey):
— CapsLock + HJKL arrow (plus a couple of combinations);
naked CapsLock — toggle pickup;
— Shift +CapsLock — real caps.
First attempt: the layout for xkb (caps hung Level3Switch). Naked caps impossible. Moreover, nothing doesn't work in Java applications and some other programs (Monodevelop). In General, a failure.
Second attempt: the demon, robbing the caps and slushy XTestFakeKeyEvent, hold down the keyboard while sending events. Already better, but now is buggy in the Fox (by pressing CapsLock'and prior to its release, lost focus, the cursor can be seen from case to case, the selection is not visible at all). Besides, failed to get to work autorepeat (and for the shooter it is almost necessary).
ACTUALLY, THE QUESTION
Came to the conclusion that we need a daemon (perhaps even a kernel module, don't know) will take /dev/input/event0 and give the system something else. How to shraniti the device and read the events, like I found here
. Left to figure out how to programmatically create a device that will pickup the system as a keyboard
I would be grateful for any links/advice on how to implement this venture.
Never wrote a system of things, and to dig up on the Internet couldn't, sorry :)