From cabc8f6dd33669cd5613d51e92292a64945ca11f Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Fri, 22 Jul 2016 15:21:44 +0200 Subject: 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 https://help.ubuntu.com/community/ComposeKey : 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. --- liveinit | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'liveinit') 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" else - # 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" fi fi mkdir -p /mnt/overlay/etc/X11/xorg.conf.d @@ -858,11 +859,11 @@ Section "InputClass" EOT if [ -z "$XKBVARIANT" ]; then cat <> /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf - #Option "XkbVariant" "$XKBVARIANT" + #Option "XkbVariant" "$XKBVARIANT" EOT else cat <> /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf - Option "XkbVariant" "$XKBVARIANT" + Option "XkbVariant" "$XKBVARIANT" EOT fi cat <> /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf -- cgit v1.2.3