-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·57 lines (48 loc) · 2.31 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
#!/bin/bash
SRC_DIR=$(cd $(dirname $0) && pwd)
if [ "$UID" = "0" ]
then
AURORAE_DIR="/usr/share/aurorae/themes"
SCHEMES_DIR="/usr/share/color-schemes"
PLASMA_DIR="/usr/share/plasma/desktoptheme"
LAYOUT_DIR="/usr/share/plasma/layout-templates"
LOOKFEEL_DIR="/usr/share/plasma/look-and-feel"
KVANTUM_DIR="/usr/share/Kvantum"
WALLPAPER_DIR="/usr/share/wallpapers"
ICONS_DIR="/usr/share/icons"
CURSORS_DIR="/usr/share/icons"
else
AURORAE_DIR="$HOME/.local/share/aurorae/themes"
SCHEMES_DIR="$HOME/.local/share/color-schemes"
PLASMA_DIR="$HOME/.local/share/plasma/desktoptheme"
LAYOUT_DIR="$HOME/.local/share/plasma/layout-templates"
LOOKFEEL_DIR="$HOME/.local/share/plasma/look-and-feel"
KVANTUM_DIR="$HOME/.config/Kvantum"
WALLPAPER_DIR="$HOME/.local/share/wallpapers"
ICONS_DIR="$HOME/.local/share/icons"
CURSORS_DIR="$HOME/.icons"
fi
THEME_NAME="Windows 11 KDE-Design"
[[ ! -d ${AURORAE_DIR} ]] && mkdir -p ${AURORAE_DIR}
[[ ! -d ${SCHEMES_DIR} ]] && mkdir -p ${SCHEMES_DIR}
[[ ! -d ${PLASMA_DIR} ]] && mkdir -p ${PLASMA_DIR}
[[ ! -d ${LOOKFEEL_DIR} ]] && mkdir -p ${LOOKFEEL_DIR}
[[ ! -d ${KVANTUM_DIR} ]] && mkdir -p ${KVANTUM_DIR}
[[ ! -d ${WALLPAPER_DIR} ]] && mkdir -p ${WALLPAPER_DIR}
[[ ! -d ${ICONS_DIR} ]] && mkdir -p ${ICONS_DIR}
[[ ! -d ${CURSORS_DIR} ]] && mkdir -p ${CURSORS_DIR}
install() {
local name=${1}
cp -r ${SRC_DIR}/aurorae/* ${AURORAE_DIR}
cp -r ${SRC_DIR}/color-schemes/*.colors ${SCHEMES_DIR}
cp -r ${SRC_DIR}/Kvantum/* ${KVANTUM_DIR}
cp -r ${SRC_DIR}/plasma/desktoptheme/* ${PLASMA_DIR}
cp -r ${SRC_DIR}/plasma/look-and-feel/* ${LOOKFEEL_DIR}
cp -r ${SRC_DIR}/wallpaper/Win11OS-light ${WALLPAPER_DIR}
cp -r ${SRC_DIR}/wallpaper/Win11OS-dark ${WALLPAPER_DIR}
cp -r ${SRC_DIR}/icons/* ${ICONS_DIR}
cp -r ${SRC_DIR}/cursors/* ${CURSORS_DIR}
}
echo "Installing \"${THEME_NAME}\"..."
install "${name:-${THEME_NAME}}"
echo "Install finished."