Remove GNOME support

This commit is contained in:
2024-06-06 23:40:15 +01:00
parent 5eb933ee11
commit b7d2ca167b
5 changed files with 25 additions and 114 deletions

View File

@@ -382,13 +382,13 @@ else
fi
echo
main_menu_opts=("Install Trude's Dotfiles" "Install DWM (desktop)" "Install GNOME (desktop)" "Install GitHub CLI" "Install Google Chrome" "Install AI" "Install Tailscale" "+Install Games")
main_menu_opts=("Install Trude's Dotfiles" "Install DWM (desktop)" "Install GitHub CLI" "Install Google Chrome" "Install AI" "Install Tailscale" "+Install Games")
main_menu=$(checkbox "Press SPACE to select and ENTER to continue." "${main_menu_opts[@]}")
log "$LOG_DEBUG" "Menu opts: $main_menu"
# Submenus
if [[ ${main_menu[@]} =~ 7 ]]; then # +Games
if [[ ${main_menu[@]} =~ 6 ]]; then # +Games
echo "Select games to install"
game_menu_opts=("Install MultiMC and Java 8,17,21." "Install Minecraft Bedrock" "Install Steam")
game_menu=$(checkbox "Press SPACE to select and ENTER to continue." "${game_menu_opts[@]}")
@@ -477,17 +477,7 @@ if [[ ${main_menu[@]} =~ 1 ]]; then # DWM
compile herbe
fi
if [[ ${main_menu[@]} =~ 2 ]]; then # GNOME
sudo nala install gnome-core
sudo rm -rf /etc/network/interfaces #Fix Wifi settings bug
# Load settings
if test -f ~/dotfiles/settings.dconf; then
dconf load / < ~/dotfiles/settings.dconf
fi
fi
if [[ ${main_menu[@]} =~ 3 ]]; then # Github CLI
if [[ ${main_menu[@]} =~ 2 ]]; then # Github CLI
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) &&
sudo mkdir -p -m 755 /etc/apt/keyrings &&
wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg >/dev/null &&
@@ -502,13 +492,13 @@ if [[ ${main_menu[@]} =~ 3 ]]; then # Github CLI
fi
fi
if [[ ${main_menu[@]} =~ 4 ]]; then # Chrome
if [[ ${main_menu[@]} =~ 3 ]]; then # Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo nala install ./google-chrome-stable_current_amd64.deb
rm ./google-chrome-stable_current_amd64.deb
fi
if [[ ${main_menu[@]} =~ 5 ]]; then # AI
if [[ ${main_menu[@]} =~ 4 ]]; then # AI
# Ollama - LLM Server
curl -fsSL https://ollama.com/install.sh | sh
@@ -523,7 +513,7 @@ if [[ ${main_menu[@]} =~ 5 ]]; then # AI
rm -rf fabric
fi
if [[ ${main_menu[@]} =~ 6 ]]; then # Tailscale
if [[ ${main_menu[@]} =~ 5 ]]; then # Tailscale
curl -fsSL https://tailscale.com/install.sh | sh
sudo systemctl enable tailscaled
sudo tailscale up