From 5bbead188a155482eacc902f6562955e771c018f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 9 Apr 2025 19:26:47 +1000 Subject: install: add spicetify Also use spicetify as default music player for toggles --- completions/caelestia.fish | 2 +- data/config.json | 2 +- install/spicetify.fish | 21 +++++++++++++++++++++ main.fish | 2 +- 4 files changed, 24 insertions(+), 3 deletions(-) create mode 100755 install/spicetify.fish 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..] -- cgit v1.2.3-freya