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'd like to learn how to trigger something in my debian box on double-tap of a key (let's say l-shift). My setup is X11 based. Should I look into doing in my MW (xmonad) or on a lower level? Forgive my ignorance, but I'm used to windows and the wonderful autohotkey. Why? To remap ctrl to capslock, and have capslock on double-tap of l-shift.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The action of double-tapping would ideally be program-independent and should thus be implemented at a lower level than user programs or even window managers (which you don't want grabbing all keypresses to check for double-tapping).

The correct place to implement a feature like this would be in the X keyboard extensions. It could detect double tapping and let the user configure the keyname associated with it. Unfortunately, XKB does not yet support the action of double-tapping. You can do other cool things though, like remapping keys with xmodmap or even writing novel keyboard layouts (have look at the files in /usr/share/X11/xkb/symbols)

share|improve this answer

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.