2025-03-12 01:48:27 +0100 | <beastwick> | Hello, is there a simple way to filter out (not show) certain workspaces when using selectWorkspace from dynamic workspaces? I am guessing this might require an actual library edit. |
2025-03-12 01:57:54 +0100 | <Leary> | beastwick: At a guess, the `sorter` field of the `XPConfig` argument could be also be used to filter. |
2025-03-12 01:58:40 +0100 | <geekosaur> | it looks like you might be able to write it yourself |
2025-03-12 02:00:02 +0100 | <geekosaur> | it uses XMonad.Prompt.Workspace.workspacePrompt, which doesn't by itself sllow filtering but you could rewrite selectWorkspace (it's short and simple) to use a modified one that filtered out some workspaces |
2025-03-12 02:00:52 +0100 | <geekosaur> | https://hackage.haskell.org/package/xmonad-contrib-0.18.1/docs/src/XMonad.Actions.DynamicWorkspace… https://hackage.haskell.org/package/xmonad-contrib-0.18.1/docs/src/XMonad.Prompt.Workspace.html#wo… |
2025-03-12 02:01:15 +0100 | <geekosaur> | (that's if hacking sorter doesn't work…) |
2025-03-12 02:03:47 +0100 | <geekosaur> | hm, not sure sorter would work (use with fuzzyMatch implies to me it would at best yield surprises) but searchPredicate might |
2025-03-12 02:04:37 +0100 | <geekosaur> | it's a pity there's no general filter in XPConfig |
2025-03-12 02:05:14 +0100 | _qw | (~eqw@user/eqw) (Ping timeout: 260 seconds) |
2025-03-12 02:06:39 +0100 | <geekosaur> | could easily be added backward-compatibly (default: pure (const True)) |
2025-03-12 02:07:10 +0100 | <geekosaur> | or just (const True) if it's not in X, but that may be too limiting |
2025-03-12 02:07:15 +0100 | _qw | (~eqw@user/eqw) eqw |
2025-03-12 03:01:35 +0100 | deepy | (deepy@user/deepy) (Ping timeout: 268 seconds) |