diff options
author | jao <jao@gnu.org> | 2020-11-24 02:22:55 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2020-11-24 02:22:55 +0000 |
commit | 94c43a3125418d2233f8b4f5af645b0e4ac3fb2b (patch) | |
tree | 01dcfff47f5bf0820cb6a779da1dc39d51bc8bb6 /src/Xmobar | |
parent | a071c2a49d0804e410cdc3aeb9c49b622c9a416a (diff) | |
download | xmobar-94c43a3125418d2233f8b4f5af645b0e4ac3fb2b.tar.gz xmobar-94c43a3125418d2233f8b4f5af645b0e4ac3fb2b.tar.bz2 |
New monitor: MPDX
Diffstat (limited to 'src/Xmobar')
-rw-r--r-- | src/Xmobar/Plugins/Monitors.hs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Xmobar/Plugins/Monitors.hs b/src/Xmobar/Plugins/Monitors.hs index 322d401..cca0948 100644 --- a/src/Xmobar/Plugins/Monitors.hs +++ b/src/Xmobar/Plugins/Monitors.hs @@ -3,7 +3,7 @@ ----------------------------------------------------------------------------- -- | -- Module : Xmobar.Plugins.Monitors --- Copyright : (c) 2010, 2011, 2012, 2013, 2017, 2018, 2019 Jose Antonio Ortega Ruiz +-- Copyright : (c) 2010, 2011, 2012, 2013, 2017, 2018, 2019, 2020 Jose Antonio Ortega Ruiz -- (c) 2007-10 Andrea Rossato -- License : BSD-style (see LICENSE) -- @@ -89,7 +89,8 @@ data Monitors = Network Interface Args Rate | Wireless Interface Args Rate #endif #ifdef LIBMPD - | MPD Args Rate + | MPD Args Rate + | MPDX String Args Rate | AutoMPD Args #endif #ifdef ALSA @@ -148,6 +149,7 @@ instance Exec Monitors where #ifdef LIBMPD alias (MPD _ _) = "mpd" alias (AutoMPD _) = "autompd" + alias (MPDX a _ _) = a #endif #ifdef ALSA alias (Volume m c _ _) = m ++ ":" ++ c @@ -191,6 +193,7 @@ instance Exec Monitors where #endif #ifdef LIBMPD start (MPD a r) = runMD a mpdConfig runMPD r mpdReady + start (MPDX _ a r) = start (MPD a r) start (AutoMPD a) = runMBD a mpdConfig runMPD mpdWait mpdReady #endif #ifdef ALSA |