Moving the ctrl key to double-click the l-shift key

I am using Emacs, and the position of the Ctrl key is a bit problematic.

The only solution I found was to make Caps-Lock an extra Ctrl key. This is great, but I also want random use of the caps-lock key. So my solution is to re-bind the Caps-Lock to double-clicking the Shift key .

My question is how to achieve this on both Windows and Linux?

+4
source share
1 answer

You can use autohotkey under the windows. It seems to be the equivalent program for linux ( autokey ), but I never used it.

This .ahk script should do the trick:

~SHIFT:: if (A_PriorHotkey <> "~SHIFT" or A_TimeSincePriorHotkey > 400) { ; Too much time between presses, so this isn't a double-press. KeyWait, Esc return } Send {CapsLock} return 

Source: fooobar.com/questions/231777 / ...

0
source

All Articles