2

I'm on Belgian keyboard (/usr/share/X11/xkb/symbols/be) and when I type AltGrù it produces the dead key "acute accent", it waits for another key, o for example, to produce ó.

How can I change which character is produced, such that I can do ´ + o = ɔ or anything I want?

Kusalananda
  • 320,670
  • 36
  • 633
  • 936

1 Answers1

3

This behaviour is determined by the compose mappings. You can find your default mappings by looking up your locale in /usr/share/X11/locale/compose.dir, then checking the corresponding file, probably /usr/share/X11/locale/en_US.UTF-8/Compose.

To override a compose sequence, create a file named ~/.XCompose, enter

include "%L"

as its first line (this includes the default mappings), then add your own after that:

<dead_acute> <o> : "ɔ"

You can verify your changes by starting a new xterm: it will reflect the settings on startup. Other X programs might not; for example I’ve seen GNOME Terminal pick changes up, but not systematically, even when restarting it.

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164