Re: Registering/capturing shortcut keys in Linux?
- Posted by irv Nov 30, 2017
- 1191 views
Perhaps Autokey will give you an idea. It appears to use a daemon running in the background to trap keys. Examine the sourcecode to see how it works.
An Autokey script to launch eu and a program looks like this:
output = system.exec_command("eui ~/demos/BEAR") keyboard.send_keys(output)
You could send parameters along with the command if needed.
However, affecting a running program is going to be a bigger deal. You'll probably have to communicate via files or pipes.