News for hackers. Stuff that matters.
Re:The Joys of Unix Keyboards by consp on Monday December 30, 2019 @06:36AM (#21912640)
Also as a vim user I would like the esc instead of the control here but that is non Unix standard as far as I know. I also use Windows quite a lot so having the \ somewhere close is nice to have.

Though I really dislike the meta key next to the space-bar but that is just me not being old enough to have used non IBM compatible keyboards.

As you might have noticed, everybody's preference is different.

Re:The Joys of Unix Keyboards by dijit on Monday December 30, 2019 @06:43AM (#21912668)
There are many ways to rebind caps lock to be escape on press and control when used in combination with another key. Karbiner elements on macos and xcape on Linux come to mind immediately. But some keyboard firmwares are programmable enough to do it themselves too.

However. What I found best as a vim user was to use ^[ as escape. It has the added bonus of actually being faster to process by vim too.

Re:The Joys of Unix Keyboards by majewsky on Monday December 30, 2019 @07:03AM (#21912744)
You don't need any extra software to map Caps to Esc on X11: Just enable the caps:escape option.

In context: https://github.com/majewsky/system-configuration/blob/6c4478...

Re:The Joys of Unix Keyboards by silasdb on Monday December 30, 2019 @02:18PM (#21915882)
You can also use xmodmap [1].

My xmodmap file has things like:

  ! Make Caps Lock be Escape and Scroll Lock be Caps Lock
  remove Lock = Caps_Lock
  keysym Caps_Lock = Escape
  remove Lock = Scroll_Lock
  keysym Scroll_Lock = Caps_Lock
  add Lock = Caps_Lock
After reading this post, I also reverted backspace and bar/backslash:

  keysym BackSpace = backslash bar
  keysym backslash = BackSpace
[1] https://wiki.archlinux.org/index.php/Xmodmap

EDIT: xmodmap link

Re:The Joys of Unix Keyboards by majewsky on Monday December 30, 2019 @03:21PM (#21916344)
XKB options have the advantage of also being understood by Wayland compositors.
Re:The Joys of Unix Keyboards by dijit on Monday December 30, 2019 @07:34AM (#21912902)
Yeah. That’s cool, but I’m talking about conditional context switching.

ESC if pressed once.

CTRL it pressed with another key.

Re:The Joys of Unix Keyboards by davefp on Monday December 30, 2019 @08:44AM (#21913270)
This is the sort of thing I'd want to modify the keyboard firmware for. QMK has explicit support for this kind of thing, for example: https://docs.qmk.fm/#/feature_advanced_keycodes?id=mod-tap
Re:The Joys of Unix Keyboards by Asooka on Monday December 30, 2019 @09:22AM (#21913478)
You can also use ^[ as escape, which on this keyboard is a very small motion away from the home row.
Re:The Joys of Unix Keyboards by Koshkin on Monday December 30, 2019 @05:17PM (#21917155)
With Shift mapped to Escape, sure.
Re:The Joys of Unix Keyboards by shhsshs on Monday December 30, 2019 @06:48PM (#21917753)
As another Vim guy, the ctrl key being so much closer makes ctrl-[ a little more appealing.