情况:
Mint-Y 是一项正在进行中的工作,在 Linux Mint 18 发布后,它将根据您的反馈继续进行更改和改进。
来源:https://www.linuxmint.com/rel_sarah_cinnamon_whatsnew.php
客观的:
编写脚本来自动执行更新过程。
编辑1:
由于版本以打包形式稳定发布,显然没有必要使用此脚本。包名称是:
mint-y-theme
mint-y-icons
答案1
只需将用户名更改为您的用户名即可。
#!/bin/bash
# https://github.com/linuxmint/mint-y-theme/
# https://github.com/linuxmint/mint-y-icons/
red='\033[1;31m'
green='\033[1;32m'
nocolor='\033[0m'
mkdir -p ~/Downloads/themes-mint/
rm -r -f ~/Downloads/themes-mint/mint-y-theme-master/
rm -r -f ~/Downloads/themes-mint/mint-y-icons-master/
mv ~/Downloads/themes-mint/themes.zip ~/Downloads/themes-mint/themesOLD.zip
mv ~/Downloads/themes-mint/icons.zip ~/Downloads/themes-mint/iconsOLD.zip
wget -q --show-progress -O ~/Downloads/themes-mint/themes.zip https://github.com/linuxmint/mint-y-theme/archive/master.zip
wget -q --show-progress -O ~/Downloads/themes-mint/icons.zip https://github.com/linuxmint/mint-y-icons/archive/master.zip
if ! diff -q ~/Downloads/themes-mint/themes.zip ~/Downloads/themes-mint/themesOLD.zip > /dev/null 2>&1;
then
unzip -qq -o ~/Downloads/themes-mint/themes.zip -d ~/Downloads/themes-mint/
cp -r ~/Downloads/themes-mint/mint-y-theme-master/usr/share/themes/* ~/.themes/
sudo cp -r /home/vlastimil/Downloads/themes-mint/mint-y-theme-master/usr/share/themes/* /usr/share/themes/
echo -e "Themes ${red}were${nocolor} changed"
else
echo -e "Themes ${green}not${nocolor} changed"
fi
if ! diff -q ~/Downloads/themes-mint/icons.zip ~/Downloads/themes-mint/iconsOLD.zip > /dev/null 2>&1;
then
unzip -qq -o ~/Downloads/themes-mint/icons.zip -d ~/Downloads/themes-mint/
cp -r ~/Downloads/themes-mint/mint-y-icons-master/usr/share/icons/* ~/.icons/
sudo cp -r /home/vlastimil/Downloads/themes-mint/mint-y-icons-master/usr/share/icons/* /usr/share/icons/
echo -e "Icons ${red}were${nocolor} changed"
else
echo -e "Icons ${green}not${nocolor} changed"
fi