News for hackers. Stuff that matters.
Re:HN Mining or: How I Learned that there are some among us ... by somat on Sunday October 30, 2022 @04:27AM (#33392391)
read up on the compose key it may change your life for the better. or it may be difficult to replicate on windows/wayland leading to additional stress in your life. or perhaps you enjoy your current setup, which does not sound half bad, although not as good as the compose key.

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

    #load system compose files
    include "%L"
    <Multi_key> <w> <e> <b> : "\xf0\x9f\x95\xb8" # spiderweb
read /usr/X11R6/share/X11/locale/en_US.UTF-8/Compose to get a feel for the existing compose sequences.
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.