Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Linux Mint and would like to experiment with turning my keyboard into a chorded keyboard. One way I can think of to do this is to write a daemon to intercept and replace keyboard events.

I also considered the possibility of writing my own device driver but I suspect that would be very difficult (it would be a good skill to have though). I have also come across the term keyboard hooks, I am not sure what that is but it could be what I need.

What is a good way to accomplish this goal and how do I do it? If, for instance, writing a daemon is the best way to go about it then how do I intercept and replace keyboard events? Or if I can do it through, say, global macros/key combinations then how do I create them and disable the key's normal operation?

share|improve this question

One approach: You could try to use autokey or IronAHK to create hotkeys, override the normal key's functionality, and update a data structure containing the set of currently pressed keys. Then you could monitor the data structure, and fire events if a key combo is pressed for a minimum amount of time.

share|improve this answer
AutoKey looked like it would work at first but this topic states that it isn't possible to chord with anything other than modifier keys.!topicsearchin/… AutoKey has been stated to be more powerful than IronAHK so I expect that is not capable of chording either. (I am currently searching their forum to make sure however.) – Silhalnor Dec 20 '12 at 18:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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