diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Plugins/Monitors/MPD.hs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Plugins/Monitors/MPD.hs b/src/Plugins/Monitors/MPD.hs index cc40a56..cb3acdf 100644 --- a/src/Plugins/Monitors/MPD.hs +++ b/src/Plugins/Monitors/MPD.hs @@ -12,7 +12,7 @@ -- ----------------------------------------------------------------------------- -module Plugins.Monitors.MPD ( mpdConfig, runMPD ) where +module Plugins.Monitors.MPD ( mpdConfig, runMPD, mpdWait ) where import Plugins.Monitors.Common import System.Console.GetOpt @@ -55,6 +55,15 @@ runMPD args = do s <- parseMPD status song opts parseTemplate s +mpdWait :: IO () +mpdWait = M.withMPD idle >> return () + where +#if defined LIBMPD_07 + idle = M.idle +#else + idle = M.idle [M.PlayerS, M.MixerS] +#endif + mopts :: [String] -> IO MOpts mopts argv = case getOpt Permute options argv of |