Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On a slightly related note: does anyone else map caps lock to control (and vice-versa)?

I’ve never really understood why caps lock gets a huge key in the middle of the keyboard, while control gets a regular-sized key at the bottom. Generally speaking, caps lock is used much less than control.



At home (Linux with a PC keyboard), I just map capslock to control, and don't map anything to capslock: I have to type in all caps so little that it doesn't justify a key of its own, and holding down the shift key for several characters once in a while isn't much hardship.

At work (MacBook Pro), things get a little hinkier:

- I map capslock to command

- in iTerm2 only, I swap command and control.

This means I can use the honking big key to the left for my cutting/pasting/window-switching needs when not in the terminal, and still use my muscle memory for Vim and the command line when I am in the terminal.

The (not insignificant) downside is having to remember to use the physical control key (rather than capslock or physical command) for copying/pasting/window-switching when in the terminal: but I can live with that.

I also had to disable iTerm2's default command-W shortcut for closing tabs, as I kept hitting it by accident when trying to ^W on the command-line.

Separate but still (just) related point: I've had to train myself to use ^[ for Escape in the terminal (especially in Vim), as the escape key on the MacBook Pro's touchbar is next to useless. I guess could have just mapped capslock to Escape, but having that big fat control/command key is just too useful.


I map it to escape. I find using the caps lock key as a modifier to be too awkward, I prefer the position of the control key for that. Escape being all the way up at the top left is much more of an inconvenience. I don’t remap the original escape key to caps lock, though, I have xkb set to trigger caps lock by pressing both shift keys.


As a Vim user, Esc is quite common, but I still end up straining my hand more when reaching for control. Remapping control has helped me a lot with that.

If strain wasn’t an issue, Esc would be my next choice.


or just put both esc and ctrl to caps lock, which got common in the kb community for a few years


Yes. As a long time Emacs user I do that routinely on _every_ machine I use.

For those that don't know, there are a handful of control key sequences that perform basic cursor movements that are the same in Emacs, bash, zsh, and every text pane in Mac apps. Using caps lock as a control key makes this very pleasant.

I am unlikely to give up this habit since I despise moving my hands from the home row to use arrow keys -- for me, this is the main pain point when switching between Windows and Mac several times per day.


Capslock is dual-role for me, tap for Enter, hold for acting like a custom modifier. Shift is tap for escape, hold for normal shift, tilde is backspace, my pinky gets busy. The best Ctrl replacement is spacebar, the only windows program that does it flawlessy is touchcursor


i had space when pressed remapped with ahk but couldn't get it to work reliably typing above 80wpm, how is it with touch cursor?


I can type 100+ wpm reliably with touch cursor. AHK is not recommended for space bar dual role functionality for the reasons you mentioned.


Ok good to know, I just installed it together with AHK and somehow they must interfere which each other even if I suspended or paused AHK's script.

TouchCursor sometimes is deactive and then after a few seconds again it works again...


Kinto supports remapping Capslock to Ctrl or Esc, it is in the Tweaks menu, at least on Linux. I have not implemented the Tweaks menu for Windows just yet, besides that the 2 versions are pretty much at parity with each other.


I map it to alt+tab. One press and it call most recent window, another press and it switch back.

I mean, you can press alt+tab quickly. But I like the simplicity of one button.


It's sufficiently common that one of my keyboards has a built-in DIP switch to enable that




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: