
Hi Guys, still struggling with my xmobar config on xmonad. I have been trying to add loghook to spawn my workspaces on xmobar via StdinReader and right now my xmobar spawns with "Updaing..." where the workspaces should appear. A helpful person did give me a hint which is to use a loghook to outputPP to get the data from my xmproc (which is a spawnPipe) and I guess I am not understanding. I have attached my xmonad.hs and there is a pleace to add whatever loghook I need to get the workspaces to show up. The config is I believe darcs from the Haskell.org site. I need to know where exactly in here to put the loghook statement and how to setup that section in my xmonad.hs. The current part of the section looks like: " myLogHook = return ()." Hope someone can uncloud the explanations that I am getting because all Google Searches and Haskell documentation just doesn't seem to work (always get errors about out of scrope and I believe the imports are all there for everything I am trying to use. (please feel free to correct me if I am not importing something). Thanks, -- Kind Regards, *John Michael Needham *

Hi! You need to actually put data into the process input. logHook is a function that is ran each time something changes - so you need to make sure that xmproc is available there and that you write into it. I've tweaked your xmonad.hs a bit (please see attached) - passed xmproc through `defaults` and into `myLogHook` function. -- Best regards, Platon Pronko PGP 7A2CB94E On 2022-04-10 20:01, Michael Needham wrote:
Hi Guys, still struggling with my xmobar config on xmonad. I have been trying to add loghook to spawn my workspaces on xmobar via StdinReader and right now my xmobar spawns with "Updaing..." where the workspaces should appear. A helpful person did give me a hint which is to use a loghook to outputPP to get the data from my xmproc (which is a spawnPipe) and I guess I am not understanding. I have attached my xmonad.hs and there is a pleace to add whatever loghook I need to get the workspaces to show up. The config is I believe darcs from the Haskell.org site. I need to know where exactly in here to put the loghook statement and how to setup that section in my xmonad.hs. The current part of the section looks like: " myLogHook = return ()."
Hope someone can uncloud the explanations that I am getting because all Google Searches and Haskell documentation just doesn't seem to work (always get errors about out of scrope and I believe the imports are all there for everything I am trying to use. (please feel free to correct me if I am not importing something).
Thanks,
_______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
participants (2)
-
Michael Needham
-
Platon Pronko