On Sat, 24 May 2008, Ulrich Mueller wrote:


# 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


quotes at the end of course, sorry I copied by hand,
but the question still remains, $[desk.n] always expands to 0...

umu

Reply via email to