[xmonad] Same stuff new day

Michael Needham jmikeneedham at gmail.com
Sat Apr 9 11:44:06 UTC 2022


Thank you Platon.  I think that might be exactly what I was missing.  I will make the addition you suggest and I have already moved the xproc line to main.

Thanks Again to all and for your kind help and advice.  Now wish me luck learning Haskell and I may better understand the “why” of all this.

Have a great weekend!

Regards,
Michael Needham


> On Apr 9, 2022, at 2:53 AM, Platon Pronko <platon7pronko at gmail.com> wrote:
> 
> 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