awesome/lib
Emmanuel Lepage Vallee d6e06450d3 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:02 +01:00
..
awful Add end to end support for spawning tracking using startup notifications 2014-03-15 23:14:02 +01:00
gears gears.wallpaper: Create smaller image surface (FS#1087) 2013-02-12 15:15:16 +01:00
menubar menubar: Fix API docs 2013-12-30 00:17:07 +01:00
wibox Added Comments 2014-03-13 12:11:20 +01:00
beautiful.lua.in Fix errors from missing themes 2012-11-27 22:55:42 +01:00
naughty.lua.in naughty: fix ldoc 2014-02-22 16:35:17 +01:00