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