awesome/lib/awful
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
..
layout Minor doc fixes 2014-03-15 08:52:14 +01:00
mouse Remove raise call from mouse.client.move 2014-03-11 09:41:20 +01:00
widget taglist: Add [bg|fg]_empty 2013-12-02 15:10:10 +01:00
autofocus.lua.in Minor doc fixes 2014-03-15 08:52:14 +01:00
button.lua.in Ported awful to lua 5.2 2012-06-16 17:37:30 +02:00
client.lua.in awful.client.tiled: Ignore fullscreen (etc) clients (FS#1106) 2013-10-04 12:04:16 +02:00
completion.lua.in Ported awful to lua 5.2 2012-06-16 17:37:30 +02:00
dbus.lua.in Ported awful to lua 5.2 2012-06-16 17:37:30 +02:00
ewmh.lua.in Revert "awful.ewmh: Enforce client geometry (FS#764,FS#1216)" 2014-03-06 22:08:00 +01:00
init.lua.in Move size hints handling back into C (FS#1117) 2013-03-10 12:13:32 +01:00
key.lua.in Lots of random documentation fixes 2012-11-19 14:09:10 +01:00
keygrabber.lua.in Minor doc fixes 2014-03-15 08:52:14 +01:00
menu.lua.in awful.menu.clients: Remove useless line (FS#1200) 2014-01-20 16:30:24 +01:00
placement.lua.in awful.placement.no_offscreen: Fix border handling (FS#1065) 2012-12-16 18:11:57 +01:00
prompt.lua.in prompt: CTRL+DELETE deletes history entries 2014-03-12 10:16:27 +01:00
remote.lua.in More fixes for the recent module() removal 2012-06-17 15:24:01 +02:00
rules.lua.in awful.rules: add does_match and matching_rules functions (FS#1224) 2014-03-15 09:00:20 +01:00
screen.lua.in awful.screen.focus: Don't move mouse to (0, 0) first (FS#1173) 2013-10-04 11:27:35 +02:00
startup_notification.lua.in Ported awful to lua 5.2 2012-06-16 17:37:30 +02:00
tag.lua.in Fix handling of _NET_CURRENT_DESKTOP messages (FS#1219,FS#1217) 2014-03-08 15:33:34 +01:00
titlebar.lua.in Add awful.titlebar.widget.minimizebutton 2013-11-03 09:47:11 +01:00
tooltip.lua.in awful.tooltip: Set the bg color correctly (FS#1148) 2013-05-13 19:27:19 +02:00
util.lua.in Add end to end support for spawning tracking using startup notifications 2014-03-15 23:14:02 +01:00
wibox.lua.in Lots of random documentation fixes 2012-11-19 14:09:10 +01:00