main :: IO () main = do -- you can replace n with 1 here -- you can also feel free to replace the path: ~/.config/xmobar/... let hs = statusBarPropTo ("_XMONAD_LOG_" ++ show n) ("xmobar -x " ++ show n ++ " ~/.config/xmobar/xmobarrc" ++ show n) (pure myXmobarConfig) -- and then use something like this: xmonad . docks . withSB hs . ewmhFullscreen . ewmh $ myConfig' -- now comes to xmobarrc Config { ... , Run XPropertyLog "_XMONAD_LOG_1" ] ... , template = "%_XMONAD_LOG_1% }{ ..."