Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to setup a compose key, but the only options available in the KDE system settings (and via /usr/share/X11/xkb/rules) are:

compose:ralt         Right Alt
compose:lwin         Left Win
compose:rwin         Right Win
compose:menu         Menu
compose:lctrl        Left Ctrl
compose:rctrl        Right Ctrl
compose:caps         Caps Lock
compose:102          Less-than/Greater-than

None of those please me though; "compose:caps" might be ok, but it's mapped to ctrl already.

Is there an option so setup some key (e.g. some of those extra function keys), or to get the key itself somehow? (e.g. ralt would be OK, if I could easily get the original behavior of the key (AltGr))

I would love to have something like Shift-AltGr to trigger Compose mode.

I guess I could add an extra rule, like it's done for/with compose:102.. what does 102 refer to? (it's not something dumped via xev).

There is also an option lv3:ralt_switch_multikey (Right Alt, Shift+Right Alt key is Multi_Key), but this did not work as expected (see http://bugs.kde.org/246472).

share|improve this question

1 Answer

up vote 2 down vote accepted

lv3:ralt_switch_multikey is what I was looking for:

# But here it is: /usr/share/X11/xkb/rules/xorg.lst
# Anyway... what this is doing:
# lvl3:ralt_switch_multikey
#   right alt = AltGr = choose third shift level
#   shift + right alt = compose key aka Multi_Key

(via http://ndim.fedorapeople.org/stuff/radeonhd/xorg.conf)

I have this set via the KDE system settings (Keyboard => Advanced), so that I have the following in my ~/.kde/share/config/kxkbrc:

Options=ctrl:nocaps,lv3:ralt_switch_multikey
share|improve this answer
+42 – wȯŕkß łīkə ả čhவ™ ;-) The best of it is that character shortcuts in my user-defined map are still working if I use AltGr+Shift (fourth shift level) instead of the less common Shift+AltGr (now Compose), and that systemsettings keeps it. – PointedEars Dec 3 '12 at 18:38
You do not have to edit the configuration file. That setting is located in KDE 4.8.4 under “Keyboard” → “Advanced” → “Key for changing into the third keyboard level” → “Right Alt key, Shift + right Alt key is Multi key”. That is why it survives an update via the GUI. (I have translated the German labels, so the English ones may vary.) – PointedEars Jan 27 at 11:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.