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 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
add comment

1 Answer 1

One approach: You could try to use autokey http://code.google.com/p/autokey/ or IronAHK https://github.com/polyethene/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. groups.google.com/forum/?fromgroups=#!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
add comment

Your Answer

 
discard

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.