From 5f05ffa9f553c405ce4633e5f931148b3400b66a Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Sat, 8 Feb 2025 15:36:36 +0000 Subject: [PATCH] Update dconf settings and enhance install script for repository updates --- dconf-settings.ini | 2 +- install.sh | 29 +++++++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/dconf-settings.ini b/dconf-settings.ini index 88e88ad2..cc79343e 100644 --- a/dconf-settings.ini +++ b/dconf-settings.ini @@ -59,6 +59,6 @@ background-color='rgb(29,32,33)' cell-width-scale=1.0 font='JetBrainsMono Nerd Font 10' foreground-color='rgb(208,207,204)' -palette=['rgb(40,40,40)', 'rgb(204,36,29)', 'rgb(152,151,26)', 'rgb(215,153,33)', 'rgb(69,133,136)', 'rgb(177,98,134)', 'rgb(104,157,106)', 'rgb(168,153,132)', 'rgb(146,131,116)', 'rgb(251,73,52)', 'rgb(184,187,38)', 'rgb(250,189,47)', 'rgb(131,165,152)', 'rgb(210,133,154)', 'rgb(142,192,124)', 'rgb(235,219,178)'] +palette=['rgb(23,20,33)', 'rgb(192,28,40)', 'rgb(38,162,105)', 'rgb(162,115,76)', 'rgb(18,72,139)', 'rgb(163,71,186)', 'rgb(42,161,179)', 'rgb(208,207,204)', 'rgb(94,92,100)', 'rgb(246,97,81)', 'rgb(51,209,122)', 'rgb(233,173,12)', 'rgb(42,123,222)', 'rgb(192,97,203)', 'rgb(51,199,222)', 'rgb(255,255,255)'] use-system-font=false use-theme-colors=false diff --git a/install.sh b/install.sh index f73a394f..0a3cc738 100755 --- a/install.sh +++ b/install.sh @@ -17,8 +17,33 @@ echo "####################" echo -e "${CYAN}Running on: ${PURPLE}$OSTYPE${NC}" echo -echo -e "${YELLOW}[+] Updating distro...${NC}" -sudo apt update +# Update repositories +if [[ "$OSTYPE" == "darwin"* ]]; then + if command -v brew >/dev/null 2>&1; then + echo -e "${YELLOW}[+] Updating Homebrew repositories...${NC}" + brew update + else + echo -e "${YELLOW}[i] Brew is not installed. Skipping update on macOS.${NC}" + fi +else + if [ -f /etc/os-release ]; then + . /etc/os-release + if [[ "$ID_LIKE" == *debian* || "$ID" == "debian" || "$ID" == "ubuntu" ]]; then + echo -e "${YELLOW}[+] Updating APT repositories...${NC}" + sudo apt update + elif [[ "$ID" == "fedora" ]]; then + echo -e "${YELLOW}[+] Updating DNF repositories...${NC}" + sudo dnf check-update + elif [[ "$ID" == "arch" ]]; then + echo -e "${YELLOW}[+] Updating PACMAN repositories...${NC}" + sudo pacman -Sy + else + echo -e "${RED}[E] Distribution not recognized for repository update.${NC}" + fi + else + echo -e "${RED}[E] /etc/os-release not found. Skipping repository update.${NC}" + fi +fi # Check if git is installed if ! git --version &>/dev/null; then