#!/bin/bash while mpc idle; do open swiftbar://refreshplugin?name=mpd-control done