5

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?

Rmano
  • 32,167
TuxForLife
  • 1,333

2 Answers2

9

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.

2

And once you used the correct answer by juAron, Are you sure you have a font for it? With a Compose Key, I can type it for example in LO writer eith the Libertine font as Compose 1 10:

LO output

...but it will not work on the terminal:

on terminal

Unless I use the correct font (Notice this is a big character, it makes strange things on monospaced fonts:)

enter image description here

(PD: xmodmap is deprecated; see here for more details).

Rmano
  • 32,167