Discussion:
[xmonad] xmonad next active workspace
Pisit
2021-05-22 17:41:12 UTC
Permalink
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.
Platon Pronko
2021-05-22 11:16:57 UTC
Permalink
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-CycleWS.html#v:findWorkspace

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
Post by 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
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Brandon Allbery
2021-05-22 15:50:30 UTC
Permalink
CycleWS already has what you need, as the first example: `moveTo Next
NonEmptyWS`.
Post by 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
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--
brandon s allbery kf8nh
***@gmail.com
Loading...