From 35ccf90c4c20e1bde9c52324006f87c9a344b169 Mon Sep 17 00:00:00 2001 From: Vince Date: Sat, 10 Apr 2021 15:23:57 +0800 Subject: [PATCH] update --- README.md | 8 ++++---- src/{ => assets}/render-all-assets.sh | 16 +++++++--------- 2 files changed, 11 insertions(+), 13 deletions(-) rename src/{ => assets}/render-all-assets.sh (67%) diff --git a/README.md b/README.md index e1cb87d..9cb1c12 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Don't worry, WhiteSur installer already provides all of those dependencies. ## Quick install ### Use the stable package -You can choose the compressed file (compiled in the stable version) and unzip it to the theme folder `~/.themes` under the user folder. +You can choose the compressed file [compiled in stable version](stable-release) and unzip it to the theme folder `~/.themes` under the user folder. ### compile from source You can run `./install.sh` to install the default WhiteSur GTK theme pack which includes @@ -137,7 +137,7 @@ Example: `sudo ./tweaks.sh -g` #### Change the background Parameter: `--background` `-b` -Example: +Example: ```bash sudo ./tweaks.sh -g -b "my picture.jpg" # use the custom background @@ -148,7 +148,7 @@ sudo ./tweaks.sh -g -b blank # make it blank #### Make the background darker Parameter: `--darken` `-D` -Example: +Example: ```bash sudo ./tweaks.sh -g -D # darken the default background @@ -158,7 +158,7 @@ sudo ./tweaks.sh -g -D -b "wallpapers/snow.jpg" # darken the custom background #### Don't blur the background Parameter: `--no-blur` `-n` -Example: +Example: ```bash sudo ./tweaks.sh -g -n # don't blur the default background diff --git a/src/render-all-assets.sh b/src/assets/render-all-assets.sh similarity index 67% rename from src/render-all-assets.sh rename to src/assets/render-all-assets.sh index ecfa71e..bb405dd 100755 --- a/src/render-all-assets.sh +++ b/src/assets/render-all-assets.sh @@ -3,8 +3,6 @@ INKSCAPE="/usr/bin/inkscape" OPTIPNG="/usr/bin/optipng" -ASRC_DIR=assets - # check command avalibility has_command() { "$1" -v $1 > /dev/null 2>&1 @@ -26,20 +24,20 @@ if [ ! "$(which inkscape 2> /dev/null)" ]; then fi echo Rendering gtk-2.0 assets -cd $ASRC_DIR/gtk-2.0 && ./render-assets.sh +cd gtk-2.0 && ./render-assets.sh echo Rendering gtk-3.0 assets -cd $ASRC_DIR/gtk-3.0 && ./render-thumbnails.sh -cd $ASRC_DIR/gtk-3.0/common-assets && ./render-assets.sh -cd $ASRC_DIR/gtk-3.0/windows-assets && ./render-assets.sh && ./render-alt-assets.sh +cd gtk-3.0 && ./render-thumbnails.sh +cd gtk-3.0/common-assets && ./render-assets.sh +cd gtk-3.0/windows-assets && ./render-assets.sh && ./render-alt-assets.sh echo Rendering cinnamon thumbnails -cd $ASRC_DIR/cinnamon && ./render-thumbnails.sh +cd cinnamon && ./render-thumbnails.sh echo Rendering metacity-1 assets -cd $ASRC_DIR/metacity-1 && ./render-assets.sh +cd metacity-1 && ./render-assets.sh echo Rendering xfwm4 assets -cd $ASRC_DIR/xfwm4 && ./render-assets.sh +cd xfwm4 && ./render-assets.sh exit 0