Simple X keyboard shortcut program
What I want to do is very simple but I can't find anything that does it: I want a utility to listen to the keyboard and intercept certain keychords and substitute a string as if it had been typed - a typing shortcut. For example, type Ctrl-Alt-P and it's as if you had typed "www.linuxquestions.org".
I used to do this this with loadkeys, but unfortunately the new modular X doesn't use loadkeys any more - that's only good for the console now. X uses something older and cruftier called xkb, or some such utility which lacks the feature.
With loadkeys you could do this:
echo 'string Pause = "hello"' |loadkeys -
and every time you pressed the Pause key you got "hello".
There are heaps of programs out there that intercept keystrokes and _run commands_ but none has the ability to insert something into the input stream. As for my window manager - it's gnome (corporate standard, don't ask) and its shortcut facility sucks. I think KDE would support this but I can't use that.
|