diff --git a/debian.sh b/debian.sh index d127b18..a5a58dc 100755 --- a/debian.sh +++ b/debian.sh @@ -78,7 +78,7 @@ cecho "Installing yummy packages" fg_cyan 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 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 sudo apt install extrepo -y sudo extrepo enable librewolf @@ -124,6 +124,7 @@ fi # xdg-mime default nemo.desktop inode/directory xdg-mime default pcmanfm.desktop inode/directory 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 sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/kitty 50 diff --git a/options/nerdfonts.sh b/options/nerdfonts.sh index 054c972..fa347c6 100755 --- a/options/nerdfonts.sh +++ b/options/nerdfonts.sh @@ -12,7 +12,7 @@ if ! command_exists unzip; then fi # Create directory for fonts if it doesn't exist -mkdir -p ~/.fonts +mkdir -p ~/.local/share/fonts/ # Array of font names fonts=( @@ -32,7 +32,7 @@ fonts=( # Function to check if font directory exists check_font_installed() { 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." return 0 # Font already installed else @@ -47,20 +47,20 @@ do echo "Skipping installation of font: $font" continue # Skip installation if font is already installed fi - + echo "Installing font: $font" wget -q --show-progress "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/$font.zip" -P /tmp if [ $? -ne 0 ]; then echo "Failed to download font: $font" continue fi - - unzip -q /tmp/$font.zip -d ~/.fonts/$font/ + + unzip -q /tmp/$font.zip -d ~/.local/share/fonts/$font/ if [ $? -ne 0 ]; then echo "Failed to extract font: $font" continue fi - + rm /tmp/$font.zip done