Spotify
Whatโ
Show the currently playing song in the Spotify client.
caution
Be aware this can make the prompt a tad bit slower as it needs to get a response from the Spotify player.
On macOS & Linux, all states are supported (playing/paused/stopped).
On Windows/WSL, only the playing state is supported (no information when paused/stopped). It supports fetching information from the native Spotify application and Edge PWA.
Sample Configurationโ
- json
- yaml
- toml
{
"type": "spotify",
"style": "powerline",
"powerline_symbol": "๎ฐ",
"foreground": "#ffffff",
"background": "#1BD760",
"options": {
"playing_icon": "๎ ",
"paused_icon": "๏ ",
"stopped_icon": "๏ "
}
}
type: spotify
style: powerline
powerline_symbol: ๎ฐ
foreground: "#ffffff"
background: "#1BD760"
options:
playing_icon: "๎ "
paused_icon: "๏ "
stopped_icon: "๏ "
type = "spotify"
style = "powerline"
powerline_symbol = "๎ฐ"
foreground = "#ffffff"
background = "#1BD760"
[options]
playing_icon = "๎ "
paused_icon = "๏ "
stopped_icon = "๏ "
Optionsโ
| Name | Type | Default | Description |
|---|---|---|---|
playing_icon | string | \ue602 | text/icon to show when playing |
paused_icon | string | \uf04c | text/icon to show when paused |
stopped_icon | string | \uf04d | text/icon to show when stopped |
Template (info)โ
default template
{{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }}
Propertiesโ
| Name | Type | Description |
|---|---|---|
.Status | string | player status (playing, paused, stopped) |
.Artist | string | current artist |
.Track | string | current track |
.Icon | string | icon (based on .Status) |