Add 'gnome-setup' to 'setup'

master
Hektor Misplon 2025-02-05 20:32:09 +01:00
parent a574645fa0
commit 0307be8d2c
1 changed files with 9 additions and 2 deletions

View File

@ -98,14 +98,18 @@ setup_keyboard() {
fi
}
configure_gnome() {
announce "Configuring Gnome"; setup-gnome
}
announce() {
echo " "
echo "$1"
echo "[dots] $1"
echo " "
}
confirm() {
read -r -p "$1? [y/N]" -n 1
read -r -p "[dots] $1? [y/N]" -n 1
case "$REPLY" in y|Y ) "$2";; * ) echo "Skipping"; esac
}
@ -116,3 +120,6 @@ confirm "Install these AUR packages? " install_aur_packages
confirm "Setup NeoVim? " setup_neovim
confirm "Install dotfiles? " install_dotfiles
confirm "Setup keyboard? " setup_keyboard
if pacman -Qi "gdm" &> /dev/null; then
confirm "Configure Gnome? " configure_gnome
fi