blob: feed2452af5042f45fa956f1c450e891b115399a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
p="/tmp/music"
fmt="{{xesam:trackNumber}} {{title}} <fc=sienna3>{{artist}}</fc> {{album}} <fc=grey50>{{duration(mpris:length)}}</fc>"
info=$(playerctl -p spotifyd -f "$fmt" metadata)
[[ -p $p ]] || mkfifo $p
echo -e "$info" > "/tmp/debug"
echo "$info" > $p
|