Skip to main content

Spotify

Whatโ€‹

Show the currently playing song in the Spotify macOS/Windows clients.

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, 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โ€‹

{
"type": "spotify",
"style": "powerline",
"powerline_symbol": "๎‚ฐ",
"foreground": "#ffffff",
"background": "#1BD760",
"properties": {
"playing_icon": "๎˜‚ ",
"paused_icon": "๏ฃฃ ",
"stopped_icon": "๏ "
}
}

Propertiesโ€‹

NameTypeDefaultDescription
playing_iconstring\uE602 text/icon to show when playing
paused_iconstring\uF8E3 text/icon to show when paused
stopped_iconstring\uF04Dtext/icon to show when stopped

Template (info)โ€‹

default template
{{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }}

Propertiesโ€‹

NameTypeDescription
.Statusstringplayer status (playing, paused, stopped)
.Artiststringcurrent artist
.Trackstringcurrent track
.Iconstringicon (based on .Status)