Skip to content

Commit

Permalink
chore: theme script migration (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohitstom committed Apr 16, 2023
1 parent 58a7099 commit 0213a8e
Show file tree
Hide file tree
Showing 7 changed files with 278 additions and 293 deletions.
16 changes: 4 additions & 12 deletions Dribbblish/README.md
Expand Up @@ -57,22 +57,17 @@ Run these commands:
In **Bash**:
```bash
cd "$(dirname "$(spicetify -c)")/Themes/Dribbblish"
mkdir -p ../../Extensions
cp dribbblish.js ../../Extensions/.
spicetify config extensions dribbblish.js
spicetify config current_theme Dribbblish color_scheme base
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1 inject_theme_js 1
spicetify apply
```

### Windows
In **Powershell**:
```powershell
cd "$(spicetify -c | Split-Path)\Themes\Dribbblish"
Copy-Item dribbblish.js ..\..\Extensions
spicetify config extensions dribbblish.js
spicetify config current_theme Dribbblish color_scheme base
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1 inject_theme_js 1
spicetify apply
```

Expand All @@ -97,12 +92,9 @@ Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/spicetify/
```

## Manual uninstall
Remove the dribbblish script with the following commands
Remove the dribbblish theme with the following commands

```
spicetify config extensions dribbblish.js-
```
And remove Patch lines you added in config file earlier. Finally, run:
```
spicetify config current_theme " " color_scheme " "
spicetify apply
```
6 changes: 1 addition & 5 deletions Dribbblish/install.ps1
Expand Up @@ -26,13 +26,9 @@ if (Test-Path $destPath) {
}
Copy-Item $dribPath $destPath -Recurse

# Copy extension file
New-Item -ItemType Directory -Force "$spicePath\Extensions"
Copy-Item "$destPath\dribbblish.js" "$spicePath\Extensions"

Write-Host "Configuring:" -ForegroundColor Green
spicetify
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1 current_theme Dribbblish extensions dribbblish.js
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1 inject_theme_js 1 current_theme Dribbblish

# Add patch
$configFile = Get-Content "$spicePath\config-xpui.ini"
Expand Down

0 comments on commit 0213a8e

Please sign in to comment.