diff options
author | Eric Hameleers <alien@slackware.com> | 2016-07-22 15:21:44 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-07-22 15:21:44 +0200 |
commit | cabc8f6dd33669cd5613d51e92292a64945ca11f (patch) | |
tree | 8e3864c60e2bc26d0ba2309b3eca81483975542d /liveinit | |
parent | 0d75cd1e2689f4c59ced3915475554f25a73dfb7 (diff) | |
download | liveslak-cabc8f6dd33669cd5613d51e92292a64945ca11f.tar.gz liveslak-cabc8f6dd33669cd5613d51e92292a64945ca11f.tar.xz |
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.
Diffstat (limited to '')
-rwxr-xr-x | liveinit | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -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 <<EOT >> /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf - #Option "XkbVariant" "$XKBVARIANT" + #Option "XkbVariant" "$XKBVARIANT" EOT else cat <<EOT >> /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf - Option "XkbVariant" "$XKBVARIANT" + Option "XkbVariant" "$XKBVARIANT" EOT fi cat <<EOT >> /mnt/overlay/etc/X11/xorg.conf.d/30-keyboard.conf |