-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·144 lines (87 loc) · 3.32 KB
/
install.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
#!/bin/bash
echo ""
echo " (1) - Install Windows 10 SDDM Theme"
echo " (2) - Install Required Segoe UI fonts"
echo " (3) - Install Windows Cursor Icons"
echo ""
echo "Please type only number(s) to pick options: (e.g: "1 2")"
read -p ":: " input
function sddm() {
sudo wget -P /usr/share/sddm/themes https://github.com/birbkeks/win10-sddm-theme/releases/download/1.2/win10-sddm-theme.tar.gz -nc
sudo tar -xzf /usr/share/sddm/themes/win10-sddm-theme.tar.gz -C /usr/share/sddm/themes
sudo rm -rf /usr/share/sddm/themes/win10-sddm-theme.tar.gz
sudo rm -rf /usr/share/sddm/themes/win10-sddm-theme/.git/
edit
}
function edit() {
if [[ $XDG_CURRENT_DESKTOP == "KDE" ]]; then
sudo sed -i '/Current=/d' /etc/sddm.conf.d/kde_settings.conf
sudo sed -i '/Theme]/a\
Current=win10-sddm-theme
' /etc/sddm.conf.d/kde_settings.conf
else
sudo sed -i '/Current=/d' /etc/sddm.conf
sudo sed -i '/Theme]/a\
Current=win10-sddm-theme
' /etc/sddm.conf
fi
}
function font() {
# Not installed locally because I can't stand to see this font on Github and other websites, I couldn't find a way to disable this font for browser. I'm used to see Noto Sans too much I guess. You can go to this fonts files and install it locally if you want to and this theme will still work.
sudo wget -P /usr/share/sddm/themes/win10-sddm-theme/fonts https://github.com/birbkeks/win10-sddm-theme/raw/main/fonts/segoeui.ttf -nc
sudo wget -P /usr/share/sddm/themes/win10-sddm-theme/fonts https://github.com/birbkeks/win10-sddm-theme/raw/main/fonts/segoeuil.ttf -nc
sudo wget -P /usr/share/sddm/themes/win10-sddm-theme/fonts https://github.com/birbkeks/win10-sddm-theme/raw/main/fonts/SegMDL2.ttf -nc
sudo wget -P /usr/share/sddm/themes/win10-sddm-theme/fonts https://github.com/birbkeks/win10-sddm-theme/raw/main/fonts/SegoeBoot-Semilight.woff -nc
}
function cursor() {
sudo wget -P /usr/share/icons https://github.com/birbkeks/windows-cursors/releases/download/1.0/windows-cursors.tar.gz -nc
sudo tar -xzf /usr/share/icons/windows-cursors.tar.gz -C /usr/share/icons/
sudo cp /usr/share/icons/windows-cursors/index.theme /usr/share/icons/default/index.theme
sudo cp -r /usr/share/icons/windows-cursors/cursors /usr/share/icons/default
sudo rm -rf /usr/share/icons/windows-cursors
sudo rm -f /usr/share/icons/windows-cursors.tar.gz
}
if [[ $input == "1" ]]; then
echo ""
echo "Installing Windows 10 SDDM Theme..."
echo ""
sddm
echo "Done."
elif [[ $input == "2" ]]; then
echo ""
echo "Required Segoe UI fonts..."
echo ""
font
echo "Done."
elif [[ $input == "3" ]]; then
echo ""
echo "Install Windows Cursor Icons..."
echo ""
cursor
echo "Done."
elif [[ $input == "1 2" ]]; then
echo ""
echo "Install Windows Cursor Icons and Required Segoe UI fonts..."
echo ""
sddm
font
echo "Done."
elif [[ $input == "1 2 3" ]]; then
echo ""
echo "Install Windows Cursor Icons, Required Segoe UI fonts and Windows Cursor Icons..."
echo ""
sddm
font
cursor
echo "Done."
elif [[ $input == "2 3" ]]; then
echo ""
echo "Required Segoe UI fonts and Windows Cursor Icons..."
echo ""
font
cursor
echo "Done."
else
echo ""
echo "Invalid number, please try again."; exit 1
fi