Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm on Mageia Linux Cauldron (what will become Mageia 2), where Mageia Linux is a recent community fork of Mandriva Linux.

This script gives me the Xkb layout that I need:


setxkbmap \
    -option "" \
    -option "compose:ralt,grp:switch,grp:alt_shift_toggle,grp_led:scroll"  \
    -variant ",lyx" \

Now, I have this in /etc/sysconfig/keyboard:


But the compose key is not configured using this by default (on X startup).

I used to be able to define the keyboard layout using directives in /etc/X11/xorg.conf but it no longer appears to work.

How can I define everything I need by editing /etc/sysconfig/keyboard (or any other appropriate files under /etc)? I'm looking for a solution that will be system-wide, permanent, and cross-desktop.

share|improve this question

Replying to myself, I'd like to say that I found a good way to do that. Just define a file called ".Xkbmap" under the home directory with contents such as:

-option compose:ralt,grp:switch,grp:alt_shift_toggle,grp_led:scroll  -variant ,lyx us,il

And your current user should be good to go.

Thanks to everybody who tried to help.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .