LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Simple X keyboard shortcut program (https://www.linuxquestions.org/questions/linux-software-2/simple-x-keyboard-shortcut-program-453374/)

bhepple 06-10-2006 03:12 AM

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.

bhepple 08-01-2006 07:10 PM

ping - anyone? no-one?
 
ping - anyone? no-one?

ciotog 08-01-2006 10:13 PM

Have you checked out kbde?


All times are GMT -5. The time now is 05:48 AM.