Spotify
Onofficiรซle Beta-vertaling
Deze pagina is vertaald door PageTurner AI (beta). Niet officieel goedgekeurd door het project. Een fout gevonden? Probleem melden โ
Watโ
Toon het nummer dat nu speelt in de Spotify-client.
let op
Houd er rekening mee dat dit de prompt iets kan vertragen omdat er een reactie van de Spotify-speler moet worden opgehaald.
Op macOS en Linux worden alle statussen ondersteund (afspelen/pauzeren/gestopt).
Op Windows/WSL wordt alleen de afspeelstatus ondersteund (geen informatie bij pauzeren/gestopt). Het ondersteunt het ophalen van informatie van de native Spotify-toepassing en Edge PWA.
Voorbeeldconfiguratieโ
- 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 = "๏ "
Optiesโ
| 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 (informatie)โ
standaard template
{{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }}
Eigenschappenโ
| Name | Type | Description |
|---|---|---|
.Status | string | player status (playing, paused, stopped) |
.Artist | string | current artist |
.Track | string | current track |
.Icon | string | icon (based on .Status) |