Lines 1-6
Link Here
|
1 |
--- install.sh.orig 2021-09-22 16:18:31 UTC |
1 |
--- install.sh.orig 2021-12-17 21:24:51 UTC |
2 |
+++ install.sh |
2 |
+++ install.sh |
3 |
@@ -403,13 +403,13 @@ theme_colors() { |
3 |
@@ -84,13 +84,13 @@ install() { |
|
|
4 |
theme_tweaks |
5 |
|
6 |
mkdir -p ${THEME_DIR} |
7 |
- cp -rf ${SRC_DIR}/COPYING ${THEME_DIR} |
8 |
- cp -rf ${SRC_DIR}/AUTHORS ${THEME_DIR} |
9 |
+ gcp -rf ${SRC_DIR}/COPYING ${THEME_DIR} |
10 |
+ gcp -rf ${SRC_DIR}/AUTHORS ${THEME_DIR} |
11 |
|
12 |
echo "[Desktop Entry]" >> ${THEME_DIR}/index.theme |
13 |
echo "Type=X-GNOME-Metatheme" >> ${THEME_DIR}/index.theme |
14 |
echo "Name=${name}${theme}${color}${size}" >> ${THEME_DIR}/index.theme |
15 |
- echo "Comment=An Flat Gtk+ theme based on Material Design" >> ${THEME_DIR}/index.theme |
16 |
+ echo "Comment=An Flat Gtk+ theme baggsed on Material Design" >> ${THEME_DIR}/index.theme |
17 |
echo "Encoding=UTF-8" >> ${THEME_DIR}/index.theme |
18 |
echo "" >> ${THEME_DIR}/index.theme |
19 |
echo "[X-GNOME-Metatheme]" >> ${THEME_DIR}/index.theme |
20 |
@@ -101,10 +101,10 @@ install() { |
21 |
echo "ButtonLayout=menu:minimize,maximize,close" >> ${THEME_DIR}/index.theme |
22 |
|
23 |
mkdir -p ${THEME_DIR}/gnome-shell |
24 |
- cp -rf ${SRC_DIR}/src/gnome-shell/{*.svg,extensions,noise-texture.png,pad-osd.css} ${THEME_DIR}/gnome-shell |
25 |
- cp -rf ${SRC_DIR}/src/gnome-shell/gnome-shell-theme.gresource.xml ${THEME_DIR}/gnome-shell |
26 |
- cp -rf ${SRC_DIR}/src/gnome-shell/assets${ELSE_DARK} ${THEME_DIR}/gnome-shell/assets |
27 |
- cp -rf ${SRC_DIR}/src/gnome-shell/common-assets/*.svg ${THEME_DIR}/gnome-shell/assets |
28 |
+ gcp -rf ${SRC_DIR}/src/gnome-shell/{*.svg,extensions,noise-texture.png,pad-osd.css} ${THEME_DIR}/gnome-shell |
29 |
+ gcp -rf ${SRC_DIR}/src/gnome-shell/gnome-shell-theme.gresource.xml ${THEME_DIR}/gnome-shell |
30 |
+ gcp -rf ${SRC_DIR}/src/gnome-shell/assets${ELSE_DARK} ${THEME_DIR}/gnome-shell/assets |
31 |
+ gcp -rf ${SRC_DIR}/src/gnome-shell/common-assets/*.svg ${THEME_DIR}/gnome-shell/assets |
32 |
|
33 |
if [[ "$tweaks" == 'true' ]]; then |
34 |
if [[ "${GS_VERSION:-}" == 'new' ]]; then |
35 |
@@ -114,76 +114,76 @@ install() { |
36 |
fi |
37 |
else |
38 |
if [[ "${GS_VERSION:-}" == 'new' ]]; then |
39 |
- cp -rf ${SRC_DIR}/src/gnome-shell/shell-40-0/gnome-shell${color}${size}.css ${THEME_DIR}/gnome-shell/gnome-shell.css |
40 |
+ gcp -rf ${SRC_DIR}/src/gnome-shell/shell-40-0/gnome-shell${color}${size}.css ${THEME_DIR}/gnome-shell/gnome-shell.css |
41 |
else |
42 |
- cp -rf ${SRC_DIR}/src/gnome-shell/shell-3-36/gnome-shell${color}${size}.css ${THEME_DIR}/gnome-shell/gnome-shell.css |
43 |
+ gcp -rf ${SRC_DIR}/src/gnome-shell/shell-3-36/gnome-shell${color}${size}.css ${THEME_DIR}/gnome-shell/gnome-shell.css |
44 |
fi |
45 |
fi |
46 |
|
47 |
mkdir -p ${THEME_DIR}/gtk-2.0 |
48 |
- cp -rf ${SRC_DIR}/src/gtk-2.0/{apps.rc,hacks.rc,panel.rc} ${THEME_DIR}/gtk-2.0 |
49 |
- cp -rf ${SRC_DIR}/src/gtk-2.0/main.rc${theme} ${THEME_DIR}/gtk-2.0/main.rc |
50 |
- cp -rf ${SRC_DIR}/src/gtk-2.0/assets${ELSE_DARK} ${THEME_DIR}/gtk-2.0/assets |
51 |
+ gcp -rf ${SRC_DIR}/src/gtk-2.0/{apps.rc,hacks.rc,panel.rc} ${THEME_DIR}/gtk-2.0 |
52 |
+ gcp -rf ${SRC_DIR}/src/gtk-2.0/main.rc${theme} ${THEME_DIR}/gtk-2.0/main.rc |
53 |
+ gcp -rf ${SRC_DIR}/src/gtk-2.0/assets${ELSE_DARK} ${THEME_DIR}/gtk-2.0/assets |
54 |
[[ ${theme} != '' && ${color} == '-dark' ]] && \ |
55 |
- cp -rf ${SRC_DIR}/src/gtk-2.0/assets-theme-dark/*.png ${THEME_DIR}/gtk-2.0/assets |
56 |
- cp -rf ${SRC_DIR}/src/gtk-2.0/gtkrc${theme}${color} ${THEME_DIR}/gtk-2.0/gtkrc |
57 |
+ gcp -rf ${SRC_DIR}/src/gtk-2.0/assets-theme-dark/*.png ${THEME_DIR}/gtk-2.0/assets |
58 |
+ gcp -rf ${SRC_DIR}/src/gtk-2.0/gtkrc${theme}${color} ${THEME_DIR}/gtk-2.0/gtkrc |
59 |
|
60 |
mkdir -p ${THEME_DIR}/gtk-3.0 |
61 |
- cp -rf ${SRC_DIR}/src/gtk/assets ${THEME_DIR}/gtk-3.0 |
62 |
- cp -rf ${SRC_DIR}/src/gtk/common-assets ${THEME_DIR}/gtk-3.0 |
63 |
+ gcp -rf ${SRC_DIR}/src/gtk/assets ${THEME_DIR}/gtk-3.0 |
64 |
+ gcp -rf ${SRC_DIR}/src/gtk/common-assets ${THEME_DIR}/gtk-3.0 |
65 |
|
66 |
if [[ "$tweaks" == 'true' ]]; then |
67 |
sassc $SASSC_OPT ${SRC_DIR}/src/gtk/3.0/gtk${color}${size}.scss ${THEME_DIR}/gtk-3.0/gtk.css |
68 |
[[ ${color} != '-dark' ]] && \ |
69 |
sassc $SASSC_OPT ${SRC_DIR}/src/gtk/3.0/gtk-dark${size}.scss ${THEME_DIR}/gtk-3.0/gtk-dark.css |
70 |
else |
71 |
- cp -rf ${SRC_DIR}/src/gtk/3.0/gtk${color}${size}.css ${THEME_DIR}/gtk-3.0/gtk.css |
72 |
+ gcp -rf ${SRC_DIR}/src/gtk/3.0/gtk${color}${size}.css ${THEME_DIR}/gtk-3.0/gtk.css |
73 |
[[ ${color} != '-dark' ]] && \ |
74 |
- cp -rf ${SRC_DIR}/src/gtk/3.0/gtk-dark${size}.css ${THEME_DIR}/gtk-3.0/gtk-dark.css |
75 |
+ gcp -rf ${SRC_DIR}/src/gtk/3.0/gtk-dark${size}.css ${THEME_DIR}/gtk-3.0/gtk-dark.css |
76 |
fi |
77 |
|
78 |
mkdir -p ${THEME_DIR}/gtk-4.0 |
79 |
- cp -rf ${SRC_DIR}/src/gtk/assets ${THEME_DIR}/gtk-4.0 |
80 |
- cp -rf ${SRC_DIR}/src/gtk/common-assets ${THEME_DIR}/gtk-4.0 |
81 |
+ gcp -rf ${SRC_DIR}/src/gtk/assets ${THEME_DIR}/gtk-4.0 |
82 |
+ gcp -rf ${SRC_DIR}/src/gtk/common-assets ${THEME_DIR}/gtk-4.0 |
83 |
|
84 |
if [[ "$tweaks" == 'true' ]]; then |
85 |
sassc $SASSC_OPT ${SRC_DIR}/src/gtk/4.0/gtk${color}${size}.scss ${THEME_DIR}/gtk-4.0/gtk.css |
86 |
[[ ${color} != '-dark' ]] && \ |
87 |
sassc $SASSC_OPT ${SRC_DIR}/src/gtk/4.0/gtk-dark${size}.scss ${THEME_DIR}/gtk-4.0/gtk-dark.css |
88 |
else |
89 |
- cp -rf ${SRC_DIR}/src/gtk/4.0/gtk${color}${size}.css ${THEME_DIR}/gtk-4.0/gtk.css |
90 |
+ gcp -rf ${SRC_DIR}/src/gtk/4.0/gtk${color}${size}.css ${THEME_DIR}/gtk-4.0/gtk.css |
91 |
[[ ${color} != '-dark' ]] && \ |
92 |
- cp -rf ${SRC_DIR}/src/gtk/4.0/gtk-dark${size}.css ${THEME_DIR}/gtk-4.0/gtk-dark.css |
93 |
+ gcp -rf ${SRC_DIR}/src/gtk/4.0/gtk-dark${size}.css ${THEME_DIR}/gtk-4.0/gtk-dark.css |
94 |
fi |
95 |
|
96 |
mkdir -p ${THEME_DIR}/metacity-1 |
97 |
- cp -rf ${SRC_DIR}/src/metacity-1/assets/*.png ${THEME_DIR}/metacity-1 |
98 |
- cp -rf ${SRC_DIR}/src/metacity-1/metacity-theme-1${color}.xml ${THEME_DIR}/metacity-1/metacity-theme-1.xml |
99 |
+ gcp -rf ${SRC_DIR}/src/metacity-1/assets/*.png ${THEME_DIR}/metacity-1 |
100 |
+ gcp -rf ${SRC_DIR}/src/metacity-1/metacity-theme-1${color}.xml ${THEME_DIR}/metacity-1/metacity-theme-1.xml |
101 |
cd ${THEME_DIR}/metacity-1 |
102 |
ln -s metacity-theme-1.xml metacity-theme-2.xml |
103 |
ln -s metacity-theme-1.xml metacity-theme-3.xml |
104 |
|
105 |
mkdir -p ${THEME_DIR}/unity |
106 |
- cp -rf ${SRC_DIR}/src/unity/{*.svg,*.png,dash-widgets.json} ${THEME_DIR}/unity |
107 |
- cp -rf ${SRC_DIR}/src/unity/assets${ELSE_LIGHT} ${THEME_DIR}/unity/assets |
108 |
+ gcp -rf ${SRC_DIR}/src/unity/{*.svg,*.png,dash-widgets.json} ${THEME_DIR}/unity |
109 |
+ gcp -rf ${SRC_DIR}/src/unity/assets${ELSE_LIGHT} ${THEME_DIR}/unity/assets |
110 |
|
111 |
mkdir -p ${THEME_DIR}/xfwm4 |
112 |
- cp -rf ${SRC_DIR}/src/xfwm4/{*.svg,themerc} ${THEME_DIR}/xfwm4 |
113 |
- cp -rf ${SRC_DIR}/src/xfwm4/assets${ELSE_LIGHT} ${THEME_DIR}/xfwm4/assets |
114 |
+ gcp -rf ${SRC_DIR}/src/xfwm4/{*.svg,themerc} ${THEME_DIR}/xfwm4 |
115 |
+ gcp -rf ${SRC_DIR}/src/xfwm4/assets${ELSE_LIGHT} ${THEME_DIR}/xfwm4/assets |
116 |
|
117 |
if [[ "${theme}" == '' ]]; then |
118 |
mkdir -p ${THEME_DIR}/cinnamon |
119 |
- cp -rf ${SRC_DIR}/src/cinnamon/cinnamon${ELSE_DARK}.css ${THEME_DIR}/cinnamon/cinnamon.css |
120 |
- cp -rf ${SRC_DIR}/src/cinnamon/assets/common-assets ${THEME_DIR}/cinnamon/assets |
121 |
- cp -rf ${SRC_DIR}/src/cinnamon/assets/assets${ELSE_DARK}/checkbox/*.svg ${THEME_DIR}/cinnamon/assets/checkbox |
122 |
- cp -rf ${SRC_DIR}/src/cinnamon/assets/assets${ELSE_DARK}/menu/*.svg ${THEME_DIR}/cinnamon/assets/menu |
123 |
- cp -rf ${SRC_DIR}/src/cinnamon/assets/assets${ELSE_DARK}/misc/*.svg ${THEME_DIR}/cinnamon/assets/misc |
124 |
- cp -rf ${SRC_DIR}/src/cinnamon/assets/assets${ELSE_DARK}/switch/*.svg ${THEME_DIR}/cinnamon/assets/switch |
125 |
- cp -rf ${SRC_DIR}/src/cinnamon/thumbnail${ELSE_DARK}.png ${THEME_DIR}/cinnamon/thumbnail.png |
126 |
+ gcp -rf ${SRC_DIR}/src/cinnamon/cinnamon${ELSE_DARK}.css ${THEME_DIR}/cinnamon/cinnamon.css |
127 |
+ gcp -rf ${SRC_DIR}/src/cinnamon/assets/common-assets ${THEME_DIR}/cinnamon/assets |
128 |
+ gcp -rf ${SRC_DIR}/src/cinnamon/assets/assets${ELSE_DARK}/checkbox/*.svg ${THEME_DIR}/cinnamon/assets/checkbox |
129 |
+ gcp -rf ${SRC_DIR}/src/cinnamon/assets/assets${ELSE_DARK}/menu/*.svg ${THEME_DIR}/cinnamon/assets/menu |
130 |
+ gcp -rf ${SRC_DIR}/src/cinnamon/assets/assets${ELSE_DARK}/misc/*.svg ${THEME_DIR}/cinnamon/assets/misc |
131 |
+ gcp -rf ${SRC_DIR}/src/cinnamon/assets/assets${ELSE_DARK}/switch/*.svg ${THEME_DIR}/cinnamon/assets/switch |
132 |
+ gcp -rf ${SRC_DIR}/src/cinnamon/thumbnail${ELSE_DARK}.png ${THEME_DIR}/cinnamon/thumbnail.png |
133 |
fi |
134 |
|
135 |
mkdir -p ${THEME_DIR}/plank |
136 |
- cp -rf ${SRC_DIR}/src/plank/dock${ELSE_LIGHT}.theme ${THEME_DIR}/plank/dock.theme |
137 |
+ gcp -rf ${SRC_DIR}/src/plank/dock${ELSE_LIGHT}.theme ${THEME_DIR}/plank/dock.theme |
138 |
} |
139 |
|
140 |
install_gdm() { |
141 |
@@ -193,7 +193,7 @@ install_gdm() { |
142 |
|
143 |
if [[ -f "$GS_THEME_FILE" ]] && [[ "$(which glib-compile-resources 2> /dev/null)" ]]; then |
144 |
echo "Installing '$GS_THEME_FILE'..." |
145 |
- cp -an "$GS_THEME_FILE" "$GS_THEME_FILE.bak" |
146 |
+ gcp -an "$GS_THEME_FILE" "$GS_THEME_FILE.bak" |
147 |
glib-compile-resources \ |
148 |
--sourcedir="$THEME_DIR/gnome-shell" \ |
149 |
--target="$GS_THEME_FILE" \ |
150 |
@@ -206,8 +206,8 @@ install_gdm() { |
151 |
|
152 |
if [[ -f "$UBUNTU_THEME_FILE" ]]; then |
153 |
echo "Installing '$UBUNTU_THEME_FILE'..." |
154 |
- cp -an "$UBUNTU_THEME_FILE" "$UBUNTU_THEME_FILE.bak" |
155 |
- cp -af "$THEME_DIR/gnome-shell/gnome-shell.css" "$UBUNTU_THEME_FILE" |
156 |
+ gcp -an "$UBUNTU_THEME_FILE" "$UBUNTU_THEME_FILE.bak" |
157 |
+ gcp -af "$THEME_DIR/gnome-shell/gnome-shell.css" "$UBUNTU_THEME_FILE" |
158 |
fi |
159 |
} |
160 |
|
161 |
@@ -215,7 +215,7 @@ install_icon() { |
162 |
echo -e "\nInstalling Canta icon theme..." |
163 |
|
164 |
# Copying files |
165 |
- cp -rf ${SRC_DIR}/icons/Canta ${ICON_DEST_DIR} |
166 |
+ gcp -rf ${SRC_DIR}/icons/Canta ${ICON_DEST_DIR} |
167 |
|
168 |
# update icon caches |
169 |
gtk-update-icon-cache ${ICON_DEST_DIR}/Canta |
170 |
@@ -390,7 +390,7 @@ install_theme() { |
171 |
} |
172 |
|
173 |
tweaks_temp() { |
174 |
- cp -rf ${SRC_DIR}/src/_sass/_tweaks.scss ${SRC_DIR}/src/_sass/_tweaks-temp.scss |
175 |
+ gcp -rf ${SRC_DIR}/src/_sass/_tweaks.scss ${SRC_DIR}/src/_sass/_tweaks-temp.scss |
176 |
} |
177 |
|
178 |
theme_colors() { |
179 |
@@ -403,7 +403,7 @@ theme_colors() { |
4 |
theme_color='indigo' |
180 |
theme_color='indigo' |
5 |
;; |
181 |
;; |
6 |
esac |
182 |
esac |
Lines 9-18
Link Here
|
9 |
fi |
185 |
fi |
10 |
} |
186 |
} |
11 |
|
187 |
|
12 |
bakground_image() { |
|
|
13 |
echo "Install with no nautilus bakground image..." |
14 |
- sed -i "/\$theme_image:/s/true/false/" ${SRC_DIR}/src/_sass/_tweaks-temp.scss |
15 |
+ gsed -i "/\$theme_image:/s/true/false/" ${SRC_DIR}/src/_sass/_tweaks-temp.scss |
16 |
} |
17 |
|
18 |
theme_tweaks() { |