<div dir="ltr"><div><div>In my menu.xml I did added both your nice tricks as follow:<br><br><menu id="apps-desktop-mgmt" label="Desktop Management"><br> <item label="New Desktop before that one"><br> <action name="AddDesktop"><br> <where>current</where><br> </action><br> </item><br> <separator /><br> <item label="Move all windows to previously visited desktop"><br> <action name="ForEach"><br> <desktop>current</desktop><br> <then><br> <action name="SendToDesktop"><br> <to>last</to><br> </action><br> </then><br> </action><br> </item><br></menu><br><br></div>This works when adding a new desktop but I'm not able to move all windows at once.<br><br></div><div><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-03 9:51 GMT+02:00 Mikael Magnusson <span dir="ltr"><<a href="mailto:mikachu@gmail.com" target="_blank">mikachu@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Sep 3, 2015 at 8:32 AM, Mathias Dufresne<br>
<span class=""><<a href="mailto:mathias.dufresne@gmail.com">mathias.dufresne@gmail.com</a>> wrote:<br>
> Thank you a lot for that :)<br>
><br>
> 2015-09-02 20:12 GMT+02:00 Dana Jansens <<a href="mailto:danakj@orodu.net">danakj@orodu.net</a>>:<br>
>><br>
>> You can add a desktop in the middle using "current".<br>
>> <a href="http://openbox.org/wiki/Help:Actions#AddDesktop" rel="noreferrer" target="_blank">http://openbox.org/wiki/Help:Actions#AddDesktop</a><br>
>><br>
>> On Wed, Sep 2, 2015 at 6:47 AM, Mathias Dufresne<br>
>> <<a href="mailto:mathias.dufresne@gmail.com">mathias.dufresne@gmail.com</a>> wrote:<br>
>>><br>
>>> Hi all,<br>
>>><br>
>>> Is it possible, or would it be possible, to move all windows to another<br>
>>> desktop, keeping windows order, position and size?<br>
>>><br>
>>> This would be very nice on heavy loaded and organized desktops. For now a<br>
>>> new desktop can be added as last desktop.<br>
>>><br>
>>> With 4 desktop, the new one become n°5. If user desire was to have a 2'<br>
>>> desktop to expand work done on second desktop, all windows from n°4 have to<br>
>>> be moved to 5 then all windows from 3 have to be moved to 4.<br>
>>><br>
>>> For that specific case we could simply (perhaps it is not simple to code<br>
>>> it, I have no idea ;) add a commands to:<br>
>>> - add new desktop between 1 & 2<br>
>>> - add new desktop between 2 & 3<br>
>>> etc...<br>
>>><br>
>>> But for the case you opened too much windows on one desktop then decide<br>
>>> that desktop is not the right one, you have to move them manually...<br>
<br>
</span>You can use something like the following.<br>
<br>
<action name="ForEach"><br>
<desktop>current</desktop><br>
<then><br>
<action name="SendToDesktop"><br>
<to>last</to><br>
</action><br>
</then><br>
</action><br>
<br>
And it will send all windows on the current desktop to the last<br>
desktop you were on (make sure 'go to desktop [last]' gets you to<br>
where you want before you press this binding.) If you send them to a<br>
desktop that has other windows on it, you'll have to separate them<br>
manually. There is a slight timeout so that you can use next/previous<br>
desktop without setting "the last desktop" to any of the intermediate<br>
ones.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Mikael Magnusson<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" rel="noreferrer" target="_blank">http://icculus.org/mailman/listinfo/openbox</a></div></div></blockquote></div><br></div>