r/xmonad • • Mar 04 '22

Error use windowCount

why do i have this error? I would miss something.

0 Upvotes

3 comments sorted by

4

u/uncas52 Mar 05 '22

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.

2

u/_teku Mar 05 '22

Thank you very much for your help, that was what I needed. :v

1

u/uncas52 Mar 05 '22

Glad to hear to it!