9

I recently installed LXDE in Ubuntu 11.10, so that I can choose it at the login screen, but I've since noticed that there's no compose key (since I enabled it in Gnome Shell and Unity) so I was wondering how to enable a compose key?

Thanks for any help :)

muru
  • 207,228

4 Answers4

13

setxkbmap -option "compose:caps" for CapsLock

setxkbmap -option "compose:ralt" for right alt =)

fetsh
  • 266
8

To set the compose key

sudo leafpad /etc/default/keyboard

edit XKBOPTIONS to like this

XKBOPTIONS="compose:Shift+AltGr"   

To get a list of available keys:

grep compose /usr/share/X11/xkb/rules/xorg.lst

Reboot for the change to be applied or

setxkbmap -option "compose:Shift+AltGr"

To check if the option was set correctly

setxkbmap -print -verbose 10

Example:

press Shift then AltGr and release then click on "o c" to obtain ©.

Additional reading

shantiq
  • 607
2

You can check if the keyscan code on your keyboard same as default setting. Did you check if you can do the compose by selecting predefined keyboard with Compose key?

tomchiukc
  • 248
0

For iBus, you can use

setxkbmap -option "lv3:ralt_switch_multikey"

This is defined in /usr/share/X11/xkb/rules/ as "Right Alt [for 3rd level], Shift+Right Alt key is Compose"

This is also included when you select the gb layout:

setxkbmap -layout gb