Me want type math characters everywhere!

Hi !
How do I define some shortcuts to type my favorite math symbols as Unicode chars in Geany and Terminal and whatsoever text app ?

First attempt:

  1. Installed xvkbd
    yay -S xvkbd

  2. In openbox’s rc.xml

<keybind key="W-KP_1">
     <action name="Execute">
         <command>xvkbd -text "Text 1 inserted!"</command>
     </action>
 </keybind>

Works but holding the win key too long invokes the W-shortcuts made from the chars provided in the string !

Bump for our member.

I’d like to have sthg like : “W-I wedge” t insert the ∧ symbol.
That is
-one compound shortcut Windows-I
-then one sequence of letters: w-e-d-g-e

Second attenpt.

What I need seems like a compose key.
https://wiki.archlinux.org/title/Xorg/Keyboard_configuration#Frequently_used_XKB_options

In /etc/X11/xorg.conf.d/00-keyboard.conf :

# Use localectl(1) to instruct systemd-localed to update it.
Section "InputClass"
    Identifier      "system-keyboard"
    MatchIsKeyboard "on"
    Option          "XkbLayout" "fr"
    Option	    "XkbVariant" "latin9"
    Option          "XkbOptions" "compose:menu-altgr"
EndSection

And in ~/.XCompose

include "%L"

<Multi_key> <w> <e> : "∧"

Reboot. It doesn’t work.

  • Have I put XCompose at the wrong place ?
  • Are Openbox settings overriding those ?

THird and succesful attempt:

Put in ~/.xinitrc

setxkbmap -option "compose:menu"

And modified /etc/X11/xorg.conf.d/00-keyboard.conf accordingly, but I read somewhere that setxkbmap overrides it.
Rebooted.
Now works.
Look! ∧∨∈ ← ⟼