summaryrefslogtreecommitdiffhomepage
path: root/src/Plugins/Monitors.hs
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2014-02-05 02:31:47 -0500
committerBen Boeckel <mathstuf@gmail.com>2014-02-05 02:31:47 -0500
commitc81976467d317dd23489603f255fcf75bb043be9 (patch)
treee304a66fbce51abe1705f04a1eb529c586b4daa7 /src/Plugins/Monitors.hs
parentedfc09975829b7610b0b054f8168574e942f4cf1 (diff)
downloadxmobar-c81976467d317dd23489603f255fcf75bb043be9.tar.gz
xmobar-c81976467d317dd23489603f255fcf75bb043be9.tar.bz2
Add a "ready" check to MPD monitors
If the MPD server isn't responsive or the network is down, MPD will no longer block xmobar from doing its job.
Diffstat (limited to 'src/Plugins/Monitors.hs')
-rw-r--r--src/Plugins/Monitors.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Plugins/Monitors.hs b/src/Plugins/Monitors.hs
index 9421170..baeb615 100644
--- a/src/Plugins/Monitors.hs
+++ b/src/Plugins/Monitors.hs
@@ -40,7 +40,7 @@ import Plugins.Monitors.Wireless
#endif
#ifdef LIBMPD
import Plugins.Monitors.MPD
-import Plugins.Monitors.Common (runMB)
+import Plugins.Monitors.Common (runMD, runMBD)
#endif
#ifdef ALSA
import Plugins.Monitors.Volume
@@ -155,8 +155,8 @@ instance Exec Monitors where
start (Wireless i a r) = runM (a ++ [i]) wirelessConfig runWireless r
#endif
#ifdef LIBMPD
- start (MPD a r) = runM a mpdConfig runMPD r
- start (AutoMPD a) = runMB a mpdConfig runMPD mpdWait
+ start (MPD a r) = runMD a mpdConfig runMPD r mpdReady
+ start (AutoMPD a) = runMBD a mpdConfig runMPD mpdWait mpdReady
#endif
#ifdef ALSA
start (Volume m c a r) = runM a volumeConfig (runVolume m c) r