This commit is contained in:
billy 2025-08-20 07:32:16 -04:00
parent cdc8c912fd
commit 9c3a4eb77c
2 changed files with 8 additions and 7 deletions

View File

@ -78,7 +78,7 @@ cecho "Installing yummy packages" fg_cyan
if $is_server; then if $is_server; then
sudo apt install vim neovim git cifs-utils nfs-common ripgrep stow virtualenv wget zip unzip kitty python3-pip ncdu htop python3-venv curl sudo apt install vim neovim git cifs-utils nfs-common ripgrep stow virtualenv wget zip unzip kitty python3-pip ncdu htop python3-venv curl
else else
sudo apt install vim git cifs-utils nfs-common ripgrep stow virtualenv wget zip unzip kitty python3-pip ncdu htop libfuse-dev nemo python3-venv curl irssi qpwgraph steam-installer protontricks sudo apt install vim git cifs-utils nfs-common ripgrep stow virtualenv wget zip unzip kitty python3-pip ncdu htop libfuse-dev nemo python3-venv curl irssi qpwgraph steam-installer protontricks zathura
# librewolf # librewolf
sudo apt install extrepo -y sudo apt install extrepo -y
sudo extrepo enable librewolf sudo extrepo enable librewolf
@ -124,6 +124,7 @@ fi
# xdg-mime default nemo.desktop inode/directory # xdg-mime default nemo.desktop inode/directory
xdg-mime default pcmanfm.desktop inode/directory xdg-mime default pcmanfm.desktop inode/directory
xdg-mime default nvim.desktop text/plain xdg-mime default nvim.desktop text/plain
xdg-mime default org.pwmt.zathura.desktop application/pdf
# This command installs kitty as an option for the default terminal emulator within the alternatives system, assigning it a priority of 50 # This command installs kitty as an option for the default terminal emulator within the alternatives system, assigning it a priority of 50
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/kitty 50 sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/kitty 50

View File

@ -12,7 +12,7 @@ if ! command_exists unzip; then
fi fi
# Create directory for fonts if it doesn't exist # Create directory for fonts if it doesn't exist
mkdir -p ~/.fonts mkdir -p ~/.local/share/fonts/
# Array of font names # Array of font names
fonts=( fonts=(
@ -32,7 +32,7 @@ fonts=(
# Function to check if font directory exists # Function to check if font directory exists
check_font_installed() { check_font_installed() {
font_name=$1 font_name=$1
if [ -d ~/.fonts/$font_name ]; then if [ -d ~/.local/share/fonts/$font_name ]; then
echo "Font $font_name is already installed. Skipping." echo "Font $font_name is already installed. Skipping."
return 0 # Font already installed return 0 # Font already installed
else else
@ -47,20 +47,20 @@ do
echo "Skipping installation of font: $font" echo "Skipping installation of font: $font"
continue # Skip installation if font is already installed continue # Skip installation if font is already installed
fi fi
echo "Installing font: $font" echo "Installing font: $font"
wget -q --show-progress "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/$font.zip" -P /tmp wget -q --show-progress "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/$font.zip" -P /tmp
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to download font: $font" echo "Failed to download font: $font"
continue continue
fi fi
unzip -q /tmp/$font.zip -d ~/.fonts/$font/ unzip -q /tmp/$font.zip -d ~/.local/share/fonts/$font/
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to extract font: $font" echo "Failed to extract font: $font"
continue continue
fi fi
rm /tmp/$font.zip rm /tmp/$font.zip
done done