forked from PapirusDevelopmentTeam/arc-kde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-arc-kde-home.sh
executable file
·70 lines (58 loc) · 2.24 KB
/
install-arc-kde-home.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
#!/bin/sh
set -e
gh_repo="arc-kde"
gh_desc="Arc KDE customization"
cat <<- EOF
aaa kk kk ddddd eeeeeee
aa aa rr rrrr ccccc kk kk dd dd ee
aaaaaaa rrr cc kkk dd dd eeeee
aa aa rr cc kk kk dd dd ee
aa aa rr ccccc kk kk ddddd eeeeeee
$gh_desc
https://github.com/PapirusDevelopmentTeam/$gh_repo
EOF
temp_dir="$(mktemp -d)"
echo "=> Getting the latest version from GitHub ..."
wget -O "/tmp/$gh_repo.tar.gz" \
https://github.com/PapirusDevelopmentTeam/$gh_repo/archive/master.tar.gz
echo "=> Unpacking archive ..."
tar -xzf "/tmp/$gh_repo.tar.gz" -C "$temp_dir"
echo "=> Deleting old $gh_desc ..."
rm -rf ~/.local/share/aurorae/themes/Arc
rm -rf ~/.local/share/aurorae/themes/Arc-Dark
rm -f ~/.local/share/color-schemes/Arc.colors
rm -f ~/.local/share/color-schemes/ArcDark.colors
rm -f ~/.local/share/konsole/Arc.colorscheme
rm -f ~/.local/share/konsole/ArcDark.colorscheme
rm -rf ~/.local/share/konversation/themes/papirus
rm -rf ~/.local/share/konversation/themes/papirus-dark
rm -rf ~/.config/Kvantum/Arc
rm -rf ~/.config/Kvantum/ArcDark
rm -rf ~/.config/Kvantum/ArcDarker
rm -rf ~/.local/share/plasma/desktoptheme/Arc-Dark
rm -rf ~/.local/share/plasma/desktoptheme/Arc-Color
rm -rf ~/.local/share/plasma/look-and-feel/com.github.varlesh.arc-dark
rm -rf ~/.local/share/wallpapers/Arc
rm -rf ~/.local/share/wallpapers/Arc-Dark
rm -rf ~/.local/share/yakuake/skins/arc
rm -rf ~/.local/share/yakuake/skins/arc-dark
# Remove from old location
rm -rf ~/.local/share/yakuake/kns_skins/arc
rm -rf ~/.local/share/yakuake/kns_skins/arc-dark
echo "=> Installing ..."
mkdir -p ~/.local/share
cp -R \
"$temp_dir/$gh_repo-master/aurorae" \
"$temp_dir/$gh_repo-master/color-schemes" \
"$temp_dir/$gh_repo-master/konsole" \
"$temp_dir/$gh_repo-master/konversation" \
"$temp_dir/$gh_repo-master/plasma" \
"$temp_dir/$gh_repo-master/wallpapers" \
"$temp_dir/$gh_repo-master/yakuake" \
~/.local/share/
cp -R "$temp_dir/$gh_repo-master/Kvantum" ~/.config/
echo "=> Clearing cache ..."
rm -rf "/tmp/$gh_repo.tar.gz" "$temp_dir" \
~/.cache/plasma-svgelements-Arc* \
~/.cache/plasma_theme_Arc*.kcache
echo "=> Done!"