shell/install/papirus

28 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-07-05 02:50:54 +00:00
#!/bin/bash
##makedesc: Install papirus-icon-theme (latest)
2023-04-14 04:06:40 +00:00
source `dirname $0`/../helpers || exit 255
2022-07-05 02:50:54 +00:00
2023-04-14 04:06:40 +00:00
title
2022-07-05 02:50:54 +00:00
2023-04-14 04:06:40 +00:00
mkdir -p "$HOME/install/papirus-icon-theme" "$HOME/.local/share/icons/"
2022-07-05 02:50:54 +00:00
if installed git; then
2023-04-14 04:06:40 +00:00
clone_quick https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git "$HOME/install/"
2022-07-05 02:50:54 +00:00
else
2023-04-14 04:06:40 +00:00
download 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"
2022-07-05 02:50:54 +00:00
fi
2023-04-14 04:06:40 +00:00
symlink "$HOME/install/papirus-icon-theme/Papirus" "$HOME/.local/share/icons/Papirus" && \
symlink "$HOME/install/papirus-icon-theme/Papirus-Dark" "$HOME/.local/share/icons/Papirus-Dark" && \
symlink "$HOME/install/papirus-icon-theme/Papirus-Light" "$HOME/.local/share/icons/Papirus-Light"
[ $? = 0 ] && {
echo
success "Papirus icons installed!"
info "You can find them in $HOME/.local/share/icons/"
echo
}
2022-07-05 02:50:54 +00:00