submitted 3 weeks ago* (last edited 2 weeks ago) by to c/linuxmemes@lemmy.world
 

Alternative Imgur version

you are viewing a single comment's thread
view the rest of the comments
[–] 7 points 3 weeks ago (9 children)

The trick with emacs is to get a keyboard where you can press CTRL with your palm instead of fingers. I've been really doing it until I switched to zed.

  • source
  • hideshow 9 child comments
  • [–] 10 points 3 weeks ago* (last edited 2 weeks ago) (4 children)

    Just swap Left Control and Caps Lock.

    https://en.wikipedia.org/wiki/Keyboard_layout

    Many Unix workstations (and also home computers like the Amiga) keyboards placed the Ctrl key to the left of the letter A, and the β‡ͺ Caps Lock key in the bottom left.

    The problem is that Control on PC keyboards is in a place where it's really uncomfortable to use on a very frequent basis. Giving Caps Lock, which virtually nobody uses terribly heavily, that prime piece of real estate is just nuts.

    On Debian Linux, that's:

    /etc/default/keyboard:

    XKBOPTIONS="ctrl:swapcaps"
    

    And:

    # dpkg-reconfigure keyboard-configuration
    # service keyboard-setup restart
    

    That'll handle the Linux console and X11/Wayland. Only place you'll ever see Control in its PC location then is in the bootloader and BIOS.

    That'll also cover laptop internal keyboards or something like that, where you are gonna have limited options for hardware alternatives and can't use exotic keyboards.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 4 points 2 weeks ago* (2 children)

    The position of Caps Lock is because on mechanical typewriters, the shift lock key physically held down Shift using a push-to-toggle mechanism. (Windows' default German layout still does that! "German extended (E1)" and "German (IBM)", aka DIN T1, don't.)

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 weeks ago (1 child)

    Hmm. Left Control is still adjacent to Shift, though.

    searches

    https://en.wikipedia.org/wiki/Smith_Corona

    This 1930s US Army typewriter has a Shift Lock, but it's up where 1 is today, not adjacent to Shift. I don't think that it's essential, even with a mechanical coupling, to have them adjacent.

    thinks

    I mean, I'd think that unless maybe you have one of those electric typewriters with an LCD display, there isn't a Control key at all, so I totally get giving the slot to Caps Lock on a typewriter then.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 2 weeks ago

    This Shift Lock is still directly above the Shift key. But nevertheless, we needn't worry about that. We also put 6 symbols on one type, and decide whether a key is dead based on modifiers. (e.g. AltGr+J is the cedille)

  • source
  • parent
  • [–] 2 points 2 weeks ago

    For people that type a lot using Level 3 (e.g. using the QWERTZ layout), AltGr on Caps is probably more important. On NixOS, it's set with two options:

    {
      services.xserver.xkb.options = "lv3:caps_switch_capslock_with_ctrl";
      console.useXkbConfig = true;
    }
    

    The kernel console REALLY doesn't like E1 putting the lv5 switch on <M-f>, and instead deletes the f key, so don't use the second option if your layout does that. (Just try it out and don't gc until you've verified all keys work.)

  • source
  • parent
  • [–] 1 point 2 weeks ago (3 children)