xmonad next active workspace

Hi, I'm Peet. I looking util or something that can toggle active workspace Like: active workspace 1, 4 , 9 so when i press hot key xmonad will go through 1 , 4 ,9 , 1 ...... i already had : Xmonad.Actions.CycleWS thank.

Hi! You'll have to write some code to achieve this. You can use findWorkspace function from Xmonad.Actions.CycleWS as a stepping stone: https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Actions-... It takes a workspace predicate as its third argument, so you can filter only those workspaces that are needed (1,4,9). Look at the source code for `nextWS` function and source code of functions that are called by it. Best regards, Platon Pronko On 2021-05-22 20:41, Pisit wrote:
Hi, I'm Peet.
I looking util or something that can toggle active workspace
Like: active workspace
1, 4 , 9
so when i press hot key xmonad will go through 1 , 4 ,9 , 1 ......
i already had : Xmonad.Actions.CycleWS
thank.
_______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad

CycleWS already has what you need, as the first example: `moveTo Next
NonEmptyWS`.
On Sat, May 22, 2021 at 6:41 AM Pisit
Hi, I'm Peet.
I looking util or something that can toggle active workspace
Like: active workspace
1, 4 , 9
so when i press hot key xmonad will go through 1 , 4 ,9 , 1 ......
i already had : Xmonad.Actions.CycleWS
thank.
_______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com
participants (3)
-
Brandon Allbery
-
Pisit
-
Platon Pronko