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-theme-dark.sh

View raw Download
text/x-shellscript • 2.36 kiB
POSIX shell script, ASCII text executable
        
            
1
#!/bin/sh
2
3
gnomever=$(echo $(gnome-shell --version) | cut -d ' ' -f 3 | cut -d . -f -2)
4
srcdir=$(cd $(dirname $0)/../src && pwd)
5
themedir=/usr/share/themes/Flat-Plat-dark
6
7
install -d ${themedir}
8
9
10
# Copy COPYING
11
cd $(cd $(dirname $0)/.. && pwd)
12
cp -ur \
13
COPYING \
14
${themedir}
15
16
17
# Install index.theme
18
cd ${srcdir}
19
cp -ur \
20
index-dark.theme \
21
${themedir}/index.theme
22
23
24
# Install Chrome Theme/Extention
25
install -d ${themedir}/chrome
26
cd ${srcdir}/chrome
27
cp -ur \
28
"Flat-Plat Scrollbars.crx" \
29
"Flat-Plat-dark Theme.crx" \
30
${themedir}/chrome
31
32
33
# Install GNOME Shell Theme
34
install -d ${themedir}/gnome-shell
35
cd ${srcdir}/gnome-shell/${gnomever}
36
cp -ur \
37
extensions \
38
no-events.svg \
39
no-notifications.svg \
40
process-working.svg \
41
${themedir}/gnome-shell
42
cp -ur \
43
assets-dark \
44
${themedir}/gnome-shell/assets
45
cp -ur \
46
gnome-shell-dark.css \
47
${themedir}/gnome-shell/gnome-shell.css
48
glib-compile-resources \
49
--sourcedir=${themedir}/gnome-shell \
50
--target=${themedir}/gnome-shell/gnome-shell-theme.gresource \
51
gnome-shell-theme.gresource.xml
52
53
54
# Install GTK+ 2 Theme
55
install -d ${themedir}/gtk-2.0
56
cd ${srcdir}/gtk-2.0
57
cp -ur \
58
apps.rc \
59
main.rc \
60
${themedir}/gtk-2.0
61
cp -ur \
62
assets-dark \
63
${themedir}/gtk-2.0/assets
64
cp -ur \
65
gtkrc-dark \
66
${themedir}/gtk-2.0/gtkrc
67
68
69
# Install GTK+ 3 Theme
70
install -d ${themedir}/gtk-3.0
71
cd ${srcdir}/gtk-3.0/3.18
72
cp -ur \
73
assets \
74
${themedir}/gtk-3.0
75
#cp -ur \
76
# gtk.css \
77
# ${themedir}/gtk-3.0
78
cp -ur \
79
gtk-dark.css \
80
${themedir}/gtk-3.0/gtk.css
81
82
83
install -d ${themedir}/gtk-3.20
84
cd ${srcdir}/gtk-3.0/3.20
85
cp -ur \
86
assets \
87
${themedir}/gtk-3.20
88
#cp -ur \
89
# gtk.css \
90
# ${themedir}/gtk-3.20
91
cp -ur \
92
gtk-dark.css \
93
${themedir}/gtk-3.20/gtk.css
94
95
96
install -d ${themedir}/gtk-3.22
97
cd ${srcdir}/gtk-3.0/3.22
98
cp -ur \
99
assets \
100
${themedir}/gtk-3.22
101
#cp -ur \
102
# gtk.css \
103
# ${themedir}/gtk-3.22
104
cp -ur \
105
gtk-dark.css \
106
${themedir}/gtk-3.22/gtk.css
107
108
109
install -d ${themedir}/gtk-common
110
cd ${srcdir}/gtk-3.0/gtk-common
111
cp -ur \
112
assets \
113
${themedir}/gtk-common
114
115
116
# Install Metacity Theme
117
install -d ${themedir}/metacity-1
118
cd ${srcdir}/metacity-1
119
cp -ur \
120
*.svg \
121
${themedir}/metacity-1
122
cp -ur \
123
metacity-theme-2.xml \
124
${themedir}/metacity-1
125
cp -ur \
126
metacity-theme-3.xml \
127
${themedir}/metacity-1
128
129
130
# Install Unity Theme
131
install -d ${themedir}/unity
132
cd ${srcdir}/unity
133
cp -ur \
134
*.svg \
135
*.png \
136
*.json \
137
${themedir}/unity
138
cp -ur \
139
buttons \
140
${themedir}/unity
141