[xmonad] Same stuff new day

Platon Pronko platon7pronko at gmail.com
Sat Apr 9 07:53:43 UTC 2022


Hi!

It could be because you never actually write to xmobar's stdin. You start the process and store the handle in `xproc` - but it is never used. You need to modify xmonad's logHook to log to xmobar's stdin - something like this:

, logHook = logHook myConfig <+>
             dynamicLogWithPP myXmobarPP { ppOutput = hPutStrLn xmproc }

In order to get it all to compile you'll probably need to also move xmobar startup from `myStartupHook` into `main` before actual xmonad startup

--
Best regards,
Platon Pronko
PGP 7A2CB94E

On 2022-04-08 18:56, Michael Needham wrote:
> Hello Again:
> Still struggling with my xmobar config and workspaces issues.  Figured out
> something I don't quite get why it is not working, but in xmobarrc I am
> using ", RUN StdinReader" (and have tried the UnsafeStdinReader variation
> as well) and this causes xmobar not to run at startup again.  If I start
> xmobar from the terminal it runs and does not error.  in my xmobar.hs it is
> called via xproc inside my main do block.
> 
> I am attaching both files as they appear today.
> 
> Thank you guys for all the help so far.  Please do tell me if I am missing
> some imports or something I need!  Also all the fonts listed are installed
> and verified as in my fc-cache on the EOS system.
> 
> 
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad


More information about the xmonad mailing list