Re: FVWM: Move windows to a new desk preserving pages

2021-03-01 Thread Tapia, Ron
Hi Ethan,

In the menu, I have an off by one error. Desks should be numbered starting from 
zero, not one.

There are 2 hard problems in computer science: cache invalidation, naming 
things, and off-by-1 errors.

Cheers,

Ron


From: Tapia, Ron 
Sent: Monday, March 1, 2021 10:13 AM
To: Ethan Raynor; fvwm
Subject: Re: FVWM: Move windows to a new desk preserving pages

Hi Ethan,

It sounds like a solution that just moves one window to another desktop while 
preserving the page would work for you.
I think that the config below does what you want.

This function lets you pick a window and send it to a desktop. It appears to 
preserve the page:

DestroyFunc mdesk
AddToFunc  mdesk
+ I  Pick
+ I MoveToDesk 0 $0

I bind my middle mouse button on the root window to a menu that I call 
"Window-Ops". So I would invoke it like so:

Mouse 2 R   N   Menu Window-Ops Nop

AddToMenu Window-Ops "Window Ops "  Title
+ "Move To Desk"Popup MoveToDesk


AddToMenu MoveToDesk  "Move to Desk" Title
+ "Desk1" Function mdesk 1
+ "Desk2" Function mdesk 2
+ "Desk3" Function mdesk 3
+ "Desk4" Function mdesk 4
+ "Desk5" Function mdesk 5
+ "Desk6   " Function mdesk 6
+ "Desk7   " Function mdesk 7

You could do something similar with a function bound to windows so that you 
don't have to pick.

Cheers,

Ron

________________
From: Ethan Raynor 
Sent: Monday, March 1, 2021 9:24 AM
To: fvwm
Subject: Re: FVWM: Move windows to a new desk preserving pages

Hi Dominik,

On Mon, Mar 1, 2021 at 1:51 PM Dominik Vogt  wrote:
> Can you please be more precise?  You're mixing the terms page,
> desk and screen which are all differet things.  Could you give an
> example of the workflow?  It's hard for me to imagine what you're
> actually doig that could require to move all windows from oe
> desktop (page?) to another.  Why is it not good enough to make the
> windows on desk 1 sticky?

Mea culpa! i admit that i am confusing myself as well. Let me try once more.

I am using fvwm2 (2.6.9).

I have two monitors and the following config:

DesktopSize 3x3
DesktopName 0 Main
DesktopName 1 Dev
DesktopName 2 Bills
DesktopName 3 Chat

as i understand this, i now have four desktops, each with 9 pages on
them - this is what FvwmPager agrees with.

As i move between desks, i often try and stick to adding windows to
the correct desks so that i have some separation of work ("Dev" for
development, "Chat" for ms-teams, etc.)  This works well for me.

But sometimes I find that I want to shift the windows from, say, the
"Dev" desk to my other monitor which is free of any windows. so i
thought i had to do it like this:

all (desk 1) movetoscreen

where i first of all open fvwmconsole on screen2 (the one i want
windows from the Dev desktop to move from) and run the command.

This works - the windows from the Dev desktop are moved to screen2,
but they don't keep the page they were on, on the new screen - every
window is now on the same page on screen2. what i want is for the
windows on the Dev desk to move across to screen2, "mirroring" the
location/page they were on screen1 with, only now, on screen2.

Does this make any sense now? i hope it does - apologies if it isn't -
and i will try again to explain

thanks all for your time.
Ethan




Re: FVWM: Move windows to a new desk preserving pages

2021-03-01 Thread Tapia, Ron
Hi Ethan,

It sounds like a solution that just moves one window to another desktop while 
preserving the page would work for you.
I think that the config below does what you want. 

This function lets you pick a window and send it to a desktop. It appears to 
preserve the page: 

DestroyFunc mdesk 
AddToFunc  mdesk
+ I  Pick 
+ I MoveToDesk 0 $0

I bind my middle mouse button on the root window to a menu that I call 
"Window-Ops". So I would invoke it like so:

Mouse 2 R   N   Menu Window-Ops Nop

AddToMenu Window-Ops "Window Ops "  Title   
+ "Move To Desk"Popup MoveToDesk


AddToMenu MoveToDesk  "Move to Desk" Title
+ "Desk1" Function mdesk 1
+ "Desk2" Function mdesk 2
+ "Desk3" Function mdesk 3
+ "Desk4" Function mdesk 4
+ "Desk5" Function mdesk 5
+ "Desk6   " Function mdesk 6
+ "Desk7   " Function mdesk 7

You could do something similar with a function bound to windows so that you 
don't have to pick. 

Cheers,

Ron

________________
From: Ethan Raynor 
Sent: Monday, March 1, 2021 9:24 AM
To: fvwm
Subject: Re: FVWM: Move windows to a new desk preserving pages

Hi Dominik,

On Mon, Mar 1, 2021 at 1:51 PM Dominik Vogt  wrote:
> Can you please be more precise?  You're mixing the terms page,
> desk and screen which are all differet things.  Could you give an
> example of the workflow?  It's hard for me to imagine what you're
> actually doig that could require to move all windows from oe
> desktop (page?) to another.  Why is it not good enough to make the
> windows on desk 1 sticky?

Mea culpa! i admit that i am confusing myself as well. Let me try once more.

I am using fvwm2 (2.6.9).

I have two monitors and the following config:

DesktopSize 3x3
DesktopName 0 Main
DesktopName 1 Dev
DesktopName 2 Bills
DesktopName 3 Chat

as i understand this, i now have four desktops, each with 9 pages on
them - this is what FvwmPager agrees with.

As i move between desks, i often try and stick to adding windows to
the correct desks so that i have some separation of work ("Dev" for
development, "Chat" for ms-teams, etc.)  This works well for me.

But sometimes I find that I want to shift the windows from, say, the
"Dev" desk to my other monitor which is free of any windows. so i
thought i had to do it like this:

all (desk 1) movetoscreen

where i first of all open fvwmconsole on screen2 (the one i want
windows from the Dev desktop to move from) and run the command.

This works - the windows from the Dev desktop are moved to screen2,
but they don't keep the page they were on, on the new screen - every
window is now on the same page on screen2. what i want is for the
windows on the Dev desk to move across to screen2, "mirroring" the
location/page they were on screen1 with, only now, on screen2.

Does this make any sense now? i hope it does - apologies if it isn't -
and i will try again to explain

thanks all for your time.
Ethan




Re: FVWM: Move windows to a new desk preserving pages

2021-03-01 Thread Ethan Raynor
Hi Dominik,

On Mon, Mar 1, 2021 at 1:51 PM Dominik Vogt  wrote:
> Can you please be more precise?  You're mixing the terms page,
> desk and screen which are all differet things.  Could you give an
> example of the workflow?  It's hard for me to imagine what you're
> actually doig that could require to move all windows from oe
> desktop (page?) to another.  Why is it not good enough to make the
> windows on desk 1 sticky?

Mea culpa! i admit that i am confusing myself as well. Let me try once more.

I am using fvwm2 (2.6.9).

I have two monitors and the following config:

DesktopSize 3x3
DesktopName 0 Main
DesktopName 1 Dev
DesktopName 2 Bills
DesktopName 3 Chat

as i understand this, i now have four desktops, each with 9 pages on
them - this is what FvwmPager agrees with.

As i move between desks, i often try and stick to adding windows to
the correct desks so that i have some separation of work ("Dev" for
development, "Chat" for ms-teams, etc.)  This works well for me.

But sometimes I find that I want to shift the windows from, say, the
"Dev" desk to my other monitor which is free of any windows. so i
thought i had to do it like this:

all (desk 1) movetoscreen

where i first of all open fvwmconsole on screen2 (the one i want
windows from the Dev desktop to move from) and run the command.

This works - the windows from the Dev desktop are moved to screen2,
but they don't keep the page they were on, on the new screen - every
window is now on the same page on screen2. what i want is for the
windows on the Dev desk to move across to screen2, "mirroring" the
location/page they were on screen1 with, only now, on screen2.

Does this make any sense now? i hope it does - apologies if it isn't -
and i will try again to explain

thanks all for your time.
Ethan



Re: FVWM: Move windows to a new desk preserving pages

2021-03-01 Thread Lucio Chiappetti

On Mon, 1 Mar 2021, Ethan Raynor wrote:

i quite often find myself wanting to move windows between desks to suit 
my workflow.  what i would like is the ability to move windows as they 
are on desk X to screen Y without them losing which page they are on.


I usually have 7 desks (not that I use them all all the times), and 
usually each is a single page (I have the possibility to transform each 
desk in a 1x2, 2x1 or 2x2 arrangement, but I have really never used it).
Also I have entries in the window menu to "occupy desk n" (or even "ocpy 
page n"), as well as other accelerators, but at the end it happens to me
that the way I use almost all the times is simply to make a given window 
sticky or unsticky.


Typical use, I keep mail in one desk, the browser in another desk, and 
work in the other. If I have to paste an URL (or a piece of web page) in 
a mail or in a text editor winodw, I just make such window sticky, go to 
the browser desk, do the copy, go back and unstick.


Screenshot and .fvwrc samples in
http://sax.iasf-milano.inaf.it/~lucio/WWW/Opinions/window.html


--
Lucio Chiappetti - INAF/IASF - via Corti 12 - I-20133 Milano (Italy)
For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html

"Can you see Enrico Fermi punching a time clock? There are effective
ways to measure scientific productivity; times clocks are not the way."
(Leon M. Lederman to INFN)




Re: FVWM: Move windows to a new desk preserving pages

2021-03-01 Thread Dominik Vogt
On Mon, Mar 01, 2021 at 01:40:17PM +, Ethan Raynor wrote:
> hi Dominik,
>
> On Mon, Mar 1, 2021 at 9:45 AM Dominik Vogt  wrote:
> > What is the actual use case for this?
>
> i quite often find myself wanting to move windows between desks to
> suit my workflow.  what i would like is the ability to move windows as
> they are on desk X to screen Y without them losing which page they are
> on. so for example when i do this:
>
> all (desk 2) movetoscreen
>
> this does move all the windows on desk2 to the current screen but i
> would ideally like those windows on desk2 to also keep the page they
> are on. currently the above command moves all windows on desk 2 to the
> current page on the screen i run it from - i don't want this.

Can you please be more precise?  You're mixing the terms page,
desk and screen which are all differet things.  Could you give an
example of the workflow?  It's hard for me to imagine what you're
actually doig that could require to move all windows from oe
desktop (page?) to another.  Why is it not good enough to make the
windows on desk 1 sticky?

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt



Re: FVWM: Move windows to a new desk preserving pages

2021-03-01 Thread Ethan Raynor
hi Dominik,

On Mon, Mar 1, 2021 at 9:45 AM Dominik Vogt  wrote:
> What is the actual use case for this?

i quite often find myself wanting to move windows between desks to
suit my workflow.  what i would like is the ability to move windows as
they are on desk X to screen Y without them losing which page they are
on. so for example when i do this:

all (desk 2) movetoscreen

this does move all the windows on desk2 to the current screen but i
would ideally like those windows on desk2 to also keep the page they
are on. currently the above command moves all windows on desk 2 to the
current page on the screen i run it from - i don't want this.

thanks!
Ethan



Re: FVWM: Move windows to a new desk preserving pages

2021-03-01 Thread Dominik Vogt
On Mon, Mar 01, 2021 at 12:31:19AM +, Ethan Raynor wrote:
> I'm trying to understand how I can move all windows from desk X to
> desk Y without losing where the windows on desk X are in terms of
> their pages.
>
> I know I can do something like:
>
> All (Desk 1) MoveToDesk 2
>
> But all this does is take every window on desk 1 (regardless of page)
> and move those windows to desk 2.
>
> How can I essentially "mirror" the windows on desk 1 so they are in
> the same position/page on desk 2?

Fvwm allows windows to be present on a single desk or on all desk,
but not a selection of desks.  The closest you can have is to make
windows on desk 1 visible on all desks:

  all (desk 1) stickacrossdesks on

--

What is the actual use case for this?

It would be possible to mark these windows with a flag (can't
remember the syntax now) and write a hand tailored function that
shows the windows when weitching to desk 1 and 2, but not on other
desks.

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt



FVWM: Move windows to a new desk preserving pages

2021-02-28 Thread Ethan Raynor
Hi,

I'm trying to understand how I can move all windows from desk X to
desk Y without losing where the windows on desk X are in terms of
their pages.

I know I can do something like:

All (Desk 1) MoveToDesk 2

But all this does is take every window on desk 1 (regardless of page)
and move those windows to desk 2.

How can I essentially "mirror" the windows on desk 1 so they are in
the same position/page on desk 2?

TIA,
Ethan