Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've tried IronAHK and xbindkeys. Xbindkeys was ok I guess and ironAHK didn't compile. Just wondering if there's better. Maybe something to where I could set emacs-like bindings when certain programs come into focus. A mix between devilspie and xbindkeys. So long as it can execute shell commands it's good enough.

share|improve this question
add comment

closed as not constructive by slhck Apr 27 '13 at 15:07

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 1 down vote accepted

Last time I did a research on that I've stopped on Autokey. It's not an ideal though. E.g. you can "send keys" to programs, but not to x-server: you can't send a "Switch keyboard layout" keys for example (of course you can send them - but it gives no effect...). Also I can't record macro (there is a button - but it looks like it's not yet fully developed).

Still here are some scripts I use (you can bind them to a key). This inserts date:

 #Enter script code
 output = system.exec_command("date +%b'-'%d'-'%Y")
 keyboard.send_keys(output)

And this one inserts previous copied item:

 #Enter script code
 output = system.exec_command("qdbus org.kde.klipper /klipper getClipboardHistoryItem 1")
 keyboard.send_keys(output)

Also it's not easy to find manual on the official site. And the copy of manual is here.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.