Hacker News new | ask | show | jobs
by wooque 452 days ago
Use character composition. You then type those characters buy pressing compose key (I've set it to Caps Lock) and then sequence of characters. Much easier than switching keyboard layouts, and you can type other non-usual characters like °, µ, €

ø = Compose -> / -> o

é = Compose -> ' -> e

° = Compose -> o -> o

µ = Compose -> m -> u

€ = Compose -> = -> e

https://en.wikipedia.org/wiki/Compose_key#Common_compose_com...

https://cgit.freedesktop.org/xorg/lib/libX11/plain/nls/en_US...

3 comments

The Compose approach is extremely handy if you need to type several languages (e.g.: Spanish, German and Pinyin).

A wrote a short article on it a while ago: https://whynothugo.nl/journal/2024/07/12/typing-non-english-...

I also keep a handy alias to quickly find how to write new symbols:

    alias compose='fzf < /usr/share/X11/locale/en_US.UTF-8/Compose'
takes a bit of time but you end up being fast enough without changing keyboard layout, pretty great
The compose key defined in Linux Mint's own keyboard settings doesn't work in Firefox.