Update dconf settings and enhance install script for repository updates

This commit is contained in:
2025-02-08 15:36:36 +00:00
parent a4793eccb8
commit 0bda31bdd2
2 changed files with 28 additions and 3 deletions

View File

@@ -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

View File

@@ -17,8 +17,33 @@ echo "####################"
echo -e "${CYAN}Running on: ${PURPLE}$OSTYPE${NC}"
echo
echo -e "${YELLOW}[+] Updating distro...${NC}"
# 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