Replace localectl list-keymaps

This commit is contained in:
MatMoul 2015-10-02 17:04:03 +02:00
parent 023ffec782
commit 922ba3668f

18
archfi
View file

@ -97,9 +97,16 @@ chooselanguage(){
setkeymap(){ setkeymap(){
learn setkeymap learn setkeymap
items=$(localectl list-keymaps) #items=$(localectl list-keymaps)
#options=()
#for item in $items; do
# options+=("$item" "")
#done
items=$(find /usr/share/kbd/keymaps/ -type f)
options=() options=()
for item in $items; do for item in $items; do
item=$(basename "$item")
item=${item%%.*}
options+=("$item" "") options+=("$item" "")
done done
keymap=$(whiptail --backtitle "$apptitle" --title "$txtsetkeymap" --menu "" 0 0 0 \ keymap=$(whiptail --backtitle "$apptitle" --title "$txtsetkeymap" --menu "" 0 0 0 \
@ -827,9 +834,16 @@ archsethostname(){
archsetkeymap(){ archsetkeymap(){
learn archsetkeymap learn archsetkeymap
items=$(localectl list-keymaps) #items=$(localectl list-keymaps)
#options=()
#for item in $items; do
# options+=("$item" "")
#done
items=$(find /usr/share/kbd/keymaps/ -type f)
options=() options=()
for item in $items; do for item in $items; do
item=$(basename "$item")
item=${item%%.*}
options+=("$item" "") options+=("$item" "")
done done
keymap=$(whiptail --backtitle "$apptitle" --title "$txtsetkeymap" --menu "" 0 0 0 \ keymap=$(whiptail --backtitle "$apptitle" --title "$txtsetkeymap" --menu "" 0 0 0 \