Hacker News new | ask | show | jobs
by chr 1953 days ago
If Windows is a good GUI, how do I reliably swap caps lock and control?
3 comments

https://github.com/microsoft/PowerToys has reliable key remapping. Also has decent window tiling.
Swapping left control and caps lock disturbs AltGr, which appears to be a synthesis of left control and right alt.
I see what you mean. I truthfully don't usually swap and instead leave ctrl-left as is and just re-assign capslock elsewhere (e.g. win-right, or another chord) as the habit of which key to hit for ctrl is hard for me to break. AltGr at least still works in this setup.
Ah. I just left the physical control key alone, and thus have no caps lock key at all. Seems some applications grab the keypresses at a lower level than where PowerToys changes it, so sometimes caps lock is activated when my intention is to hold control.

Was screensharing with a react native hotshot yesterday, and felt my perceived age doubled to 102 as I suddenly was yelling in all caps, with no quick exit.

AutoHotkey seems to work for me
Assuming you really want to know, try SharpKeys.
https://sharpkeys.en.softonic.com/ looks so scammy, and I have ublock turned on... I can only imagine how it must look without that. I'm sure it's fine but why do all windows tool s always get hosted on the most scam looking websites?

When I'm stuck on windows I use https://docs.microsoft.com/en-us/sysinternals/downloads/ctrl...

Of course adding setxkbmap -option ctrl:nocaps to ~/.xinitrc seems way easier to me. But I'm probably in the minority.

That Softonic site is probably totally unrelated to the original developer. This is the legit site: https://www.randyrants.com/software/

It's also on GitHub: https://github.com/randyrants/sharpkeys

That is way better. Annoying that it wasn't in the first few search results for me.