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 • 4.11 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
no-events.svg \
54
no-notifications.svg \
55
process-working.svg \
56
${themedir}/gnome-shell
57
cp -urL \
58
extensions \
59
pad-osd.css \
60
${themedir}/gnome-shell
61
if [ "$color" != '-dark' ] ; then
62
cp -urL \
63
assets \
64
${themedir}/gnome-shell
65
else
66
cp -urL \
67
assets${color} \
68
${themedir}/gnome-shell/assets
69
fi
70
cp -ur \
71
gnome-shell${color}${size}.css \
72
${themedir}/gnome-shell/gnome-shell.css
73
glib-compile-resources \
74
--sourcedir=${themedir}/gnome-shell \
75
--target=${themedir}/gnome-shell/gnome-shell-theme.gresource \
76
gnome-shell-theme.gresource.xml
77
78
# Install GTK+ 2 Theme
79
install -d ${themedir}/gtk-2.0
80
cd ${srcdir}/gtk-2.0
81
cp -ur \
82
apps.rc \
83
hacks.rc \
84
main.rc \
85
${themedir}/gtk-2.0
86
if [ "$color" != '-dark' ] ; then
87
cp -ur \
88
assets \
89
${themedir}/gtk-2.0
90
else
91
cp -ur \
92
assets${color} \
93
${themedir}/gtk-2.0/assets
94
fi
95
cp -ur \
96
gtkrc${color} \
97
${themedir}/gtk-2.0/gtkrc
98
99
# Install GTK+ 3 Theme
100
install -d ${themedir}/gtk-common
101
cd ${srcdir}/gtk-3.0/gtk-common
102
cp -ur \
103
assets \
104
${themedir}/gtk-common
105
106
for version in '3.18' '3.20' '3.22' ; do
107
if [ "$version" == '3.18' ] ; then
108
install -d ${themedir}/gtk-3.0
109
cd ${srcdir}/gtk-3.0/${version}
110
cp -ur \
111
assets \
112
${themedir}/gtk-3.0
113
cp -ur \
114
gtk${color}.css \
115
${themedir}/gtk-3.0/gtk.css
116
if [ "$color" != '-dark' ] ; then
117
cp -ur \
118
gtk-dark.css \
119
${themedir}/gtk-3.0
120
fi
121
else
122
install -d ${themedir}/gtk-${version}
123
cd ${srcdir}/gtk-3.0/${version}
124
cp -ur \
125
assets \
126
${themedir}/gtk-${version}
127
cp -ur \
128
gtk${color}${size}.css \
129
${themedir}/gtk-${version}/gtk.css
130
if [ "$color" != '-dark' ] ; then
131
cp -ur \
132
gtk-dark${size}.css \
133
${themedir}/gtk-${version}/gtk-dark.css
134
fi
135
fi
136
done
137
138
# Install Metacity Theme
139
install -d ${themedir}/metacity-1
140
cd ${srcdir}/metacity-1
141
cp -ur \
142
*.svg \
143
${themedir}/metacity-1
144
if [ "$color" != '-light' ] ; then
145
cp -ur \
146
metacity-theme-2.xml \
147
metacity-theme-3.xml \
148
${themedir}/metacity-1
149
else
150
cp -ur \
151
metacity-theme-2${color}.xml \
152
${themedir}/metacity-1/metacity-theme-2.xml
153
cp -ur \
154
metacity-theme-3${color}.xml \
155
${themedir}/metacity-1/metacity-theme-3.xml
156
fi
157
158
# Install Unity Theme
159
install -d ${themedir}/unity
160
cd ${srcdir}/unity
161
cp -ur \
162
*.svg \
163
*.png \
164
*.json \
165
${themedir}/unity
166
if [ "$color" != '-light' ] ; then
167
cp -ur \
168
buttons \
169
${themedir}/unity
170
else
171
cp -urT \
172
buttons${color} \
173
${themedir}/unity/buttons
174
fi
175
done
176
done
177
178
echo
179
echo Done.
180