with XFCE setting
I don’t know howto do it… Other readers, a idea?
With pinyin input
See the language-localization documentation.
With xmodmap
with the xev software, choose the key (and so the keycode) you want to use for the compose key.
Then add the ~/.xmodmaprc
file, with a content like:
keycode 134 = Multi_key
Here the compose key is the right-window-key (keycode=134) on my non-us keyboard.
For trying it, manual load the setting:
xmodmap ~/.xmodmaprc
and try the compose key: <compose> ' o
displays ó
.
All the details on the Archlinux wiki: Xmodmap.
Getting it on each start of your VM? see the config-files documentation.