Add declarative spotify config

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-08-20 12:45:18 +02:00
parent d70a51685e
commit a048be5c51
4 changed files with 110 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
SOURCE_FILE=$(realpath -m "$1")
TARGET_FILE=$(realpath -m "$2")
mkdir -p "$(dirname "$TARGET_FILE")"
TEMP_FILE=$(mktemp)
cat "$SOURCE_FILE" > "$TEMP_FILE"
if [ -f "$TARGET_FILE" ]; then
while IFS='=' read -r key value; do
if ! grep -q "^${key}=" "$TEMP_FILE"; then
echo "${key}=${value}" >> "$TEMP_FILE"
fi
done < "$TARGET_FILE"
fi
mv "$TEMP_FILE" "$TARGET_FILE"
echo "Configuration file $TARGET_FILE has been updated."

View File

@@ -0,0 +1,2 @@
app.autostart-mode="off"
storage.last-location="/home/nick/.cache/spotify/Storage"

View File

@@ -0,0 +1,7 @@
audio.crossfade_v2=true
audio.allow_downgrade=false
audio.sync_bitrate_enumeration=4
audio.play_bitrate_enumeration=4
audio.play_bitrate_non_metered_migrated=true
audio.play_bitrate_non_metered_enumeration=4
ui.track_notifications_enabled=false