Hacker News new | ask | show | jobs
by mattengi 4562 days ago
In linux, if you want to make Capslock as both ESC and Ctrl,

    $ setxkboption -option -option 'ctrl:nocaps'
    $ xcape
https://github.com/alols/xcape

What is good for?

  - Happy with vim
  - Happy with emacs like - readline - keybinding. C-a, C-e, C-u, C-k, C-d, C-h, C-w, C-p, C-n, C-y ...
  - Ctrl key is most used in any gui application.
You can abandon both bottomleft Ctrl and topleft Esc.
2 comments

How does that work? Pressing it alone is escape, pressing it in combination with another key is Ctrl?
Yes
If you use Emacs, I've heard great things about used xkb to remap spacebar to control, and using xcape to make control generate a space when tapped. It sounds messy but now you'll get emacs thumb instead of emacs pinky.