made keyboard select use dialog

pull/3/head
Amy 3 years ago
parent 59646ee3eb
commit cf9066cdc5
No known key found for this signature in database
GPG Key ID: 6672E6DD65BEA50B

@ -53,18 +53,9 @@ echo "KBD=$KBD"
# TODO: layout select in dialog # TODO: layout select in dialog
if [[ "$KBD" == "0" || "$KBD" == "0" ]]; then if [[ "$KBD" == "0" || "$KBD" == "0" ]]; then
prompt "We're going to show the list of keymaps in less. Do you know how to exit less? (Y/n)" keymaps=$(localectl list-keymaps | tr '\n' ' ' | sed 's/ /" "" "/g')
UL="$response" keymap=$(dialog --title "Citrine" --menu "Select your keyboard layout" 10 80 0 $keymaps "" --stdout)
if [[ "$UL" == "n" ]]; then
inf "Once we enter less, use arrows to scroll, and q to quit once you've found the right file."
inf "Press enter to go"
read
fi
localectl list-keymaps
prompt "Correct keymap"
KMP="$response"
echo "KMP=$response"
loadkeys ${KMP}
fi fi
clear clear

Loading…
Cancel
Save