forked from vinceliuice/Vimix-gtk-themes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstall
executable file
·184 lines (151 loc) · 4.5 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
#!/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/Vimix*
echo
for variant in '' '-Dark' '-Light' ; do
for size in '' '-Laptop' ; do
for color in '' '-Ruby' '-Doder' '-Beryl'; do
echo -e " Installing Vimix${variant}${size}${color} ..."
themedir=$DEST_DIR/Vimix${variant}${size}${color}
install -d ${themedir}
# Install index.theme
echo "[Desktop Entry]" >> ${themedir}/index.theme
echo "Type=X-GNOME-Metatheme" >> ${themedir}/index.theme
echo "Name=Vimix${variant}${size}${color}" >> ${themedir}/index.theme
echo "Comment=An Flat Gtk+ theme based on Material Design" >> ${themedir}/index.theme
echo "Encoding=UTF-8" >> ${themedir}/index.theme
echo "" >> ${themedir}/index.theme
echo "[X-GNOME-Metatheme]" >> ${themedir}/index.theme
echo "GtkTheme=Vimix${variant}${size}${color}" >> ${themedir}/index.theme
echo "MetacityTheme=Vimix${variant}${size}${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 \
extensions \
pad-osd.css \
message-indicator-symbolic.svg \
${themedir}/gnome-shell
cp -ur \
gnome${variant}-shell${size}${color}.css \
${themedir}/gnome-shell/gnome-shell.css
install -d ${themedir}/gnome-shell/assets
cd ${srcdir}/gnome-shell/assets
cp -ur \
dash \
dash-placeholder.svg \
noise-texture.svg \
process-working.svg \
window-close.svg \
window-close-active.svg \
${themedir}/gnome-shell/assets
cp -ur \
no-events${variant}.svg \
${themedir}/gnome-shell/assets/no-events.svg
cp -ur \
no-notifications${variant}.svg \
${themedir}/gnome-shell/assets/no-notifications.svg
cp -ur \
calendar-arrow-left${variant}.svg \
${themedir}/gnome-shell/assets/calendar-arrow-left.svg
cp -ur \
calendar-arrow-right${variant}.svg \
${themedir}/gnome-shell/assets/calendar-arrow-right.svg
cp -ur \
checkbox${color}.svg \
${themedir}/gnome-shell/assets/checkbox.svg
cp -ur \
checkbox-off${variant}.svg \
${themedir}/gnome-shell/assets/checkbox-off.svg
cp -ur \
close${variant}.svg \
${themedir}/gnome-shell/assets/close.svg
cp -ur \
more-results${color}.svg \
${themedir}/gnome-shell/assets/more-results.svg
cp -ur \
toggle-off${variant}.svg \
${themedir}/gnome-shell/assets/toggle-off.svg
cp -ur \
toggle-on${color}.svg \
${themedir}/gnome-shell/assets/toggle-on.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${variant}${color} \
${themedir}/gtk-2.0/gtkrc
cp -ur \
common/apps.rc \
common/hacks.rc \
common/main.rc \
${themedir}/gtk-2.0
install -d ${themedir}/gtk-2.0/assets
cd ${srcdir}/gtk-2.0/assets/Vimix${color}
cp -ur \
assets${variant}/*.png \
${themedir}/gtk-2.0/assets/
# Install GTK+ 3 Theme
install -d ${themedir}/gtk-3.0
cd ${srcdir}/gtk-3.0
cp -ur \
thumbnail${variant}${color}.png \
${themedir}/gtk-3.0/thumbnail.png
cp -ur \
windows-assets/windows-assets \
${themedir}/gtk-3.0/
cp -ur \
assets${color}/assets \
${themedir}/gtk-3.0/
cp -ur \
scalable \
${themedir}/gtk-3.0/assets/
cp -ur \
gtk${variant}${size}${color}.css \
${themedir}/gtk-3.0/gtk.css
cp -ur \
gtk-Dark${size}${color}.css \
${themedir}/gtk-3.0/gtk-dark.css
# Install Metacity Theme
install -d ${themedir}/metacity-1
cd ${srcdir}/metacity-1/Vimix${variant}
cp -ur \
*.svg \
${themedir}/metacity-1
cp -ur \
metacity-theme${color}-2.xml \
${themedir}/metacity-1/metacity-theme-2.xml
cp -ur \
metacity-theme${color}-3.xml \
${themedir}/metacity-1/metacity-theme-3.xml
# Install Unity Theme
install -d ${themedir}/unity
cd ${srcdir}/unity
cp -ur \
Vimix${size}/* \
${themedir}/unity
done
done
done