-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinstall.sh
More file actions
46 lines (41 loc) · 1.13 KB
/
Copy pathinstall.sh
File metadata and controls
46 lines (41 loc) · 1.13 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
#!/usr/bin/env bash
## Copyright (C) 2020-2024 PhilipPanda <https://templeenterprise.com>
##
## Install TempleOS Theme
## Directories
DIR=`pwd`
ODIR="$HOME/.config/openbox-themes/themes"
TDIR='/usr/share/themes'
IDIR='/usr/share/icons'
FDIR='/usr/share/fonts'
SUCCESS=0
## Copy Openbox Theme
echo 'Installing Openbox Theme...'
cp -rf "$DIR"/dots/templeOS "$ODIR"
if [[ -d "$ODIR/templeOS" ]]; then
echo -e 'Theme Installed!\n'
SUCCESS=1
fi
## Install Themes and icons (Requires Root)
echo 'Installing Icons and Theme in /usr directory, Root Password is required...'
sudo cp -rf "$DIR"/theme/* "$TDIR"
if [[ -d "$TDIR/TempleOS" ]]; then
echo 'GTK Theme Installed!'
SUCCESS=1
fi
sudo cp -rf "$DIR"/icons/* "$IDIR"
if [[ -d "$IDIR/TempleOS" ]]; then
echo 'Icons Installed!'
SUCCESS=1
fi
sudo cp -rf "$DIR"/fonts/* "$FDIR"
if [[ -e "$FDIR/templeos_font.ttf" ]]; then
echo 'Fonts Installed!'
SUCCESS=1
fi
if [[ "$SUCCESS" == '1' ]]; then
echo -e '\nInstallation Completed!'
echo 'You can now apply the theme via openbox menu. Right click on desktop, Go to Preferences > Change Style'
else
echo -e '\nFailed to install the theme properly.'
fi