forked from Astromations/Hazy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
28 lines (21 loc) · 786 Bytes
/
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
#!/bin/sh
set -e
# Download URL
theme_url="https://raw.githubusercontent.com/Astromations/Hazy/main"
# Setup directories to download to
spice_dir="$(dirname "$(spicetify -c)")"
theme_dir="${spice_dir}/Themes"
# Make directories if needed
mkdir -p "${theme_dir}/Hazy"
# Download latest tagged files into correct director
echo "Downloading Hazy..."
curl --silent --output "${theme_dir}/Hazy/color.ini" "${theme_url}/color.ini"
curl --silent --output "${theme_dir}/Hazy/user.css" "${theme_url}/user.css"
curl --silent --output "${theme_dir}/Hazy/theme.js" "${theme_url}/theme.js"
echo "Done"
# Apply theme
echo "Applying theme"
spicetify config current_theme Hazy
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1 inject_theme_js 1
spicetify apply
echo "All done!"