Compose key with XFCE

The compose key is very useful to type special letters that are not on keyboard (letters with accents for ex.):
compose+,+c = ç

There is no menu entry in the keyboard layout for the compose key in XFCE. You have to edit /etc/X11/xorg.conf, and add it in the "InputDevice" section:

Section "InputDevice"
Identifier   "Generic Keyboard"
Driver       "kbd"
Option      "CoreKeyboard"
Option      "XkbRules"      "xorg"
Option      "XkbModel"      "pc105"
Option      "XkbLayout"     "fr"
Option      "XkbOptions"    "lv3:ralt_switch, compose:rwin"

Here I choose right win key. You can choose the one you want (lwin, ralt, caps...). Restart X with CTRL-ALT-Backspace.

Reference:

http://ubuntuforums.org/showpost.php?p=2377176&postcount=5

About these ads

4 thoughts on “Compose key with XFCE

  1. There is a in my opinion better and easier option: Go to the XFCE settings, startup options and add the command

    setxkbmap -option “compose:rwin” de nodeadkeys

    (or which layout you want). Now, check “systemwide settings” in the keyboard settings so that XFCE doesn’t change anything. Works for me and I can go on living without a xorg.conf.

  2. (‘greater’ and ‘less’ symbols would not be displayed in the formular and I cannot edit my comment):

    I meant to write : use “shift”+”altgr”+”special key”

    Cheers! Arkaitz

  3. I’m using xubuntu 12.10. There’s no xorg.conf, but the /etc/default/keyboard file has the XKBOPTIONS variable that you can set as you did with XkbOptions.
    Hope it helps.

Comments are closed.