Updated install.sh

This commit is contained in:
2024-01-03 17:56:12 +00:00
parent c23424b1a4
commit 20397fba61

View File

@@ -13,45 +13,68 @@ function ask() {
} }
# Upgrade # Upgrade
sudo pacman -Syu echo "Updating packages..."
sudo pacman -S git kgx -e "sudo pacman -Syu && sudo pacman -S git"
read -p "Press enter to continue."
# Mirrors
if ask "Choose best mirrors (LONG TIME)?"; then
kgx -e "sudo pacman -S reflector && sudo reflector --sort rate -p https --save /etc/pacman.d/mirrorlist --verbose"
read -p "Press enter to continue."
fi
# Install paru
if ask "Install paru (AUR)?"; then
paru=$(pacman -Q paru)
if [[ -n "$paru" ]]; then
echo -e "\e[32m[I] Paru is already installed.\e[0m"
else
kgx -e "sudo pacman -S --needed base-devel && \
git clone https://aur.archlinux.org/paru.git && \
cd paru && \
makepkg -si && \
cd .. && \
rm -rf paru"
fi
fi
# Enable bluetooth support # Enable bluetooth support
if ask "Enable bluetooth?"; then if ask "Enable bluetooth?"; then
sudo pacman -S bluez bluez-utils kgx -e "sudo pacman -S bluez bluez-utils && \
sudo systemctl start bluetooth.service sudo systemctl start bluetooth.service; \
sudo systemctl enable bluetooth.service sudo systemctl enable bluetooth.service"
fi fi
# Enable printer support # Enable printer support
if ask "Enable CUPS (printer)?"; then if ask "Enable CUPS (printer)?"; then
sudo pacman -S cups kgx -e "sudo pacman -S cups && \
sudo systemctl start cups sudo systemctl start cups; \
sudo systemctl start cups.service sudo systemctl start cups.service; \
sudo systemctl enable cups sudo systemctl enable cups; \
sudo systemctl enable cups.service sudo systemctl enable cups.service"
fi fi
# Install Tela Icons # Install Tela Icons
git clone https://github.com/vinceliuice/Tela-circle-icon-theme.git echo "Installing Tela Icon Theme..."
cd Tela-circle-icon-theme kgx -e "git clone https://github.com/vinceliuice/Tela-circle-icon-theme.git && \
./install.sh cd Tela-circle-icon-theme && \
cd .. ./install.sh ; \
rm -rf Tela-circle-icon-theme cd .. && \
gsettings set org.gnome.desktop.interface icon-theme 'Tela-circle' rm -rf Tela-circle-icon-theme; \
gsettings set org.gnome.desktop.interface icon-theme 'Tela-circle'"
# Install Nerd Font # Install Nerd Font
sudo pacman -S ttf-jetbrains-mono-nerd echo "Installing JetBrains font..."
kgx -e "sudo pacman -S ttf-jetbrains-mono-nerd"
# Enable minimize button # Enable minimize button
echo "Enabling minimize button..."
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,close" gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,close"
# Enable flatpak support # Enable flatpak support
if ask "Enable flatpak?"; then if ask "Enable flatpak?"; then
sudo pacman -S flatpak kgx -e "sudo pacman -S flatpak && \
flatpak install flatseal flatpak install flatseal; \
sudo flatpak override --filesystem=$HOME/.themes; \
# Fix theme for flatpak sudo flatpak override --filesystem=$HOME/.icons"
sudo flatpak override --filesystem=$HOME/.themes
sudo flatpak override --filesystem=$HOME/.icons
fi fi