Live data from Hacker News

Moving the Ctrl Key

emacswiki.org

101–110 of 121 posts

Re: Moving the Ctrl Key

#101

I am surprised there are not more people here that hit the CTRL key with the left part of the palm of their hand rather then twisting the pinky. I don't think I could even bend my pinky comfortably to do this action.

I have a ZSA Moonlander split keyboard and for better Emacs ergonomics, I have Ctrl under my right thumb, and Alt under my left thumb.

But twisting the palm to hit Ctrl always struck me as a terrible idea, maybe because I have large hands. Better remap Capslock.

Re: Moving the Ctrl Key

#102
Or you get a HHKB and solve all your keyboard problems peramanently, personally I use the HHKB JP because I simply need the arrows. How fujitsu have not made a HHKB with american layout AND arrows is beyond me.

Re: Moving the Ctrl Key

#103
post #9

Tip for vi users on Mac: get Karabiner-Elements and use the “complex modifier” that makes the Caps Lock key into ESC when you just press it, but Control when you use it with another key.

I didn't like that option, because I found I tend to hold Ctrl to do some action (maybe copy text from some panel), and if I change my mind and release it, the ESC might close the window I'm looking at.

It's happened more than once with Chrome's Inspector or in the shell. It would be even worse with Emacs in terminal mode, where ESC is a prefix key.

Re: Moving the Ctrl Key

#104

Back in college I saw that all of my professors were suffering from varying degrees of RSI, and resolved not to succumb myself. My final changes were, in order of effectiveness: - Put Ctrl on Alt, next to the space bar. Use thumb to press. This saves a huge amount of pinky and wrist contorting. - Put Alt on Win, next to the now Ctrl key. Also use thumb to press. With both of these my pinkies have way less to do. - Pu…

When I switched to MacOS I was amazed how convinient is the mac layout: cmd and option under thumbs. I do the same for Linux immediately: win/alt/ctrl instead of ctrl/win/alt. And esc on caps of course.

Re: Moving the Ctrl Key

#105
OK, so I was thinking of editing that wiki page to add this command which I use on Gnome Wayland:

    dconf write /org/gnome/desktop/input-sources/xkb-options "['ctrl:swapcaps']"
But I'm not sure where it fits; in the Gnome section, or the xkb section?

NOTE: this overwrites the value, you should do a `read` first

Re: Moving the Ctrl Key

#106

The answer to the "Ctrl question" is quite obvious - just take a look at the space cadet keyboard. Just swap Ctrl and Alt so thumbs could be used for a busy Ctrl. This also dramatically improve the experience in other "Ctrl heavy" applications. P.S. I also use Caps Lock for switching layouts and never been happier.

This is the way. I've remapped ctrl/win/alt to win/alt/ctrl and esc to capslock.

Re: Moving the Ctrl Key

#107
post #105

OK, so I was thinking of editing that wiki page to add this command which I use on Gnome Wayland: dconf write /org/gnome/desktop/input-sources/xkb-options "['ctrl:swapcaps']" But I'm not sure where it fits; in the Gnome section, or the xkb section? NOTE: this overwrites the value, you should do a `read` first

I believe it goes into your .profile

Re: Moving the Ctrl Key

#108
post #103
post #9

Tip for vi users on Mac: get Karabiner-Elements and use the “complex modifier” that makes the Caps Lock key into ESC when you just press it, but Control when you use it with another key.

I didn't like that option, because I found I tend to hold Ctrl to do some action (maybe copy text from some panel), and if I change my mind and release it, the ESC might close the window I'm looking at. It's happened more than once with Chrome's Inspector or in the shell. It would be even worse with Emacs in terminal mode, where ESC is a prefix key.

If it could be OK for you other than that, there is usually a timeout setting that can be applied before it is recognised as a press.

    For example, any press under 200ms is ESC, anything over will register as Ctrl.   The timeout can be adjusted to work and not capture that time that you press it but then decide you don't want it.

Re: Moving the Ctrl Key

#109
On all of my machines, Caps Lock has to get mapped to switching between keyboard layouts. Saves me so much time every day, not having to do the Alt+Shift dance dozens of times every hour.

If only there were more non-US people making decisions in tech, we could have had a dedicated key for that, the way Japanese keyboards have a bunch of Japanese-specific keys, but alas.

Re: Moving the Ctrl Key

#110
post #73

Does anyone else experience the sensation of feeling like you’re six years old again, when working on someone else’s PC because you’ve so heavily customized yours?

Or you're hunt-and-pecking at 30wpm on your coworker's QWERTY keys, and they start to look at you funny as you stammer something about "I'm not used to ..." and "... Dvorak"? Yeah.

I was once helping troubleshoot and issue and I politely said, “can I drive?”

“You can try” he said with a smile.

His keyboard keys were all blank and he was in Dvorak.

“…maybe it’s best that you drive.”

Post reply on HN