dotfiles-remastered/.config/spotifyd/change.sh

19 lines
168 B
Bash
Raw Normal View History

2020-06-16 22:09:26 +00:00
#!/usr/bin/env sh
# send ipc to polybar to update
hook (){
polybar-msg hook spotifyd 1
}
i=0
until hook || [ $i -gt 10 ];
do
sleep 1
let i=i+1
done
exit $?