diff options
| author | Ben Boeckel <mathstuf@gmail.com> | 2012-06-09 00:47:08 -0400 | 
|---|---|---|
| committer | Ben Boeckel <mathstuf@gmail.com> | 2012-06-09 00:47:08 -0400 | 
| commit | 0f8e3e7cf4afb28a9ed8c1922f8090c67d4714f1 (patch) | |
| tree | bc65f4cc3df4551b10531c4b8a004ac4e5beb740 /src/Plugins | |
| parent | 4d0d5880b8e151084e6dfb27cc6d51d68609b048 (diff) | |
| download | xmobar-0f8e3e7cf4afb28a9ed8c1922f8090c67d4714f1.tar.gz xmobar-0f8e3e7cf4afb28a9ed8c1922f8090c67d4714f1.tar.bz2 | |
Add the AutoMPD monitor
Diffstat (limited to 'src/Plugins')
| -rw-r--r-- | src/Plugins/Monitors.hs | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/src/Plugins/Monitors.hs b/src/Plugins/Monitors.hs index 9f17699..a531e26 100644 --- a/src/Plugins/Monitors.hs +++ b/src/Plugins/Monitors.hs @@ -19,7 +19,7 @@ module Plugins.Monitors where  import Plugins -import Plugins.Monitors.Common ( runM ) +import Plugins.Monitors.Common ( runM, runMB )  import Plugins.Monitors.Weather  import Plugins.Monitors.Net  import Plugins.Monitors.Mem @@ -71,6 +71,7 @@ data Monitors = Weather      Station    Args Rate  #endif  #ifdef LIBMPD                | MPD      Args       Rate +              | AutoMPD  Args  #endif  #ifdef ALSA                | Volume   String     String Args Rate @@ -115,6 +116,7 @@ instance Exec Monitors where  #endif  #ifdef LIBMPD      alias (MPD _ _) = "mpd" +    alias (AutoMPD _) = "autompd"  #endif  #ifdef ALSA      alias (Volume m c _ _) = m ++ ":" ++ c @@ -147,6 +149,7 @@ instance Exec Monitors where  #endif  #ifdef LIBMPD      start (MPD a r) = runM a mpdConfig runMPD r +    start (AutoMPD a) = runMB a mpdConfig runMPD mpdWait  #endif  #ifdef ALSA      start (Volume m c a r) = runM a volumeConfig (runVolume m c) r | 
