-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·80 lines (67 loc) · 1.79 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·80 lines (67 loc) · 1.79 KB
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
#!/bin/bash
theme_path=/usr/share/sddm/themes/dark-sddm-theme
echo "Welcome in theme installer"
logos=(
'Arch Linux'
'KDE neon'
'KDE plasma'
'Fedora'
'Blackarch'
)
schemes=(
'Default'
'Blackarch'
)
# Get favourite logo
echo "Which is your favourite logo?"
i=1
for logo in "${logos[@]}"; do
echo "($i) $logo"
let "i=i+1"
done
echo -n "==> "
read image
if (( $image < 1 || $image > ${#logos[@]} ))
then
echo "Wrong selection. Aborting..."
exit 1
fi
# Get favourite scheme
echo "Which is your favourite scheme?"
i=1
for scheme in "${schemes[@]}"; do
echo "($i) $scheme"
let "i=i+1"
done
echo -n "==> "
read scheme
if (( $scheme < 1 || $scheme > ${#schemes[@]} ))
then
echo "Wrong selection. Aborting..."
exit 1
fi
# Install it
sudo rm -rf $theme_path 2> /dev/null
sudo mkdir -p $theme_path 2> /dev/null
sudo cp -r base/* $theme_path
# Install selected logo
case $image in
1) sudo cp options/logo/arch.png $theme_path/resources/logo.png ;;
2) sudo cp options/logo/neon.png $theme_path/resources/logo.png ;;
3) sudo cp options/logo/plasma.png $theme_path/resources/logo.png ;;
4) sudo cp options/logo/fedora.png $theme_path/resources/logo.png ;;
5) sudo cp options/logo/blackarch.png $theme_path/resources/logo.png ;;
*) echo "Unexpected error!"; exit 1 ;;
esac
# Install scheme
case $scheme in
1) sudo cp options/scheme/default.qml $theme_path/Main.qml ;;
2) sudo cp options/scheme/blackarch.qml $theme_path/Main.qml ;;
*) echo "Unexpected error!"; exit 1 ;;
esac
echo "+-----------------+"
echo "| THEME IS READY! |"
echo "+-----------------+"
echo -e "\033[5mApply it from KDE Settings manually\033[0m"
echo "(Settings > Workspace > Startup and shutdown > Login Screen (SDDM) > click on Simple Dark Theme, apply, authenticate and reboot)"
exit 0