summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2020-11-25 17:15:46 +0000
committerjao <jao@gnu.org>2020-11-25 17:15:46 +0000
commit779bc598aa5f33e74cae5d6f5d28aab7f49b5c85 (patch)
tree1ace224e474a53dc08d066522bdd2388ffcb6710 /src/Xmobar
parentef01324fac87be5e0b9f7d1220989e4d56f096e9 (diff)
downloadxmobar-779bc598aa5f33e74cae5d6f5d28aab7f49b5c85.tar.gz
xmobar-779bc598aa5f33e74cae5d6f5d28aab7f49b5c85.tar.bz2
More consistent argument order for MPDX
Diffstat (limited to 'src/Xmobar')
-rw-r--r--src/Xmobar/Plugins/Monitors.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Xmobar/Plugins/Monitors.hs b/src/Xmobar/Plugins/Monitors.hs
index cca0948..594065c 100644
--- a/src/Xmobar/Plugins/Monitors.hs
+++ b/src/Xmobar/Plugins/Monitors.hs
@@ -90,7 +90,7 @@ data Monitors = Network Interface Args Rate
#endif
#ifdef LIBMPD
| MPD Args Rate
- | MPDX String Args Rate
+ | MPDX Args Rate Alias
| AutoMPD Args
#endif
#ifdef ALSA
@@ -149,7 +149,7 @@ instance Exec Monitors where
#ifdef LIBMPD
alias (MPD _ _) = "mpd"
alias (AutoMPD _) = "autompd"
- alias (MPDX a _ _) = a
+ alias (MPDX _ _ a) = a
#endif
#ifdef ALSA
alias (Volume m c _ _) = m ++ ":" ++ c
@@ -193,7 +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 (MPDX a r _) = start (MPD a r)
start (AutoMPD a) = runMBD a mpdConfig runMPD mpdWait mpdReady
#endif
#ifdef ALSA