I made a program to do this on Linux 2.6, see http://cslh.sourceforge.net. git repository is at
git://cslh.sourceforge.net/gitroot/cslh. It would be nice if some of people here tried it out, I'll be glad to fix bugs and
implement any feature requests (yet better let someone else do it). I'm kind of a C beginner so advice
on my coding style too is needed if you can bother.
What I'm most interested in is ideas how to make good context sensitive layouts, or layouts from others.
[EDIT] my english is so good
[EDIT] it's just getting better