mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-03 07:17:26 -08:00
b8d3f5781c
If we are in a WSL environment and tasklist.exe is in our PATH, leverage it to scan for the Spotify.exe window title. Add unit tests and a new mock for env.isWSL
39 lines
1.1 KiB
Markdown
39 lines
1.1 KiB
Markdown
---
|
|
id: spotify
|
|
title: Spotify
|
|
sidebar_label: Spotify
|
|
---
|
|
|
|
## What
|
|
|
|
Show the currently playing song in the Spotify MacOS/Windows client.
|
|
On Windows/WSL, only the playing state is supported (no information when paused/stopped).
|
|
On macOS, all states are supported (playing/paused/stopped).
|
|
**Be aware this can make the prompt a tad bit slower as it needs to get a response from the Spotify player.**
|
|
|
|
## Sample Configuration
|
|
|
|
```json
|
|
{
|
|
"type": "spotify",
|
|
"style": "powerline",
|
|
"powerline_symbol": "\uE0B0",
|
|
"foreground": "#ffffff",
|
|
"background": "#1BD760",
|
|
"properties": {
|
|
"prefix": "\uF9C6 ",
|
|
"playing_icon": "\uE602 ",
|
|
"paused_icon": "\uF8E3 ",
|
|
"stopped_icon": "\uF04D ",
|
|
"track_separator" : " - "
|
|
}
|
|
}
|
|
```
|
|
|
|
## Properties
|
|
|
|
- playing_icon: `string` - text/icon to show when playing - defaults to `\uE602 `
|
|
- paused_icon: `string` - text/icon to show when paused - defaults to `\uF8E3 `
|
|
- stopped_icon: `string` - text/icon to show when stopped - defaults to `\uF04D `
|
|
- track_separator: `string` - text/icon to put between the artist and song name - defaults to ` - `
|