From 79e06cf76aa30d7b551ca3f77e9304290d06f05e Mon Sep 17 00:00:00 2001 From: oogeek Date: Fri, 30 Apr 2021 19:36:24 +0800 Subject: [PATCH] update doc example for multiple monitors --- XMonad/Hooks/StatusBar.hs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/XMonad/Hooks/StatusBar.hs b/XMonad/Hooks/StatusBar.hs index 22165de0..dd54c4bc 100644 --- a/XMonad/Hooks/StatusBar.hs +++ b/XMonad/Hooks/StatusBar.hs @@ -324,6 +324,15 @@ statusBarPipe cmd xpp = do -- > -- > main = xmonad $ withSB (xmobarTop <> xmobarBottom <> xmobar1) myConfig -- +-- And here is an example of the related xmobar configuration for the multiple +-- status bars mentioned above: +-- +-- > xmobarrc_top +-- > Config { ... +-- > , commands = [ Run XPropertyLog "_XMONAD_LOG_1", ... ] +-- > , template = "%_XMONAD_LOG_1% }{ ..." +-- > } +-- -- The above example also works if the different status bars support different -- logging methods: you could mix property logging and logging via pipes. -- One thing to keep in mind is that if multiple bars read from the same @@ -350,7 +359,6 @@ statusBarPipe cmd xpp = do -- By using the new interface, the config becomes more declarative and there's -- less room for errors. - -- | The default property xmonad writes to. (@_XMONAD_LOG@). xmonadDefProp :: String xmonadDefProp = "_XMONAD_LOG"