On Thu, 22 May 2008, Gautam Iyer wrote:

On Thu, May 22, 2008 at 04:04:07PM -0700, Gautam Iyer wrote:

(Or at least I don't know how to do this natively).

I don't see how you can be confused.  The examples in the manpage
might lead you to believe that Goto{Page,Desk} only operates linearly,
but it really is an x,y operation.

How would one do this natively with GotoDesk? Say with the desktops on a
3 by 3 grid. With wrapping? (It is of course possible with GotoPage.)

To be more precise: How would I do the analogue of

   DesktopSize 3x3
   GotoPage wrapx,wrapy 1 1

using GotoDesk?

GI



You are right, wrapx is difficult, but not wrapy.
I thought about the following bindings
inspired by console switching with C-M-F1..F4.

# switch desk
Key Left A CM PipeRead "echo GotoDesk $((-1+3*($[desk.n]%3==0))) 0 0 8'
Key Right A CM PipeRead "echo GotoDesk $((1-3*($[desk.n]%3==2))) 0 0 8'
Key Up A CM GotoDesk 3 0 0 8
Key Down A CM GotoDesk -3 0 0 8

That should work IMO, but not here, $[desk.n] always expands to 0,
hmmmhm, anyone any idea why?

umu

Reply via email to