Add font size selection

This commit is contained in:
natemaia 2019-12-21 05:29:03 -08:00
parent a003e52a52
commit 5f8795d6e9

View File

@ -8,7 +8,7 @@
# check for syntax errors
# set -n
VER=2.1.7
VER=2.1.8
# default values {
@ -2582,13 +2582,12 @@ net_connect()
else
nmtui-connect
fi
chk_connect
elif hash wifi-menu > /dev/null 2>&1; then
wifi-menu
chk_connect
else
return 1
fi
chk_connect
}
dwm_xsession()
@ -2660,8 +2659,8 @@ system_identify()
termcol
# ensure the required packages are installed and that we're running as root on x86_64 architecture
if ! hash dialog rsync find parted curl >/dev/null 2>&1; then
printf "One or more of the required packages is missing: dialog, curl, rsync, parted, findutils"
if ! hash dialog rsync find parted curl arch-chroot >/dev/null 2>&1; then
printf "One or more of the required packages is missing: dialog, curl, rsync, parted, findutils, arch-install-scripts"
die 1
elif (( UID != 0 )); then
msg "Not Root" "\nThis installer must be run as root or using sudo.\n\nExiting..\n" 2
@ -2693,6 +2692,17 @@ done
system_identify
system_devices
while :; do
dlg fontsize menu "Font Size" "\nSelect a font size from the list below" \
12 "setfont ter-i12n" 14 "setfont ter-i14n" 16 "setfont ter-i16n" 18 "setfont ter-i18n" \
20 "setfont ter-i20n" 22 "setfont ter-i22n" 24 "setfont ter-i24n" 28 "setfont ter-i28n" \
32 "setfont ter-i32n" || break
FONT="ter-i${fontsize}n"
setfont "$FONT"
yesno "Font Size" "\nKeep the currently set font size?\n" && break
done
msg "Welcome to the $DIST Installer" "$_welcome"
if ! select_keymap; then