-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from mytricker0/auto-install
Auto install
- Loading branch information
Showing
4 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
# Define variables | ||
CUSTOM_APPS_DIR="$HOME/.config/spicetify/CustomApps" | ||
NAME="better-local-files" | ||
|
||
STATS_APP_DIR="$CUSTOM_APPS_DIR/$NAME" | ||
|
||
ZIP_URL="https://github.com/Pithaya/spicetify-apps-dist/archive/refs/heads/dist/better-local-files.zip" | ||
ZIP_FILE="/tmp/spicetifyed.zip" | ||
TEMP_DIR="/tmp/spicetifyed" | ||
|
||
# Create CustomApps directory if it doesn't exist | ||
mkdir -p "$CUSTOM_APPS_DIR" | ||
|
||
# Download the zip file | ||
curl -L -o "$ZIP_FILE" "$ZIP_URL" | ||
|
||
# Unzip the file | ||
unzip "$ZIP_FILE" -d "$TEMP_DIR" | ||
|
||
# Move the unzipped folder to the correct location | ||
mv "$TEMP_DIR"/* "$STATS_APP_DIR" | ||
|
||
# Apply Spicetify configuration | ||
spicetify config custom_apps "$NAME" | ||
|
||
spicetify apply | ||
|
||
# Clean up | ||
rm -rf "$ZIP_FILE" "$TEMP_DIR" | ||
|
||
echo "Installation complete. Enjoy your new app!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
# Define variables | ||
CUSTOM_APPS_DIR="$HOME/.config/spicetify/CustomApps" | ||
NAME="eternal-jukebox" | ||
|
||
STATS_APP_DIR="$CUSTOM_APPS_DIR/$NAME" | ||
|
||
ZIP_URL="https://github.com/Pithaya/spicetify-apps-dist/archive/refs/heads/dist/eternal-jukebox.zip" | ||
ZIP_FILE="/tmp/spicetifyed.zip" | ||
TEMP_DIR="/tmp/spicetifyed" | ||
|
||
# Create CustomApps directory if it doesn't exist | ||
mkdir -p "$CUSTOM_APPS_DIR" | ||
|
||
# Download the zip file | ||
curl -L -o "$ZIP_FILE" "$ZIP_URL" | ||
|
||
# Unzip the file | ||
unzip "$ZIP_FILE" -d "$TEMP_DIR" | ||
|
||
# Move the unzipped folder to the correct location | ||
mv "$TEMP_DIR"/* "$STATS_APP_DIR" | ||
|
||
# Apply Spicetify configuration | ||
spicetify config custom_apps "$NAME" | ||
|
||
spicetify apply | ||
|
||
# Clean up | ||
rm -rf "$ZIP_FILE" "$TEMP_DIR" | ||
|
||
echo "Installation complete. Enjoy your new app!" |