diff --git a/generate.py b/generate.py index 1cff4c6..fe32d99 100755 --- a/generate.py +++ b/generate.py @@ -119,7 +119,7 @@ def gen_style(file_dict): if theme == "pywal": theme = home + '/.cache/wal/colors.css' else: - theme = './themes/' + theme + '.css' + theme = repo_dir + '/themes/' + theme + '.css' copyfile(theme, home + '/.cache/StartTree/styles/colors.css') diff --git a/init.sh b/init.sh index 3793680..ed8b582 100755 --- a/init.sh +++ b/init.sh @@ -62,4 +62,7 @@ ln -s $FILEPATH $HOME/.local/bin/starttree.py echo "generate.py has been linked to $HOME/.local/bin/" echo "Make sure this directory is in your \$PATH" +FILEPATH=$(readlink -f "docker/data/default.conf") +ln -s $FILEPATH $HOME/.cache/StartTree/default.conf + sed -i "/# replace line/{n;s@.*@repo_dir = \"$(pwd)\"@}" generate.py