[openbox] Move to last desktop

David Vogt david.vogt at adfinis-sygroup.ch
Tue Dec 11 04:15:15 EST 2012


Hi again,

On 11/12/12 02:45, Jim Rees wrote:
> David Vogt wrote:
> 
>   Hi all,
>   
>   Since a few days, I have added a few shortcuts for creating and removing
>   virtual desktops. When a new desktop is created, I want it to be at the
>   end (which works nicely), and then go there and use it.
>   
>   However, this seems not to work. There is no <action> to go to the last
>   desktop.
> 
> The following completely untested patch adds magic desktop number 9999,
> which maps to the last desktop.
> 
> Now that I think about it, "-1" would probably be better.

How about going even further and using negative numbers generally as an
offset from the end? So -2 could go to the second last desktop, and so
on. I have hacked up a small patch to do just this.


Cheers
-- Dave

-- 
Adfinis SyGroup AG
David Vogt, Stv. Bereichsleiter Software-Entwicklung
Keltenstrasse 98          | CH-3018 Bern
Tel. +41 (0) 31 550 31 11 | Direct +41 (0)31 550 31 12
-------------- next part --------------
A non-text attachment was scrubbed...
Name: backwards_absolute_desktop.patch
Type: text/x-patch
Size: 777 bytes
Desc: not available
URL: <http://icculus.org/pipermail/openbox/attachments/20121211/d7f913c7/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://icculus.org/pipermail/openbox/attachments/20121211/d7f913c7/attachment-0001.pgp>


More information about the openbox mailing list