If possible I would like something similar to this: http://apple.stackexchange.com/a/4815/31313
Basically a simple script that detects when I'm in
tmux, if I am change the CAPS lock key to be a CTRL key, else revert it.
However it is also important for me to use the CAPS lock key from time to time, in those occasions I would like to keep it pressed for 5 seconds, then it triggers a normal CAPS lock.
Would this be easy to do? Possible to do? I would prefer if I don't use any kind of extra software so that I can just put this in a script.
I would want to achieve this in a Mac Mini with OSX Snow Leopard, if possible also with Mountain Lion.