[openbox] Move to last desktop

David Vogt david.vogt at adfinis-sygroup.ch
Mon Dec 10 15:08:05 EST 2012


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. So currently, I'm using this ugly hack that works, but... well
it's a hack:

  <action name="AddDesktop">
    <where>last</where>
  </action>
  <action name="execute">
    <execute>notify-send -t 2000 "New Desktop created"</execute>
  </action>
  <action name="execute"><execute>wmctrl -s  2</execute></action>
  <action name="execute"><execute>wmctrl -s  3</execute></action>
  ...
  <action name="execute"><execute>wmctrl -s 12</execute></action>


Is there a better way to accomplish my goal? Thanks!


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: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://icculus.org/pipermail/openbox/attachments/20121210/7857ae02/attachment.pgp>


More information about the openbox mailing list