A fork of the Materia GTK theme.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 install.sh

View raw Download
text/x-shellscript • 3.62 kiB
Bourne-Again shell script, ASCII text executable
        
            
1
#!/bin/bash
2
3
repodir=$(cd $(dirname $0) && pwd)
4
srcdir=${repodir}/src
5
6
if type -p gnome-shell > /dev/null ; then
7
gnomever=$(gnome-shell --version | cut -d ' ' -f 3 | cut -d . -f -2)
8
else
9
gnomever=3.18
10
fi
11
12
echo
13
14
for color in '' '-dark' '-light' ; do
15
for size in '' '-compact' ; do
16
echo Installing Flat-Plat${color}${size} ...
17
18
themedir=${destdir}/usr/share/themes/Flat-Plat${color}${size}
19
install -d ${themedir}
20
21
# Copy COPYING
22
cd ${repodir}
23
cp -ur \
24
COPYING \
25
${themedir}
26
27
# Install index.theme
28
cd ${srcdir}
29
cp -ur \
30
index${color}${size}.theme \
31
${themedir}/index.theme
32
33
# Install Chrome Theme/Extention
34
install -d ${themedir}/chrome
35
cd ${srcdir}/chrome
36
cp -ur \
37
"Flat-Plat${color} Theme.crx" \
38
${themedir}/chrome
39
if [ "$color" != '-dark' ] ; then
40
cp -ur \
41
"Flat-Plat Scrollbars.crx" \
42
${themedir}/chrome
43
else
44
cp -ur \
45
"Flat-Plat${color} Scrollbars.crx" \
46
${themedir}/chrome
47
fi
48
49
# Install GNOME Shell Theme
50
install -d ${themedir}/gnome-shell
51
cd ${srcdir}/gnome-shell/${gnomever}
52
cp -ur \
53
extensions \
54
no-events.svg \
55
no-notifications.svg \
56
pad-osd.css \
57
process-working.svg \
58
${themedir}/gnome-shell
59
if [ "$color" != '-dark' ] ; then
60
cp -ur \
61
assets \
62
${themedir}/gnome-shell
63
else
64
cp -ur \
65
assets${color} \
66
${themedir}/gnome-shell/assets
67
fi
68
cp -ur \
69
gnome-shell${color}${size}.css \
70
${themedir}/gnome-shell/gnome-shell.css
71
glib-compile-resources \
72
--sourcedir=${themedir}/gnome-shell \
73
--target=${themedir}/gnome-shell/gnome-shell-theme.gresource \
74
gnome-shell-theme.gresource.xml
75
76
# Install GTK+ 2 Theme
77
install -d ${themedir}/gtk-2.0
78
cd ${srcdir}/gtk-2.0
79
cp -ur \
80
apps.rc \
81
hacks.rc \
82
main.rc \
83
${themedir}/gtk-2.0
84
if [ "$color" != '-dark' ] ; then
85
cp -ur \
86
assets \
87
${themedir}/gtk-2.0
88
else
89
cp -ur \
90
assets${color} \
91
${themedir}/gtk-2.0/assets
92
fi
93
cp -ur \
94
gtkrc${color} \
95
${themedir}/gtk-2.0/gtkrc
96
97
# Install GTK+ 3 Theme
98
install -d ${themedir}/gtk-common
99
cd ${srcdir}/gtk-3.0/gtk-common
100
cp -ur \
101
assets \
102
${themedir}/gtk-common
103
104
for version in '3.18' '3.20' '3.22' ; do
105
if [ "$version" == '3.18' ] ; then
106
install -d ${themedir}/gtk-3.0
107
cd ${srcdir}/gtk-3.0/${version}
108
cp -ur \
109
assets \
110
${themedir}/gtk-3.0
111
cp -ur \
112
gtk${color}.css \
113
${themedir}/gtk-3.0/gtk.css
114
if [ "$color" != '-dark' ] ; then
115
cp -ur \
116
gtk-dark.css \
117
${themedir}/gtk-3.0
118
fi
119
else
120
install -d ${themedir}/gtk-${version}
121
cd ${srcdir}/gtk-3.0/${version}
122
cp -ur \
123
assets \
124
${themedir}/gtk-${version}
125
cp -ur \
126
gtk${color}${size}.css \
127
${themedir}/gtk-${version}/gtk.css
128
if [ "$color" != '-dark' ] ; then
129
cp -ur \
130
gtk-dark${size}.css \
131
${themedir}/gtk-${version}/gtk-dark.css
132
fi
133
fi
134
done
135
136
# Install Metacity Theme
137
install -d ${themedir}/metacity-1
138
cd ${srcdir}/metacity-1
139
cp -ur \
140
*.svg \
141
${themedir}/metacity-1
142
if [ "$color" != '-light' ] ; then
143
cp -ur \
144
metacity-theme-2.xml \
145
metacity-theme-3.xml \
146
${themedir}/metacity-1
147
else
148
cp -ur \
149
metacity-theme-2${color}.xml \
150
${themedir}/metacity-1/metacity-theme-2.xml
151
cp -ur \
152
metacity-theme-3${color}.xml \
153
${themedir}/metacity-1/metacity-theme-3.xml
154
fi
155
156
# Install Unity Theme
157
install -d ${themedir}/unity
158
cd ${srcdir}/unity
159
cp -ur \
160
*.svg \
161
*.png \
162
*.json \
163
${themedir}/unity
164
if [ "$color" != '-light' ] ; then
165
cp -ur \
166
buttons \
167
${themedir}/unity
168
else
169
cp -urT \
170
buttons${color} \
171
${themedir}/unity/buttons
172
fi
173
done
174
done
175
176
echo
177
echo Done.
178