aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status/music_update_bar
blob: b0d68b16d890703d5622589ff3ce36299a0b9bd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

while :
do
  prev="$(playerctl --player=spotify metadata title)"
  item=$prev
  while [[ $item == $prev ]]
  do
    item="$(playerctl --player=spotify metadata title)";
    sleep 0.5;
  done
  kill -37 $(pidof dwmblocks);
  item="";
done