Re:HN Mining or: How I Learned that there are some among us ...
by anjbe on Sunday October 30, 2022 @06:26AM
(#33393103)
I do the same, except instead of xmodmap I use “setxkbmap -option compose:ralt” (plus a few other options) as described in the xkeyboard-config(7) manpage. It has some useful features: https://man.openbsd.org/xkeyboard-config.7
Re:HN Mining or: How I Learned that there are some among us ...
by flobosg on Sunday October 30, 2022 @09:34AM
(#33394381)
I am aware of the Compose key, but have yet to find a good key to map to it (I use AltGr for third and fourth level characters already). I’ll keep that in mind in case my setup breaks down in the future.
Most linux desktops are different and more complicated but here is how I set mine up on openbsd.
pick a key that is handy but you don't use much, for me this was the context menu key, on many european keyboards there is an altgr key set aside for this exact use case.
in ~/.xsession add a line like "xmodmap -e 'keysym Menu = Multi_key'"
create a file ~/.XCompose to setup your own compose sequences. mine looks like
read /usr/X11R6/share/X11/locale/en_US.UTF-8/Compose to get a feel for the existing compose sequences.