The error is saying that windowCount is not defined.
If you copied this from someone else's xmonad.hs they probably defined it elsewhere in the file. I found one on github that is setting ppExtras = [windowCount] and has this definition elsewhere in the file:
windowCount :: X (Maybe String)
windowCount = gets $ Just . show . length . W.integrate' . W.stack . W.workspace . W.current . windowset
I have no idea if that will work for your use case or not since I don't know what the rest of your xmonad.hs is trying to do and what else you've imported.
4
u/uncas52 Mar 05 '22
The error is saying that
windowCountis not defined.If you copied this from someone else's
xmonad.hsthey probably defined it elsewhere in the file. I found one on github that is settingppExtras = [windowCount]and has this definition elsewhere in the file:I have no idea if that will work for your use case or not since I don't know what the rest of your xmonad.hs is trying to do and what else you've imported.