Re: FVWM: Desktops versus Pages - how to use?

2008-05-23 Thread Chris G
On Fri, May 23, 2008 at 01:23:50AM +0100, John Latham wrote:
> 
> So, if you don't want to use the two level structure then perhaps your
> question becomes ``what is the difference between multiple desktops each with
> one page, and multiple pages in one desktop?'' And I guess the answer is
> whether or not you can scroll between them with the mouse and allow windows to
> straddle the boundaries.
> 
Yes, I think that's exactly it!

This discussion has actually been very useful at clarifying what Pages
and Desktops do and don't do.  Thanks everyone.

-- 
Chris Green



Re: FVWM: Desktops versus Pages - how to use?

2008-05-23 Thread Cameron Simpson
On 22May2008 14:57, Chris G <[EMAIL PROTECTED]> wrote:
| I've never quite made my mind up whether to use several Desktops or
| several Pages on one desktop, what are the reasons (if any) for
| choosing one or the other?
| 
| I've never found any use for running a program with a window larger
| than my screen size, I rarely (but very occasionally) would like to
| drag a window from one place to another.

I use desktops exclusively. I don't use the Pager either.

I never want to drag a window from one to another; I always "push" it
because I don't think of desktops/pages as laid out in any particular
geometric relationship.

So I have Alt-Fn-N bound to "switch to desktop N" and Shift-Fn-N bound
to "push this window to desktop N". I also have named desktops in a
menu (Alt-D for the menu to switch, Alt-P for the menu that pushes)
and a convenient shell command to make and switch to a new desktop at
whim. Since I always have a thin shell window across the top of my screen,
this is easy.

Cheers,
-- 
Cameron Simpson <[EMAIL PROTECTED]> DoD#743
http://www.cskk.ezoshosting.com/cs/

Life is like a sandwich, the more you put in, the better it tastes.
- Steve B. Hill, <[EMAIL PROTECTED]>



Re: FVWM: Desktops versus Pages - how to use?

2008-05-23 Thread Ulrich Mueller

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



Re: FVWM: Desktops versus Pages - how to use?

2008-05-23 Thread Ulrich Mueller

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