Merge pull request #532 from oogeek/StatusBar-doc-improve

X.H.StatusBar: update example for multiple monitors
This commit is contained in:
slotThe 2021-04-30 16:54:33 +02:00 committed by GitHub
commit a99c76cce4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,6 +324,15 @@ statusBarPipe cmd xpp = do
-- > -- >
-- > main = xmonad $ withSB (xmobarTop <> xmobarBottom <> xmobar1) myConfig -- > 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 -- The above example also works if the different status bars support different
-- logging methods: you could mix property logging and logging via pipes. -- 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 -- 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 -- By using the new interface, the config becomes more declarative and there's
-- less room for errors. -- less room for errors.
-- | The default property xmonad writes to. (@_XMONAD_LOG@). -- | The default property xmonad writes to. (@_XMONAD_LOG@).
xmonadDefProp :: String xmonadDefProp :: String
xmonadDefProp = "_XMONAD_LOG" xmonadDefProp = "_XMONAD_LOG"