xmobar

How to put an instance of XMobar on each screen in XMonad?

梦想与她 提交于 2019-12-11 07:55:49
问题 I'm running XMonad on a laptop that I sometimes, but not always, have an additional monitor attached. I'd like to detect the number of screens in my xmonad.hs have a instance of XMobar per screen. I've seen this question and answer, but I've not really got my head around monad transformers and how to make use of a value of type X [Rectangle] . Right now, I have, roughly, this: import XMonad import XMonad.Config.Desktop import XMonad.Hooks.DynamicLog import XMonad.Hooks.ManageDocks import