my-env/install/papirus

35 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-07-05 02:50:54 +00:00
#!/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
2022-09-29 05:22:04 +00:00
mkdir -p "${HOME}/install/"
git clone https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git --depth=1 "${HOME}/install/papirus-icon-theme"
2022-07-05 02:50:54 +00:00
else
! installed wget && sudo apt install -y wget
2022-09-29 05:22:04 +00:00
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 "${HOME}/install/papirus-icon-theme.zip" -d "${HOME}/install/papirus-icon-theme"
2022-12-10 13:58:53 +00:00
rm -f "${HOME}/install/papirus-icon-theme.zip"
2022-07-05 02:50:54 +00:00
fi
2022-09-29 05:22:04 +00:00
mkdir -p "${HOME}/.local/share/icons/"
2022-10-01 04:09:57 +00:00
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"
2022-07-05 02:50:54 +00:00
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