v3-revamp-fedora
This commit is contained in:
@@ -42,14 +42,14 @@ is_package_installed() { rpm -q "$@" &>/dev/null; }
|
||||
#------------------------------------------
|
||||
# 1. Base Dependencies & Repos
|
||||
#------------------------------------------
|
||||
color_cyan; echo "Installing base dependencies..."; color_reset
|
||||
color_cyan; echo "Installing base dependencies..."
|
||||
# dnf-plugins-core is required for COPR
|
||||
install_packages dnf-plugins-core wget
|
||||
|
||||
#------------------------------------------
|
||||
# 2. Main Package Installation
|
||||
#------------------------------------------
|
||||
color_yellow; echo "Installing essential tools..."; color_reset
|
||||
color_yellow; echo "Installing essential tools..."
|
||||
|
||||
# 1. Install universal base packages (minus the polkit agent)
|
||||
install_packages \
|
||||
@@ -64,7 +64,7 @@ install_packages \
|
||||
python3-pylint qt6-qtsvg qt6-qtvirtualkeyboard qt6-qtmultimedia
|
||||
|
||||
# 2. Inject the correct Polkit agent & PeaZip based on environment
|
||||
color_cyan; echo "Tailoring toolkits for $DE / $TWM..."; color_reset
|
||||
color_cyan; echo "Tailoring toolkits for $DE / $TWM..."
|
||||
if [[ "$DE" == "plasma" || "$TWM" == "hyprland" ]]; then
|
||||
install_packages polkit-kde-agent-1 peazip-common peazip-qt6
|
||||
else
|
||||
@@ -73,7 +73,7 @@ else
|
||||
fi
|
||||
|
||||
if ! command -v starship &> /dev/null; then
|
||||
color_cyan; echo "Installing Starship shell prompt..."; color_reset
|
||||
color_cyan; echo "Installing Starship shell prompt..."
|
||||
curl -sS https://starship.rs/install.sh | sh -s -- -y
|
||||
fi
|
||||
|
||||
@@ -83,16 +83,16 @@ fi
|
||||
FONT_DIR="$HOME/.local/share/fonts"
|
||||
DOWNLOAD_NAME="RobotoMono"
|
||||
if ! find "$FONT_DIR" -name "*RobotoMonoNerdFont*" | grep -q .; then
|
||||
color_yellow; echo "Installing ${DOWNLOAD_NAME} Nerd Font..."; color_reset
|
||||
color_yellow; echo "Installing ${DOWNLOAD_NAME} Nerd Font..."
|
||||
mkdir -p "$FONT_DIR"
|
||||
FONT_ZIP="/tmp/${DOWNLOAD_NAME}.zip"
|
||||
curl -L "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/${DOWNLOAD_NAME}.zip" -o "$FONT_ZIP"
|
||||
unzip -oq "$FONT_ZIP" -d "$FONT_DIR"
|
||||
fc-cache -fv
|
||||
rm "$FONT_ZIP"
|
||||
color_green; echo "${DOWNLOAD_NAME} installed."; color_reset
|
||||
color_green; echo "${DOWNLOAD_NAME} installed."
|
||||
else
|
||||
color_yellow; echo "RobotoMono Nerd Font already installed."; color_reset
|
||||
color_yellow; echo "RobotoMono Nerd Font already installed."
|
||||
fi
|
||||
|
||||
#------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user