path: root/liveinit
diff options
author Eric Hameleers <>2016-07-22 15:21:44 +0200
committer Eric Hameleers <>2016-07-22 15:21:44 +0200
commitcabc8f6dd33669cd5613d51e92292a64945ca11f (patch)
tree8e3864c60e2bc26d0ba2309b3eca81483975542d /liveinit
parent0d75cd1e2689f4c59ced3915475554f25a73dfb7 (diff)
liveinit: Use Shift-AltGr as the Compose Key, seems to be the sanest choice.
As documented in file "/usr/share/X11/xkb/rules/xorg.lst": lv3 Key to choose 3rd level lv3:ralt_switch_multikey Right Alt, Shift+Right Alt key is Compose And as explained in : There are four levels of keyboard entry. Selecting a level involves holding a set of modifier keys down, this changes the function of all the other keys on the keyboard. The levels are, by default: Level Modifier Keys produced ------------------------------- 1 None Lowercase letters, numbers, etc. 2 Shift Uppercase letters, symbols printed on keyboard, etc. 3 AltGr Extra symbols not printed on the keyboard, some dead keys. 4 AltGr-Shift Even more symbols, more dead keys. Dead keys are keys that appear to do nothing at first; they apply an accent to the next letter you type. Third and fourth level choosers: Holding down the AltGr key and pressing another key will produce a third level character. Holding down the AltGr and Shift keys (the order can be important) and pressing another key will produce a fourth level character. Note that some combinations are dead keys; an additional key-press is required whereupon a diacritic will be added to the final character keyed. Compose key: Keying the combination Shift+AltGr (in that order), releasing these keys, then entering two other keys will produce a special character.
Diffstat (limited to '')
1 files changed, 8 insertions, 7 deletions
diff --git a/liveinit b/liveinit
index db03808..cabc92f 100755
--- a/liveinit
+++ b/liveinit
@@ -838,12 +838,13 @@ EOT
# determine a set of sane defaults:
if [ "$XKBLAYOUT" != "us" ]; then
# User should be able to switch between layouts (Alt-Shift toggles).
- # Also, many languages use the AltGr key, so we will use Scroll Lock
- # as the Compose Key:
- XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll,compose:sclk"
+ # Also, many languages use the AltGr key, so we will use Shift-AltGr
+ # (press them, then release them, then enter your two keys of choice)
+ # as the Compose Key - see "/usr/share/X11/xkb/rules/xorg.lst":
+ XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll,lv3:ralt_switch_multikey"
- # For US keyboard we use the Right Alt (AltGr):
- XKBOPTIONS="compose:ralt"
+ # For US keyboard we just define the Compose Key as before:
+ XKBOPTIONS="lv3:ralt_switch_multikey"
mkdir -p /mnt/overlay/etc/X11/xorg.conf.d
@@ -858,11 +859,11 @@ Section "InputClass"
if [ -z "$XKBVARIANT" ]; then
cat <<EOT >> /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf
- #Option "XkbVariant" "$XKBVARIANT"
+ #Option "XkbVariant" "$XKBVARIANT"
cat <<EOT >> /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf
- Option "XkbVariant" "$XKBVARIANT"
+ Option "XkbVariant" "$XKBVARIANT"
cat <<EOT >> /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf