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