diff options
author | pico.dev <pico.dev@gmail.com> | 2020-07-18 10:09:54 +0200 |
---|---|---|
committer | pico.dev <pico.dev@gmail.com> | 2020-07-18 10:09:54 +0200 |
commit | a22b6e427922cf03468fa5750c8e332a6466cc39 (patch) | |
tree | dc1a264a9dfcbe0e6b95b48d1f693a920bf959c3 | |
parent | cb464157fcccb8374e73710e6b6f57ebdd0d5a74 (diff) |
Add a model, variant and options in 00-keyboard.conf
Fixes #94
-rw-r--r-- | alis.conf | 3 | ||||
-rw-r--r-- | alis.sh | 16 |
2 files changed, 18 insertions, 1 deletions
@@ -45,6 +45,9 @@ LOCALES=("es_ES.UTF-8 UTF-8" "en_GB.UTF-8 UTF-8") LOCALE_CONF=("LANG=es_ES.UTF-8" "LANGUAGE=es_ES:es:en_GB:en") KEYMAP="KEYMAP=es" KEYLAYOUT="es" +KEYMODEL="" +KEYVARIANT="" +KEYOPTIONS="" FONT="" FONT_MAP="" HOSTNAME="archlinux" @@ -600,6 +600,20 @@ function configuration() { echo -e "$KEYMAP\n$FONT\n$FONT_MAP" > /mnt/etc/vconsole.conf echo $HOSTNAME > /mnt/etc/hostname + OPTIONS="" + if [ -n "$KEYLAYOUT" ]; then + OPTIONS="$OPTIONS"$'\n'" Option \"XkbLayout\" \"$KEYLAYOUT\"" + fi + if [ -n "$KEYMODEL" ]; then + OPTIONS="$OPTIONS"$'\n'" Option \"XkbModel\" \"$KEYMODEL\"" + fi + if [ -n "$KEYVARIANT" ]; then + OPTIONS="$OPTIONS"$'\n'" Option \"XkbVariant\" \"$KEYVARIANT\"" + fi + if [ -n "$KEYOPTIONS" ]; then + OPTIONS="$OPTIONS"$'\n'" Option \"XkbOptions\" \"$KEYOPTIONS\"" + fi + arch-chroot /mnt mkdir -p "/etc/X11/xorg.conf.d/" cat <<EOT > /mnt/etc/X11/xorg.conf.d/00-keyboard.conf # Written by systemd-localed(8), read by systemd-localed and Xorg. It's @@ -608,7 +622,7 @@ function configuration() { Section "InputClass" Identifier "system-keyboard" MatchIsKeyboard "on" - Option "XkbLayout" "$KEYLAYOUT" + $OPTIONS EndSection EOT |