#!/bin/sh # first download the greybird theme if wget https://github.com/shimmerproject/Greybird/tarball/master -O /tmp/greybird.tgz ; then # get name of theme folder GREYBIRD="$(tar tfz /tmp/greybird.tgz | head -1)" cd /usr/share/themes tar xfz /tmp/greybird.tgz if [ -d "$GREYBIRD" ]; then mv "$GREYBIRD" Greybird else echo "Error mv'ing $GREYBIRD to Greybird" exit 1 fi cd - # set Greybird as xfce4 theme XFCE4_CONF="/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml" sed -ibak 's,,' $XFCE4_CONF sed -ibak 's,,' $XFCE4_CONF # set Greybird as xfwm4 theme XFWM4_CONF="/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml" [ -e "$XFWM4_CONF" ] && mv "$XFWM4_CONF" "${XFWM4_CONF}.bak" cat > "$XFWM4_CONF" << EOF EOF else echo "Failed to download 'https://github.com/shimmerproject/Greybird/tarball/master' to '/tmp/greybird.tgz'" exit 1 fi