Replace localectl list-keymaps
This commit is contained in:
parent
023ffec782
commit
922ba3668f
1 changed files with 16 additions and 2 deletions
18
archfi
18
archfi
|
@ -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 \
|
||||||
|
|
Loading…
Reference in a new issue