Hacker News new | ask | show | jobs
by wlue 4937 days ago
The funny thing is that I know a few people who do this. (Holding Caps Lock = CTRL, tapping Caps Lock = ESC)
2 comments

How could we not think about this? It's genius!

How is it done? Does your buddy use X, mac or where in the stack is the hack?

I'm slightly embarassed to admit that I remapped them after reading this: http://stevelosh.com/blog/2012/10/a-modern-space-cadet/#cont...
On OS X, you can use KeyRemap4Macbook (http://pqrs.org/macosx/keyremap4macbook/) to turn on the feature with a bit of hackery.

I have not figured out how to do it on Windows, but I imagine that it might be possible with AutoHotKey.

I got this working on my system (running X) with the help of a daemon (https://github.com/alols/xcape).

    $ setxkbmap -option ctrl:nocaps
    $ xcape
Now I just have to flog my muscle memory into submission.
I read about it in one of Steve Yegge's Emacs posts. Now I use it everywhere!
What an excellent idea! If I didn’t use CapsLock for choosing keyboard layout, I would have done this...