Spotify
Traducción Beta No Oficial
Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →
Qué hace
Muestra la canción que se está reproduciendo en el cliente de Spotify.
precaución
Ten en cuenta que esto puede ralentizar ligeramente el prompt ya que necesita obtener una respuesta del reproductor de Spotify.
En macOS y Linux, se admiten todos los estados (reproducción/pausa/detenido).
En Windows/WSL, solo se admite el estado de reproducción (sin información cuando está pausado/detenido). Es compatible con la obtención de información de la aplicación nativa de Spotify y la PWA de Edge.
Configuración de ejemplo
- 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 = " "
Opciones
| 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 |
Plantilla (info)
plantilla predeterminada
{{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }}
Propiedades
| Name | Type | Description |
|---|---|---|
.Status | string | player status (playing, paused, stopped) |
.Artist | string | current artist |
.Track | string | current track |
.Icon | string | icon (based on .Status) |