Como atualizar o tema e os ícones do Mint-Y usando um script

0

Situação:

Mint-Y is a work in progress and it will continue to change and to improve, with your feedback, after the Linux Mint 18 release.

Fonte: link

Objetivo:
Para escrever um script para automatizar o processo de atualização.

EDIT1:
Como os lançamentos vêm em forma de pacote, obviamente não há necessidade de usar este script. Os nomes dos pacotes são:

mint-y-theme
mint-y-icons
    
por Vlastimil 24.07.2016 / 11:15

1 resposta

0

Basta alterar o nome de usuário para o seu.

#!/bin/bash


# https://github.com/linuxmint/mint-y-theme/
# https://github.com/linuxmint/mint-y-icons/


red='3[1;31m'
green='3[1;32m'
nocolor='3[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
    
por 24.07.2016 / 11:15