From a84bf161174fcd0442768f4fc2af591e1257b848 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sat, 26 Dec 2020 14:06:23 -0500 Subject: [PATCH] change size, theme and transparency locally Using global search/replace is dangerous and could lead to unwanted changes. Such practice should be avoided. This patch surgically makes the change to the very lines where the corresponding values should be updated. --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index e854035..50e18e2 100755 --- a/install.sh +++ b/install.sh @@ -400,7 +400,7 @@ parse_sass() { change_size() { cd ${SRC_DIR}/sass/gtk cp -an _applications.scss _applications.scss.bak - sed -i "s/200px/$sidebar_size/g" _applications.scss + sed -i "/\$nautilus_sidebar_size/s/200px/${sidebar_size}/" _applications.scss prompt -w "Change nautilus sidebar size ..." } @@ -409,7 +409,7 @@ change_theme_color() { cd ${SRC_DIR}/sass cp -an _colors.scss _colors.scss.bak - sed -i "s/#0860f2/$theme_color/g" _colors.scss + sed -i "/\$selected_bg_color/s/#0860f2/${theme_color}/" _colors.scss cd ${SRC_DIR}/assets/gtk-3.0 cp -an thumbnail.svg thumbnail.svg.bak @@ -506,7 +506,7 @@ restore_assets_files() { change_transparency() { cd ${SRC_DIR}/sass cp -an _colors.scss _colors.scss.bak - sed -i "s/0.16/$panel_trans/g" _colors.scss + sed -i "/\$panel_opacity/s/0.16/${panel_trans}/" _colors.scss prompt -w "Change panel transparency ..." }