Add mpd-notify-bitbar daemon to refresh BitBar's display instantly when mpd's state changes
This commit is contained in:
parent
ca92d0989c
commit
364b2d3a62
2 changed files with 28 additions and 0 deletions
24
Library/LaunchAgents/me.00dani.mpd-notify-bitbar.plist
Normal file
24
Library/LaunchAgents/me.00dani.mpd-notify-bitbar.plist
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>KeepAlive</key>
|
||||||
|
<dict>
|
||||||
|
<key>OtherJobActive</key>
|
||||||
|
<dict>
|
||||||
|
<key>homebrew.mxcl.mpd</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>Label</key>
|
||||||
|
<string>me.00dani.mpd-notify-bitbar</string>
|
||||||
|
<key>ProgramArguments</key>
|
||||||
|
<array>
|
||||||
|
<string>zsh</string>
|
||||||
|
<string>-lc</string>
|
||||||
|
<string>exec mpd-notify-bitbar</string>
|
||||||
|
</array>
|
||||||
|
<key>RunAtLoad</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
4
local/bin/mpd-notify-bitbar
Executable file
4
local/bin/mpd-notify-bitbar
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
while mpc idle; do
|
||||||
|
open bitbar://refreshPlugin?name=mpd*
|
||||||
|
done
|
Loading…
Reference in a new issue