summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--completions/caelestia.fish2
-rw-r--r--data/config.json2
-rwxr-xr-xinstall/spicetify.fish21
-rwxr-xr-xmain.fish2
4 files changed, 24 insertions, 3 deletions
diff --git a/completions/caelestia.fish b/completions/caelestia.fish
index 95e4a50..26c983c 100644
--- a/completions/caelestia.fish
+++ b/completions/caelestia.fish
@@ -22,7 +22,7 @@ complete -c caelestia -n $not_seen -a 'wallpaper' -d 'Change the wallpaper'
complete -c caelestia -n $not_seen -a 'pip' -d 'Picture in picture utilities'
# Install
-set -l commands all btop discord firefox fish foot fuzzel hypr safeeyes scripts shell slurp gtk qt vscode
+set -l commands all btop discord firefox fish foot fuzzel hypr safeeyes scripts shell slurp spicetify gtk qt vscode
complete -c caelestia -n "$seen install && not $seen $commands" -a "$commands"
# Shell
diff --git a/data/config.json b/data/config.json
index 1efe9e4..1d302b0 100644
--- a/data/config.json
+++ b/data/config.json
@@ -19,7 +19,7 @@
"apps": [
{
"selector": ".class == \"Spotify\" or .initialTitle == \"Spotify\" or .initialTitle == \"Spotify Free\"",
- "spawn": "spotify-adblock.desktop",
+ "spawn": "spicetify watch -s",
"action": "spawn move"
},
{
diff --git a/install/spicetify.fish b/install/spicetify.fish
new file mode 100755
index 0000000..fb5e6e0
--- /dev/null
+++ b/install/spicetify.fish
@@ -0,0 +1,21 @@
+#!/bin/fish
+
+. (dirname (status filename))/util.fish
+
+install-deps git spicetify-cli
+
+set -l dist $C_DATA/spicetify
+
+# Clone repo
+update-repo spicetify $dist
+
+# Install systemd service
+setup-systemd-monitor spicetify $dist
+
+# Install theme files
+mkdir -p $CONFIG/spicetify/Themes/caelestia
+cp $dist/color.ini $CONFIG/spicetify/Themes/caelestia/color.ini
+cp $dist/user.css $CONFIG/spicetify/Themes/caelestia/user.css
+
+# Set spicetify theme
+spicetify config current_theme caelestia color_scheme caelestia
diff --git a/main.fish b/main.fish
index 1868595..0c572ba 100755
--- a/main.fish
+++ b/main.fish
@@ -45,7 +45,7 @@ if test "$argv[1]" = scheme
end
if test "$argv[1]" = install
- set -l valid_modules scripts btop discord firefox fish foot fuzzel hypr safeeyes shell slurp gtk qt vscode
+ set -l valid_modules scripts btop discord firefox fish foot fuzzel hypr safeeyes shell slurp spicetify gtk qt vscode
if test "$argv[2]" = all
for module in $valid_modules
$src/install/$module.fish $argv[3..]