Re: [Sawfish] sawfish save all windows locations then restore them?

[ Thread Index | Date Index | More lists.tuxfamily.org/sawfish Archives ]


This weekend I implemented the first version of a module to provide this feature: save window position by id. When your screen resolution changes, your windows get reposition to where they were.
No need to do anything, except add the (require ') to your rc file.

It seems to be working. Here it is, if anybody would like this feature.

https://github.com/dmgerman/mySawfish/blob/master/dmg-restore-windows-positions.jl

I tried making it a module, but I failed miserably (I could not load it).

I have also uploaded my other sawfish hacking that might be of use to others:

https://github.com/dmgerman/mySawfish



On Sat, Jan 2, 2016 at 2:26 PM, fuchur <flohtransporter@xxxxxxxxx> wrote:
Hi,

Maybe you can add a funktion in
"/usr/share/sawfish/lisp/window-history.jl". I have take a short look
in the file it also have "--window-history-file t"
and you can choose what file you use for your funktion ...


--
Regards,
Fuchur

GPG Fingerprint: CA3B 8204 5B3E 6D48 6D53  C116 E5BC 70D5 B8D7 B2B0


On Tue, 29 Dec 2015 19:15:41 -0800
wrote dmg <dmg@xxxxxxx>:

>hi Everybody,
>
>Here is my use case:
>
>i plug in my laptop to my external display, place windows
>nicely. Disconnect display, windows have to be moved back into the area
>of the laptop display (external size > laptop size). Connect display
>again, re-place windows again.
>
>is there a command to save the current location of all windows to be
>restored at a later time? It does not need to be persistent across
>sessions (i.e. it can work by using window-id).
>
>If not, any suggestions on what would be the best way to implement it?
>
>thanks a lot!
>
>--daniel




--
--dmg

---
Daniel M. German
http://turingmachine.org


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/