-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-theme-base.sh
executable file
·61 lines (46 loc) · 1.68 KB
/
install-theme-base.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
#!/bin/bash
CINN_VERSION=$(cinnamon --version)
if awk "BEGIN {exit !($CINN_VERSION < 5.2)}"; then
echo "[i] ERROR: Cinnamon version too low, this script was designed for Cinnamon 5.2 and above"
exit
fi
CWD=$(pwd)
mkdir -p $CWD/deps/themes
mkdir -p $HOME/.local/share/dermodex/theme
cd $CWD/deps
#rm -rf $CWD/deps/Fluent-gtk-theme
# CLONE FLUENT
echo ""
if [ -d $CWD/deps/Fluent-gtk-theme ] ; then
echo "[i] Fluent Theme Already Installed"
cd $CWD/deps/Fluent-gtk-theme
git fetch
git pull
else
git clone https://github.com/vinceliuice/Fluent-gtk-theme.git
cd $CWD/deps/Fluent-gtk-theme
fi
echo ""
echo ""
read -p "[Q] Do you wish to use the rounded version of fluent (y/n)? " answer
case ${answer:0:1} in
y|Y )
# INSTALL FLUENT IN CURRENT WORKING DIRECTORY NOT USR THEMES
$CWD/deps/Fluent-gtk-theme/install.sh --dest $CWD/deps/themes --tweaks round --size standard --theme default
# REMIX LIGHT AND DARK
cp -r $CWD/deps/themes/Fluent-round-Light/* $CWD/theme
cp -rf $CWD/deps/themes/Fluent-round-Dark/cinnamon/* $CWD/theme/cinnamon
;;
* )
# INSTALL FLUENT IN CURRENT WORKING DIRECTORY NOT USR THEMES
$CWD/deps/Fluent-gtk-theme/install.sh --dest $CWD/deps/themes --tweaks square --size standard --theme default
# REMIX LIGHT AND DARK
cp -r $CWD/deps/themes/Fluent-Light/* $CWD/theme
cp -rf $CWD/deps/themes/Fluent-Dark/cinnamon/* $CWD/theme/cinnamon
;;
esac
# ADD COMMON ASSETS
cp -rf $CWD/src/user-avatar.png $CWD/theme/cinnamon/assets
cp -rf $CWD/src/icons/*.svg $CWD/theme/cinnamon/assets
# COPY HYBRID THEME TO .local
cp -rf $CWD/theme/* $HOME/.local/share/dermodex/theme