Ubuntu – Xmodmap unlisted characters. Is there a way to add them

buttonkeyboardxmodmap

I would like to type some specific characters after using xmodmap to map them.

For example, the ⅒ character (Numeric value: 0x2152).

I would like to change a keyboard button to type ⅒ like so

xmodmap -e "keycode 56 = 0x2152"    #Would like it to type "⅒"

However, this does not work. An example using the pound sign works:

xmodmap -e "keycode 56 = 0x023"     #Types "#"

Is there anything I can do to get this to work, or who can I contact to get this to work?

Best Answer

xmodmap -e "keycode 61 = U2152" # ⅒

Works for me.

Like ByteCommander said already the U stands for Unicode. More Information are available in the man page of xmodmap.