Spotify
Traduction Bêta Non Officielle
Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →
Description
Affiche la chanson en cours de lecture dans le client Spotify.
attention
Notez que cela peut légèrement ralentir l'invite de commande car elle doit interroger le lecteur Spotify.
Sur macOS et Linux, tous les états sont pris en charge (lecture/pause/arrêt).
Sur Windows/WSL, seul l'état de lecture est pris en charge (aucune information en pause/arrêt). La fonctionnalité récupère les informations depuis l'application native Spotify et l'application PWA Edge.
Exemple de 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 |
Modèle (info)
modèle par défaut
{{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }}
Propriétés
| Name | Type | Description |
|---|---|---|
.Status | string | player status (playing, paused, stopped) |
.Artist | string | current artist |
.Track | string | current track |
.Icon | string | icon (based on .Status) |