~alexdavid/dotfiles

dotfiles/i3blocks/mpd.sh -rwxr-xr-x 194 bytes
73a15050 — Alex David Update vifminfo ignore path 28 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

while true; do
  if ! mpc idle > /dev/null; then
    sleep 120
  fi
  if mpc status | grep playing > /dev/null; then
    echo " $(mpc current)"
  else
    echo
  fi
done