shell/install/papirus
2023-04-14 12:06:40 +08:00

35 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
##makedesc: Install papirus-icon-theme (latest)
echo
echo "==============================================="
echo "Installing papirus-icon-theme (latest)..."
echo "==============================================="
echo
installed() {
command -v "$1" >/dev/null 2>&1
}
if installed git; then
mkdir -p "$HOME/install/"
git clone https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git "$HOME/install/papirus-icon-theme" --depth=1 --single-branch
else
! installed wget && sudo apt install -y wget
mkdir -p "$HOME/install/papirus-icon-theme"
wget https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/archive/refs/heads/master.zip -O "$HOME/install/papirus-icon-theme.zip"
unzip -oq "$HOME/install/papirus-icon-theme.zip" -d "$HOME/install/papirus-icon-theme"
rm -f "$HOME/install/papirus-icon-theme.zip"
fi
mkdir -p "$HOME/.local/share/icons/"
ln -sf "$HOME/install/papirus-icon-theme/Papirus" "$HOME/.local/share/icons/Papirus"
ln -sf "$HOME/install/papirus-icon-theme/Papirus-Dark" "$HOME/.local/share/icons/Papirus-Dark"
ln -sf "$HOME/install/papirus-icon-theme/Papirus-Light" "$HOME/.local/share/icons/Papirus-Light"
echo
echo "Finish! Don't forget to change current icon theme."
echo "You can find them here:"
echo -e "\t$HOME/.local/share/icons/"
echo