back

by TremendousJudge·8y ago·view on hn ↗
I speak Spanish and have a laptop with a US keyboard. There's a similar issue with the <> key. I tried switching all the time at first, but it's a pain in the ass. Eventually I remapped right alt+Z to < and right alt+X to >. It took me an entire afternoon to figure out how to do it on Ubuntu, and I'm pretty sure it can't be done on Windows. So yeah, not exactly a solution for everyone
3 comments
For Windows, there is the Microsoft Keyboard Layout Creator[1], which would allow you to create such a mapping. I used it to map AltGr+s to ß on a Finnish/Swedish keyboard since I found myself writing a decent amount of German.

[1] https://www.microsoft.com/en-us/download/details.aspx?id=223...

I find it nuts that numbers are unmodified but delimiters like that are not when I mostly use my (US ANSI macOS layout) keyboard for front end coding. My fix was space cadet modifiers. Tapping left/right shift produces opening/closing parenthesis, command does curly braces, and option does angle brackets. Also caps lock is control but tapping it is double quote. You may find with this approach that you have way more keys at your fingertips than you thought.
It's not a pain in the ass (at least in windows) because there is an OS setting that lets each window remember its keyboard layout. So I don't have to switch very often. The coding windows use US layout and my chat windows use GR (Greek) layout.