summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2020-01-19 17:12:04 -0300
committerDavid P <megver83@parabola.nu>2020-01-19 17:12:04 -0300
commit4de086fd36c3801e7b42a3a0dd05a53396b3f0bf (patch)
treeae6a9c1c575eebb540873e1b5c3a1b143e89a2c4
parent7e747c1264eef93177eb3b8fe5c4a92a1ce1eade (diff)
[lxde-openrc] update .keymap.sh scriptHEADmaster
Signed-off-by: David P <megver83@parabola.nu>
-rwxr-xr-xconfigs/lxde-openrc/airootfs/root/.keymap.sh106
1 files changed, 2 insertions, 104 deletions
diff --git a/configs/lxde-openrc/airootfs/root/.keymap.sh b/configs/lxde-openrc/airootfs/root/.keymap.sh
index 56eb1dc..0823fde 100755
--- a/configs/lxde-openrc/airootfs/root/.keymap.sh
+++ b/configs/lxde-openrc/airootfs/root/.keymap.sh
@@ -1,112 +1,10 @@
#!/bin/bash
-list_keymaps() {
-cat <<EOM
-af Afrikaans
-al Albanian
-am Amharic
-ara Arabic
-at at
-au au
-az Azerbaijani
-ba Bashkir
-be Belarusian
-bg Bulgarian
-bn Bihari-languages
-br Breton
-brai brai
-bt bt
-bw bw
-by by
-ca Catalan
-cd cd
-ch Chamorro
-cm cm
-cn cn
-cz Czech
-de German
-dk dk
-dz Dzongkha
-ee Ewe
-epo Esperanto
-es Spanish
-et Estonian
-fi Finnish
-fo Faroese
-fr French
-gb gb
-ge ge
-gh gh
-gn GuaranĂ­
-gr gr
-hr Croatian
-hu Hungarian
-id Indonesian
-ie Interlingue
-il il
-in in
-iq iq
-ir ir
-is Icelandic
-it Italian
-jp Japanese
-ke ke
-kg Kongo
-kh kh
-kr Kanuri
-kz kz
-la Latin
-latam Latin-American
-lk lk
-lt Lithuanian
-lv Latvian
-ma ma
-mao Maori
-md md
-me me
-mk Macedonian
-ml Malayalam
-mm mm
-mn Mongolian
-mt Maltese
-mv mv
-my Burmese
-nec_vndr/jp nec_vndr/jp
-ng Ndonga
-nl Dutch
-no Norwegian
-np np
-ph ph
-pk pk
-pl Polish
-pt Portuguese
-ro Romanian
-rs rs
-ru Russian
-se Northern-Sami
-si Sinhala
-sk Slovak
-sn Shona
-sy sy
-tg Tajik
-th Thai
-tj tj
-tm tm
-tr Turkish
-tw Twi
-tz tz
-ua ua
-us English
-uz Uzbek
-vn vn
-za Zhuang
-EOM
-}
-
#Comprobe if X11 keymap was selected
code=$(cat .codecheck | grep XKBMAP= | cut -d '=' -f 2)
+keymaps_list=$(sed -e '/! layout/,/^$/!d;/! layout/d;s/ /_/g;s/__/ /g;s/ _//' /usr/share/X11/xkb/rules/evdev.lst | sort)
if [[ $code = "0" ]]; then
- keymap=$(zenity --list --title="Select your keymap" --column="Code Name" --column="Keymap" --hide-column=1 $(list_keymaps))
+ keymap=$(zenity --list --title="Select your keymap" --column="Code Name" --column="Keymap" --hide-column=1 $keymaps_list)
setxkbmap $keymap