-
Notifications
You must be signed in to change notification settings - Fork 0
/
materia-kolorizer.sh
150 lines (133 loc) · 4.81 KB
/
materia-kolorizer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#!/bin/bash
readonly ThemeName="MateriaK"
readonly AccentColor="7952B3"
readonly AltColor="7952B3"
readonly GnomeShellClose="7952B3"
readonly GnomeShellFont="Cantarell" #comment lines 90&91 to use default
readonly Path="/usr/share/themes"
### Some colors
## Material Design palette -> https://material.io/guidelines/style/color.html#color-color-palette
## Fluent Design palette -> https://docs.microsoft.com/en-us/windows/uwp/design/style/color#accent-color
## Arch blue = 1793D1
## Crunchbang dark = 2E3436
## Crunchbang light = BFBFBF
## Debian red = D70A53
## Fedora blue = 3C6EB4
## Gentoo purple = 54487A
## openSUSE lightgreen = 73BA25
## openSUSE darkgreen = 6DA741
## openSUSE lightcyan = 35B9AB
## openSUSE darkcyan = 00A489
## Pop OS brown = 574F4A
## Pop OS cyan = 48B9C7
## Pop OS yellow = FAA41A
## RedHat mediumred = A30000
## RedHat lightblue = A3DBE8
## RedHat darkblue = 004153
## SteamOS green = 5C7E10
## SteamOS bluedark = 252C3F
## SteamOS bluelight = 6699FF
## SUSE green = 02D35F
## Ubuntu orange = EB6536
## Ubuntu purple = 84377D
## Ubuntu Budgie blue = 4D90D6
## Ubuntu Budgie red = A34F6D
## Ubuntu Budgie slate = 383C4A
## Ubuntu MATE green = 87A556
## Ubuntu MATE red = DD4814
## GNOME Adwaita beige = C6AF90
## GNOME Adwaita blue = 4A90D9
## KDE Plasma blue = 3DAEE9
## Windows select blue = CDE4FC
## Windows folder yellow = FFE79B
## MiamiVice bluegreen = 0BD3D3
## MiamiVice pink = F890E7
## Apple website blue = 0070C9
## Apple website green = 47B04B
## Apple website grey = 888888
## Apple website orange = E85D00
## Apple website red = CF102D
## Bondi Blue = 0095B6
## Bootstrap purple = 7952B3
## Bootstrap yellow = FFE484
## Bootstrap grey = 6C757D
## Bulma green = 00D1B2
## Lamborghini gold = DDB321
## Mozilla MDN blue = 3F87A6
## Mozilla MDN grey = 9B9B9B
## Mozilla MDN red = E66465
## Mozilla MDN yellow = F6B73C
## OnePlus red = EB0029
## VALVe brown = 745E4E
## VALVe green = D3D6CA
## VALVe orange = CF381E
## Pantone rose quartz = F7CAC9
## Pantone serenity = 92A8D1
## Sherwin taupe = 8C7E78
## Gunmetal = 2C3539
## Graphite = 577287
## DarthWound red = A63F3F
## Papirus black = 505050
## Papirus grey = 8D8D8D
## Papirus brown = AE8D6E
## Papirus green = 84B05F
## Papirus teal = 009F85
## Papirus cyan = 00BAD2
## Papirus blue = 4F92DE
if [ -w "$Path" ]
then
rm -rf "$Path$ThemeName*"
else
sudo rm -rf "$Path$ThemeName*"
fi
wget -O - https://github.com/nana-4/materia-theme/archive/master.tar.gz | tar xz
cd materia-theme-master
sleep 2s
sed -i "s/Materia/$ThemeName/g" install.sh
sed -i "/Comment/!s/Materia/$ThemeName/g" src/*.theme
sed -i "s/Roboto, \"M+ 1c\"/$GnomeShellFont/g" src/_sass/gnome-shell/_variables.scss
sed -i "s/\"M+ 1c\", Roboto/$GnomeShellFont/g" src/_sass/gnome-shell/_variables.scss
sed -i "s/4285F4/$AccentColor/gI" src/_sass/_color-palette.scss
sed -i "s/4285F4/$AccentColor/gI" src/_sass/_colors.scss
sed -i "s/4285F4/$AccentColor/gI" src/gnome-shell/assets{,-dark}/*.svg
sed -i "s/4285F4/$AccentColor/gI" src/gtk/assets.svg
sed -i "s/4285F4/$AccentColor/gI" src/gtk-2.0/assets{,-dark}.svg
sed -i "s/4285F4/$AccentColor/gI" src/gtk-2.0/gtkrc{,-dark,-light}
sed -i "s/4285F4/$AccentColor/gI" src/metacity-1/metacity-theme-2{,-light}.xml
sed -i "s/4285F4/$AccentColor/gI" src/metacity-1/metacity-theme-3{,-light}.xml
sed -i "s/4285F4/$AccentColor/gI" src/cinnamon/*.scss
sed -i "s/4285F4/$AccentColor/gI" src/cinnamon/assets/*.svg
sed -i "s/4285F4/$AccentColor/gI" src/xfwm4/assets/*.svg
sed -i "s/4285F4/$AccentColor/gI" src/xfwm4/assets-light/*.svg
sed -i "s/4285F4/$AccentColor/gI" src/openbox-3/themerc
sed -i "s/7BAAF7/$AltColor/gI" src/_sass/_color-palette.scss
sed -i "s/7BAAF7/$AltColor/gI" src/_sass/_colors.scss
sed -i "s/7BAAF7/$AltColor/gI" src/gnome-shell/assets{,-dark}/*.svg
sed -i "s/7BAAF7/$AltColor/gI" src/gtk/assets.svg
sed -i "s/7BAAF7/$AltColor/gI" src/gtk-2.0/assets{,-dark}.svg
sed -i "s/7BAAF7/$AltColor/gI" src/gtk-2.0/gtkrc{,-dark,-light}
sed -i "s/7BAAF7/$AltColor/gI" src/metacity-1/metacity-theme-2{,-light}.xml
sed -i "s/7BAAF7/$AltColor/gI" src/metacity-1/metacity-theme-3{,-light}.xml
sed -i "s/7BAAF7/$AltColor/gI" src/cinnamon/*.scss
sed -i "s/7BAAF7/$AltColor/gI" src/cinnamon/assets/*.svg
sed -i "s/7BAAF7/$AltColor/gI" src/xfwm4/assets/*.svg
sed -i "s/7BAAF7/$AltColor/gI" src/xfwm4/assets-light/*.svg
sed -i "s/7BAAF7/$AltColor/gI" src/openbox-3/themerc
sed -i "s/EA4335/$GnomeShellClose/gI" src/gnome-shell/assets{,-dark}/window-close{,-active}.svg
sed -i 's/symbolic/regular/g' src/_sass/gnome-shell/_common{-3.18,-3.24,-3.26,-3.28,-3.30,-3.32}.scss
sleep 2s
./parse-sass.sh
./render-assets.sh
chmod +x install.sh
if [ -w "$Path" ]
then
./install.sh -d "$Path"
else
sudo ./install.sh -d "$Path"
fi
sleep 2s
cd ..
rm -rf materia-theme-master
clear
printf "Kolorized! You can change your gtk theme now.\nRestarting your session may be necessary.\n"
read -p "Press ENTER to close."