mirror of
https://github.com/morpheusthewhite/spicetify-themes.git
synced 2024-11-22 02:42:54 +01:00
chore: theme script migration (#912)
This commit is contained in:
parent
58a709916a
commit
0213a8e482
@ -57,11 +57,8 @@ Run these commands:
|
|||||||
In **Bash**:
|
In **Bash**:
|
||||||
```bash
|
```bash
|
||||||
cd "$(dirname "$(spicetify -c)")/Themes/Dribbblish"
|
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 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
|
spicetify apply
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -69,10 +66,8 @@ spicetify apply
|
|||||||
In **Powershell**:
|
In **Powershell**:
|
||||||
```powershell
|
```powershell
|
||||||
cd "$(spicetify -c | Split-Path)\Themes\Dribbblish"
|
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 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
|
spicetify apply
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -97,12 +92,9 @@ Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/spicetify/
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Manual uninstall
|
## Manual uninstall
|
||||||
Remove the dribbblish script with the following commands
|
Remove the dribbblish theme with the following commands
|
||||||
|
|
||||||
```
|
```
|
||||||
spicetify config extensions dribbblish.js-
|
spicetify config current_theme " " color_scheme " "
|
||||||
```
|
|
||||||
And remove Patch lines you added in config file earlier. Finally, run:
|
|
||||||
```
|
|
||||||
spicetify apply
|
spicetify apply
|
||||||
```
|
```
|
||||||
|
@ -26,13 +26,9 @@ if (Test-Path $destPath) {
|
|||||||
}
|
}
|
||||||
Copy-Item $dribPath $destPath -Recurse
|
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
|
Write-Host "Configuring:" -ForegroundColor Green
|
||||||
spicetify
|
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
|
# Add patch
|
||||||
$configFile = Get-Content "$spicePath\config-xpui.ini"
|
$configFile = Get-Content "$spicePath\config-xpui.ini"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
spicetify config current_theme " " extensions dribbblish.js-
|
spicetify config current_theme " "
|
||||||
|
|
||||||
$configPath = spicetify -c
|
$configPath = spicetify -c
|
||||||
$configFile = Get-Content $configPath
|
$configFile = Get-Content $configPath
|
||||||
|
@ -43,19 +43,18 @@ spicetify config extensions fullAppDisplay.js
|
|||||||
spicetify apply
|
spicetify apply
|
||||||
```
|
```
|
||||||
|
|
||||||
2. put **Turntable** and **turntable.js** into the **.config/spicetify**
|
2. put **Turntable** into the **.config/spicetify**
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd spicetify-themes
|
cd spicetify-themes
|
||||||
cp -r Turntable ~/.config/spicetify/Themes
|
cp -r Turntable ~/.config/spicetify/Themes
|
||||||
cp Turntable/turntable.js ~/.config/spicetify/Extensions
|
|
||||||
```
|
```
|
||||||
|
|
||||||
3. select the theme and extension, then apply
|
3. select the theme, then apply
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
spicetify config current_theme Turntable
|
spicetify config current_theme Turntable
|
||||||
spicetify config extensions turntable.js
|
spicetify config inject_theme_js 1
|
||||||
spicetify apply
|
spicetify apply
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -65,7 +64,6 @@ spicetify apply
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
rm -r ~/.config/spicetify/Themes/Turntable
|
rm -r ~/.config/spicetify/Themes/Turntable
|
||||||
rm ~/.config/spicetify/Extensions/turntable.js
|
|
||||||
```
|
```
|
||||||
|
|
||||||
2. config to spicetify default theme
|
2. config to spicetify default theme
|
||||||
@ -74,11 +72,10 @@ rm ~/.config/spicetify/Extensions/turntable.js
|
|||||||
spicetify config current_theme SpicetifyDefault
|
spicetify config current_theme SpicetifyDefault
|
||||||
```
|
```
|
||||||
|
|
||||||
3. remove extension - Full App Display and Turntable(optional)
|
3. remove extension - Full App Display
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
spicetify config extensions fullAppDisplay.js-
|
spicetify config extensions fullAppDisplay.js-
|
||||||
spicetify config extensions turntable.js-
|
|
||||||
```
|
```
|
||||||
|
|
||||||
4. apply
|
4. apply
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
"usercss": "Dribbblish/user.css",
|
"usercss": "Dribbblish/user.css",
|
||||||
"schemes": "Dribbblish/color.ini",
|
"schemes": "Dribbblish/color.ini",
|
||||||
"include": [
|
"include": [
|
||||||
"https://raw.githubusercontent.com/spicetify/spicetify-themes/master/Dribbblish/dribbblish.js"
|
"https://raw.githubusercontent.com/spicetify/spicetify-themes/master/Dribbblish/theme.js"
|
||||||
],
|
],
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
@ -94,7 +94,7 @@
|
|||||||
"usercss": "Turntable/user.css",
|
"usercss": "Turntable/user.css",
|
||||||
"schemes": "Turntable/color.ini",
|
"schemes": "Turntable/color.ini",
|
||||||
"include": [
|
"include": [
|
||||||
"https://raw.githubusercontent.com/spicetify/spicetify-themes/master/Turntable/turntable.js"
|
"https://raw.githubusercontent.com/spicetify/spicetify-themes/master/Turntable/theme.js"
|
||||||
],
|
],
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user