forked from eudaimon/pho-earth-adaptive
Revert change_theme.sh to upstream version
This commit is contained in:
parent
3f94e02525
commit
a972a371a2
|
@ -7,8 +7,8 @@ maxParams=1
|
|||
|
||||
usage() {
|
||||
|
||||
echo -e "Usage: $(basename "$0") [color_theme_to_activate.css | plasma]\n" >&2
|
||||
echo -e "Activates a color theme\nIf you don't specify one in the command, it will show all possible themes and let you select one\nChoose adaptive.css if you want the theme to follow your Plasma color scheme" >&2
|
||||
echo -e "Usage: $(basename "$0") [color_theme_to_activate.css]\n" >&2
|
||||
echo -e "Activates a color theme\nIf you don't specify one in the command, it will show all possible themes and let you select one'" >&2
|
||||
}
|
||||
|
||||
|
||||
|
@ -23,12 +23,14 @@ fi
|
|||
# if we have one parameter, let this be aour destination file
|
||||
if [ $# -eq 1 ]
|
||||
then
|
||||
destFile=$1
|
||||
destFile=$1
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if [ -z $destFile ]
|
||||
then
|
||||
echo -e "\nList of themes to choose from:\n"
|
||||
echo -e "\nList of themes to chose from:\n"
|
||||
ls $THEMES_DIR
|
||||
echo -e "\nPlease write the name of the theme to use (full name with extension): "
|
||||
read destFile
|
||||
|
@ -46,12 +48,4 @@ fi
|
|||
|
||||
ln -s $THEMES_DIR/$destFile $CSS_LINK_NAME
|
||||
|
||||
if [ $destFile=="adaptive.css" ]
|
||||
then
|
||||
if [[ ! -f "colors.css" ]]
|
||||
then
|
||||
ln -s $HOME/.config/gtk-3.0/colors.css colors.css
|
||||
fi
|
||||
fi
|
||||
|
||||
echo -e "\nSuccessfully created $CSS_LINK_NAME linking to $THEMES_DIR/$destFile\n\n"
|
||||
|
|
Loading…
Reference in New Issue