diff --git a/Library/LaunchAgents/me.00dani.mpd-notify-bitbar.plist b/Library/LaunchAgents/me.00dani.mpd-notify-bitbar.plist new file mode 100644 index 0000000..0fa175b --- /dev/null +++ b/Library/LaunchAgents/me.00dani.mpd-notify-bitbar.plist @@ -0,0 +1,24 @@ + + + + + KeepAlive + + OtherJobActive + + homebrew.mxcl.mpd + + + + Label + me.00dani.mpd-notify-bitbar + ProgramArguments + + zsh + -lc + exec mpd-notify-bitbar + + RunAtLoad + + + diff --git a/local/bin/mpd-notify-bitbar b/local/bin/mpd-notify-bitbar new file mode 100755 index 0000000..f519b34 --- /dev/null +++ b/local/bin/mpd-notify-bitbar @@ -0,0 +1,4 @@ +#!/bin/bash +while mpc idle; do + open bitbar://refreshPlugin?name=mpd* +done