Skip to content

Instantly share code, notes, and snippets.

@bobby1030
Created July 24, 2017 11:08
Show Gist options
  • Save bobby1030/1a51a4effaddf9d7eff9d1f152c71189 to your computer and use it in GitHub Desktop.
Save bobby1030/1a51a4effaddf9d7eff9d1f152c71189 to your computer and use it in GitHub Desktop.
Adapta GTK Theme building script
#!/bin/bash
WORKING_USER=$(who am i | awk '{print $1}')
if [ `id -u` = 0 ] ; then
sudo -u $WORKING_USER ./autogen.sh --enable-parallel --disable-cinnamon --disable-flashback --disable-unity --disable-xfce --disable-mate --disable-openbox
sudo -u $WORKING_USER make
rm -rf /usr/share/themes/{Adapta,Adapta-Eta,Adapta-Nokto,Adapta-Nokto-Eta}
rm -rf ~/.local/share/themes/{Adapta,Adapta-Eta,Adapta-Nokto,Adapta-Nokto-Eta}
rm -rf ~/.themes/{Adapta,Adapta-Eta,Adapta-Nokto,Adapta-Nokto-Eta}
make install
else
echo "You need to run this script as superuser."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment