[xmonad] can get xmobar show workspace

Peet pisit.jee at gmail.com
Wed Mar 17 09:31:48 UTC 2021


when i add StdinReader in xmobar.config the bar will not run, i have 
google days and days.
please tell me where config is bad.
config at attachments.

Thank you

-------------- next part --------------
Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
       , additionalFonts = []
       , borderColor = "black"
       , border = TopB
       , bgColor = "black"
       , fgColor = "grey"
       , alpha = 255
       , position = Top
       , textOffset = -1
       , iconOffset = -1
       , lowerOnStart = True
       , pickBroadest = False
       , persistent = False
       , hideOnStart = False
       , iconRoot = "."
       , allDesktops = True
       , overrideRedirect = True
       , commands = [ Run Weather "VTBS" ["-t","<station>: <tempC>C",
                                          "-L","18","-H","25",
                                          "--normal","green",
                                          "--high","red",
                                          "--low","lightblue"] 36000
                    , Run Network "LAN" ["-L","0","-H","32",
                                          "--normal","green","--high","red"] 10
                    , Run Cpu ["-L","3","-H","50",
                               "--normal","green","--high","red"] 10
                    , Run Memory ["-t","Mem: <usedratio>%"] 10
                    , Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
                    , Run StdinReader
                    ]
       , sepChar = "%"
       , alignSep = "}{"
       , template = " %StdinReader% } { %cpu% | %memory% | %enp3s0% | <fc=#ee9a00>%date%</fc>| %VTBS%"
       }
-------------- next part --------------

xmonad.hs:241:64: error: Variable not in scope: h :: Handle
    |
241 | myLogHook = dynamicLogWithPP $ xmobarPP { ppOutput = hPutStrLn h }
    |                                                                ^
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmonad.hs
Type: text/x-haskell
Size: 12398 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20210317/a853e931/attachment.hs>


More information about the xmonad mailing list