added spotify metadata script to polybar
This commit is contained in:
parent
7f77c59145
commit
828da789ee
16
.config/polybar/spotifyd-meta.sh
Executable file
16
.config/polybar/spotifyd-meta.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
meta(){
|
||||||
|
metadata=$(playerctl -f "{{title}} - {{artist}}" metadata) && echo $metadata
|
||||||
|
}
|
||||||
|
|
||||||
|
i=0
|
||||||
|
|
||||||
|
until meta || [ $i -gt 10 ];
|
||||||
|
do
|
||||||
|
sleep 1
|
||||||
|
let i=i+1
|
||||||
|
done
|
||||||
|
|
||||||
|
exit $?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user