From e.a.gebhart at gmail.com Sun Nov 19 16:11:52 2023 From: e.a.gebhart at gmail.com (Erica) Date: Sun, 19 Nov 2023 11:11:52 -0500 Subject: [xmonad] Filter out NSP ? Message-ID: Hello everyone, I know this is an old overdone question. I've had it working in most spots over the years, But I have it on my workspace gridselect and I'm not sure when it reappeared. I've redone my workspaces and topics and NSP has become annoying. My haskell has gotten rusty and I just can't remember what I need. I have this, using my topic space names. The list is the topic workspaces which actually exist plus any extras. Which includes NSP. I'd like to eliminate the NSP workspace from my list. Here is my code. wsgrid = withWindowSet $ \w -> do let wss = W.workspaces w usednames = map W.tag $ wss newnames = filter (\used -> (show used `notElem` (map show myTopicNames))) usednames gridselect workspaceGsConfig (map (\x -> (x,x)) (myTopicNames ++ newnames)) I think I need to go do some haskell challenges and get my fu back. Thank you for any help. Erica -------------- next part -------------- An HTML attachment was scrubbed... URL: From allbery.b at gmail.com Sun Nov 19 21:04:59 2023 From: allbery.b at gmail.com (Brandon Allbery) Date: Sun, 19 Nov 2023 16:04:59 -0500 Subject: [xmonad] Filter out NSP ? In-Reply-To: References: Message-ID: `filter (/= "NSP")` Eventually this will go away; we have an unfinished PR which unmaps windows instead of moving them to a special workspace. On Sun, Nov 19, 2023 at 11:12 AM Erica wrote: > > Hello everyone, > > I know this is an old overdone question. I've had it working in most > spots over the years, > But I have it on my workspace gridselect and I'm not sure when it > reappeared. > I've redone my workspaces and topics and NSP has become annoying. > > My haskell has gotten rusty and I just can't remember what I need. I have > this, > using my topic space names. The list is the topic workspaces which > actually exist > plus any extras. Which includes NSP. > > I'd like to eliminate the NSP workspace from my list. Here is my code. > > wsgrid = withWindowSet $ \w -> do > let wss = W.workspaces w > usednames = map W.tag $ wss > newnames = filter (\used -> (show used `notElem` (map show > myTopicNames))) usednames > gridselect workspaceGsConfig (map (\x -> (x,x)) (myTopicNames ++ > newnames)) > > I think I need to go do some haskell challenges and get my fu back. > > Thank you for any help. > > Erica > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > -- brandon s allbery kf8nh allbery.b at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From soliditsallgood at mailbox.org Mon Nov 20 07:00:14 2023 From: soliditsallgood at mailbox.org (Tony Zorman) Date: Mon, 20 Nov 2023 08:00:14 +0100 Subject: [xmonad] Filter out NSP ? In-Reply-To: References: Message-ID: <877cmcykn5.fsf@hyperspace> On Sun, Nov 19 2023 16:04, Brandon Allbery wrote: > `filter (/= "NSP")` There's also `scratchpadWorkspaceTag`, in case the name ever changed (but it won't, of course) -- Tony Zorman | https://tony-zorman.com/