diff options
Diffstat (limited to 'liveinit')
-rwxr-xr-x | liveinit | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -512,12 +512,6 @@ EOT # You can set just the XkbVariant by adding something like "kbd=ch xkb=,fr" XKBLAYOUT=$(echo $XKB |cut -d, -f1) XKBVARIANT=$(echo $XKB |cut -d, -f2) - if [ "$XKBLAYOUT" = "de" ]; then - # Germans use the AltGr key, so Scroll Lock will be their Compose Key: - XKBOPTIONS="compose:sclk" - else - XKBOPTIONS="compose:ralt" - fi # Ensure that XKBLAYOUT gets a value; XKBVARIANT is allowed to be empty. if [ -z "$XKBLAYOUT" ]; then if [ -z "$KEYMAP" ]; then @@ -530,6 +524,12 @@ EOT XKBLAYOUT="us" fi echo "${MARKER}: Switching live X desktop to '$XKBLAYOUT' keyboard" + # Germans use the AltGr key, so Scroll Lock will be their Compose Key: + if [ "$XKBLAYOUT" = "de" ]; then + XKBOPTIONS="compose:sclk" + else + XKBOPTIONS="compose:ralt" + fi # If the layout is not 'us' then add 'us' as a secondary nevertheless: if [ "$XKBLAYOUT" != "us" ]; then XKBLAYOUT="$XKBLAYOUT,us" |