Custom Compose Key with `equal to` symbol


$ localectl status
System Locale: LANG=en_GB.UTF-8
    VC Keymap: gb
   X11 Layout: gb

In my ~/.XCompose, I have the following

include "%L"

# Approximate Sign
## Refer: [Difference between "≈", "≃", and "≅" - Mathematics Stack Exchange](
<Multi_key> <asciitilde> <asciitilde>   : "≈" # almost equal to (U+2248)
<Multi_key> <equal> <asciitilde>   : "≃" # asymptotically equal to, congruent (U+2243)
<Multi_key> <equal> <equal> <asciitilde>   : "≅" # approximately equal to (U+2245)

Help Request

  1. But only works! Any suggestions on why the sequence with <equal> doesn’t work?
  2. I checked xmodmap -pke and = is refered as equal so I used this keyword in ~/.XCompose, is this how one is suppose to name the symbols in this file?

The first is defined upstream. That’s why the first works.

The 2nd and 3rd should work after you log out and and back in, or restart ibus-daemon.

To restart ibus-daemon, I use this alias:

alias ibus-restart='/usr/bin/ibus-daemon --replace --panel disable </dev/null &>/dev/null & disown'

To define your own alias, first determine what command your graphical desktop environment used to invoke ibus-daemon:

$ pgrep ibus-daemon | xargs --no-run-if-empty ps -o command
/usr/bin/ibus-daemon --panel disable
1 Like

I restarted my system and still those compse sequence won’t work!