awesome/luadoc
Emmanuel Lepage Vallee 061751dd9d Add end to end support for spawning tracking using startup notifications
This allow to spawn something, then apply some properties or rules when
the client show up ("manage").

This commit add:
 * "startup_id" property for all clients object (immutable, can be nil)
 * Second return value to awful.util.spawn() with the startup_id
 * Update the documentation

Example:

  local wait_for_it = {}

  local pid,snid = awful.util.spawn("urxvtc")
  wait_for_it[snid] = {ontop=true,sticky=false,
     tag = awful.tag.gettags(mouse.screen)[1] }

  client.connect_signal("manage", function (c, startup)
     if c.startup_id and wait_for_it[c.startup_id] then
        for k,v in pairs(wait_for_it[c.startup_id]) do
           c[k] = v
        end
        if wait_for_it[c.startup_id].tag then
           c:tags({wait_for_it[c.startup_id].tag})
        end
     end
  end)

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-03-15 23:14:41 +01:00
..
awesome.lua Add awesome.register_xproperty (FS#1212) 2014-03-07 16:17:40 +01:00
button.lua luadoc/: Remove luadoc hacks 2012-11-19 14:55:57 +01:00
client.lua Add end to end support for spawning tracking using startup notifications 2014-03-15 23:14:41 +01:00
dbus.lua Fix luadoc for the previous commit 2010-08-25 20:37:49 +02:00
drawable.lua luadoc/: Remove luadoc hacks 2012-11-19 14:55:57 +01:00
drawin.lua Add awesome.register_xproperty (FS#1212) 2014-03-07 16:17:40 +01:00
key.lua luadoc/: Remove luadoc hacks 2012-11-19 14:55:57 +01:00
keygrabber.lua luadoc/: Remove luadoc hacks 2012-11-19 14:55:57 +01:00
mouse.lua Update the luadoc for the C API 2014-03-01 19:28:06 +01:00
mousegrabber.lua luadoc/: Remove luadoc hacks 2012-11-19 14:55:57 +01:00
root.lua Update the luadoc for the C API 2014-03-01 19:28:06 +01:00
screen.lua luadoc: Document screen outputs 2013-10-31 10:31:54 +01:00
selection.lua luadoc/: Remove luadoc hacks 2012-11-19 14:55:57 +01:00
tag.lua luadoc/: Remove luadoc hacks 2012-11-19 14:55:57 +01:00
timer.lua Update the luadoc for the C API 2014-03-01 19:28:06 +01:00