mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
Merge pull request #532 from oogeek/StatusBar-doc-improve
X.H.StatusBar: update example for multiple monitors
This commit is contained in:
commit
a99c76cce4
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user