mirror of
https://github.com/danbulant/dotfiles
synced 2026-07-05 19:21:10 +00:00
fix spotify
This commit is contained in:
parent
0798ae887d
commit
91c76659fc
2 changed files with 4 additions and 2 deletions
|
|
@ -66,9 +66,9 @@
|
||||||
// "format-alt": "{alt}",
|
// "format-alt": "{alt}",
|
||||||
},
|
},
|
||||||
"custom/spotify": {
|
"custom/spotify": {
|
||||||
"exec": "bash ~/.config/waybar/album_art.sh",
|
"exec": "bash ~/.config/waybar/spotify-meta.sh",
|
||||||
"format": "{}",
|
"format": "{}",
|
||||||
"return-type": "json",
|
//"return-type": "json",
|
||||||
"on-click": "playerctl play-pause",
|
"on-click": "playerctl play-pause",
|
||||||
"interval": 10
|
"interval": 10
|
||||||
},
|
},
|
||||||
|
|
|
||||||
2
.config/waybar/spotify-meta.sh
Normal file
2
.config/waybar/spotify-meta.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
playerctl metadata --format "{{artist}} - {{title}}"
|
||||||
Loading…
Reference in a new issue