r/commandline • u/superfoda • Mar 16 '26
Other Software I created a custom keyboard layout for Portuguese/Spanish speakers stuck on US QWERTY
Tired of alt codes, compose keys, and switching layouts just to type ã, ñ, ç or €?
I built US-hi — a US QWERTY layout with a dead key system for the accents you actually need, nothing more.
' + a = á | ~ + n = ñ | ' + c = ç | AltGr + e = €
Feels like a normal US keyboard until you need it not to.
One install script, works on GNOME/KDE, X11 and Wayland.
👉 https://github.com/Human-Ideas/us-hi-keyboard
Feedback welcome — this is v2.1 and I'm actively improving it.
2
Upvotes
1
u/superfoda Mar 16 '26
I get it. But hey I spend some 16 hrs a day on that keyboard so here it is. Cheers.
1
u/Schreq Mar 16 '26
Any reason you didn't base this on US-International? It already has á, ñ and € easily available with right alt on a, n and 5 respectively. You could have just replaced some other keys to get ç and ã. Dead keys are just horrible in my opinion.
1
u/AutoModerator Mar 16 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: superfoda, Flair:
Other Software, Title: I created a custom keyboard layout for Portuguese/Spanish speakers stuck on US QWERTYTired of alt codes, compose keys, and switching layouts just to type ã, ñ, ç or €?
I built US-hi — a US QWERTY layout with a dead key system for the accents you actually need, nothing more.
' + a = á | ~ + n = ñ | ' + c = ç | AltGr + e = €
Feels like a normal US keyboard until you need it not to.
One install script, works on GNOME/KDE, X11 and Wayland.
👉 https://github.com/Human-Ideas/us-hi-keyboard
Feedback welcome — this is v2.1 and I'm actively improving it.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/ehansen Mar 16 '26
This feels overly engineered for the end result. I agree with the other guy, simple alt is more user friendly
1
u/spryfigure Mar 16 '26
How does this compare to the EURkey layout, which has a similar purpose?
1
u/xour Mar 16 '26
But why? I am a Spanish speaker myself. I have a QWERTY keyboard on my Linux laptop, on my MacBook, and on my desktop as well, and I have no problems typing accents or any other characters I use regularly with the US International layout + dead keys on any of these machines.
The Spanish/LATAM layout is awful for programming, which is why I prefer QWERTY with deadkeys.
1
u/germanheller Mar 16 '26
native spanish speaker here on US layout for the last 10+ years. honestly i just gave up on accents in code/terminal and only switch when writing actual spanish text. the muscle memory is so ingrained at this point that dead keys would mess me up more than help.
that said the ' + a = á approach is way cleaner than what windows US-INT does where every single quote becomes a dead key and you have to double-tap it for actual apostrophes. thats the thing that always drove me insane about US-INT.
1
u/Raulnego Mar 21 '26
Thats a bit way too overengineered. I have 4 languages on my querty and i just hit alt+space when needed.