-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathInstall
executable file
·192 lines (150 loc) · 4.17 KB
/
Install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
#!/bin/bash
# Copying files
ROOT_UID=0
DEST_DIR=
# Destination directory
if [ "$UID" -eq "$ROOT_UID" ]; then
DEST_DIR="/usr/share/themes"
else
DEST_DIR="$HOME/.themes"
fi
repodir=$(cd $(dirname $0) && pwd)
srcdir=${repodir}/src
rm -rf $DEST_DIR/Abrus*
# Copying files
for trans in '' '-solid' ; do
for color in '' '-light' '-dark'; do
echo -e " Installing Abrus${trans}${color} ..."
themedir=$DEST_DIR/Abrus${trans}${color}
install -d ${themedir}
# Install index.theme
echo "[Desktop Entry]" >> ${themedir}/index.theme
echo "Type=X-GNOME-Metatheme" >> ${themedir}/index.theme
echo "Name=Abrus${trans}${color}" >> ${themedir}/index.theme
echo "Comment=An Stylish Gtk+ theme based on Elegant Design" >> ${themedir}/index.theme
echo "Encoding=UTF-8" >> ${themedir}/index.theme
echo "" >> ${themedir}/index.theme
echo "[X-GNOME-Metatheme]" >> ${themedir}/index.theme
echo "GtkTheme=Abrus${trans}${color}" >> ${themedir}/index.theme
echo "MetacityTheme=Abrus${trans}${color}" >> ${themedir}/index.theme
echo "IconTheme=Adwaita" >> ${themedir}/index.theme
echo "CursorTheme=Adwaita" >> ${themedir}/index.theme
echo "ButtonLayout=menu:minimize,maximize,close" >> ${themedir}/index.theme
# Install GNOME Shell Theme
install -d ${themedir}/gnome-shell
cd ${srcdir}/gnome-shell
cp -ur \
gnome-shell${color}.css \
${themedir}/gnome-shell/gnome-shell.css
cp -ur \
extensions \
pad-osd.css \
message-indicator-symbolic.svg \
${themedir}/gnome-shell
install -d ${themedir}/gnome-shell/assets
cd ${srcdir}/gnome-shell/assets
cp -ur \
dash \
dash-placeholder.svg \
noise-texture.svg \
noise.png \
process-working.svg \
window-close.svg \
window-close-active.svg \
toggle-on.svg \
more-results.svg \
checkbox.svg \
${themedir}/gnome-shell/assets
cp -ur \
no-events${color}.svg \
${themedir}/gnome-shell/assets/no-events.svg
cp -ur \
no-notifications${color}.svg \
${themedir}/gnome-shell/assets/no-notifications.svg
cp -ur \
calendar-arrow-left${color}.svg \
${themedir}/gnome-shell/assets/calendar-arrow-left.svg
cp -ur \
calendar-arrow-right${color}.svg \
${themedir}/gnome-shell/assets/calendar-arrow-right.svg
cp -ur \
checkbox-off${color}.svg \
${themedir}/gnome-shell/assets/checkbox-off.svg
cp -ur \
close${color}.svg \
${themedir}/gnome-shell/assets/close.svg
cp -ur \
toggle-off${color}.svg \
${themedir}/gnome-shell/assets/toggle-off.svg
cd ${themedir}/gnome-shell
ln -s assets/no-events.svg no-events.svg
ln -s assets/process-working.svg process-working.svg
ln -s assets/no-notifications.svg no-notifications.svg
# cd ${srcdir}/gnome-shell
# glib-compile-resources \
# --sourcedir=${themedir}/gnome-shell \
# --target=${themedir}/gnome-shell/gnome-shell-theme.gresource \
# gnome-shell-theme.gresource.xml
# Install GTK+ 2 Theme
install -d ${themedir}/gtk-2.0
cd ${srcdir}/gtk-2.0
cp -ur \
gtkrc${color} \
${themedir}/gtk-2.0/gtkrc
cp -ur \
assets${color} \
${themedir}/gtk-2.0/assets
cp -ur \
apps.rc \
main.rc \
panel.rc \
xfce-notify.rc \
menubar-toolbar \
${themedir}/gtk-2.0
cp -ur \
menubar-toolbar${color}.rc \
${themedir}/gtk-2.0/menubar-toolbar/menubar-toolbar.rc
# Install GTK+ 3 Theme
install -d ${themedir}/gtk-3.0
cd ${srcdir}/gtk-3.0
cp -ur \
assets \
${themedir}/gtk-3.0
cp -ur \
thumbnail${color}.png \
${themedir}/gtk-3.0/thumbnail.png
cp -ur \
gtk${trans}${color}.css \
${themedir}/gtk-3.0/gtk.css
cp -ur \
gtk${trans}-dark.css \
${themedir}/gtk-3.0/gtk-dark.css
# Install Metacity Theme
install -d ${themedir}/metacity-1
cd ${srcdir}/metacity-1
cp -ur \
metacity-theme-2${color}.xml \
${themedir}/metacity-1/metacity-theme-2.xml
cp -ur \
metacity-theme-3${color}.xml \
${themedir}/metacity-1/metacity-theme-3.xml
cp -ur \
thumbnail${color}.png \
${themedir}/metacity-1/thumbnail.png
# Install Unity Theme
install -d ${themedir}/unity
cd ${srcdir}
cp -ur \
unity \
${themedir}
# Install xfwm4 Theme
install -d ${themedir}/xfwm4
cd ${srcdir}/xfwm4
cp -ur \
assets${color}/*.png \
${themedir}/xfwm4
cp -ur \
themerc${color} \
${themedir}/xfwm4/themerc
done
done