
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. -- Kind Regards, *John Michael Needham*

I'm hoping someone else can help you because I don't use and am not
familiar with xmobar. You might also be able to get help on Reddit.
On Fri, Apr 8, 2022 at 11:56 AM Michael Needham
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. --
Kind Regards,
John Michael Needham
_______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com

Brandon: I appreciate your help so far. I am further along because of
your suggestions and advice, so I am appreciative! Perhaps someone does
know, Reddit in my experience is not that helpful and I have also asked the
forums at EOS since that is my Linux flavor. But I digress, thanks again!
On Fri, Apr 8, 2022 at 11:00 AM Brandon Allbery
I'm hoping someone else can help you because I don't use and am not familiar with xmobar. You might also be able to get help on Reddit.
On Fri, Apr 8, 2022 at 11:56 AM 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.
--
Kind Regards,
John Michael Needham
_______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com
-- Kind Regards, *John Michael Needham * *LinkedIn: http://www.linkedin.com/in/jmikeneedham http://www.linkedin.com/in/jmikeneedham*

Hi, On Fri, Apr 08 2022 10:56, Michael Needham wrote:
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.
You are calling spawnPipe in you startup hook > myStartupHook :: X () > myStartupHook = do > xproc <- spawnPipe ("xmobar -x 0") > […] but you never do anything with that pipe; e.g., normally you would feed information about the workspaces to xmobar. Note that, in particular, this
in my xmobar.hs it is called via xproc inside my main do block.
is not quite right. xproc is simply a name you give to the handle returned by spawnPipe. Whether you want to use pipes or not, I would suggest going through the tutorial[1] to learn how to correctly set up xmobar. It also tells you a little bit about Haskell, which may be useful when you have to debug something again in the future. Tony [1]: https://xmonad.org/TUTORIAL.html

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@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad

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
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@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
participants (4)
-
Brandon Allbery
-
Michael Needham
-
Platon Pronko
-
Tony Zorman