Rules: change example

change example since the example with a centered client doesnt work
on the default config (due to no_overlap).

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Hiltjo Posthuma 2009-11-09 19:12:14 +01:00 committed by Julien Danjou
parent 3e3395a6a0
commit 0a9f7985f8
1 changed files with 5 additions and 2 deletions

View File

@ -48,12 +48,15 @@ module("awful.rules")
-- properties = { tag = mytagobject, switchtotag = true } }
-- </code>
-- </p>
-- <p>If you want to apply a custom callback to execute when a rule matched, you
-- <p>If you want to apply a custom callback to execute when a rule matched,
-- for example to pause playing music from mpd when you start dosbox, you
-- can add:
-- <br/>
-- <code>
-- { rule = { class = "dosbox" },
-- callback = awful.placement.centered }
-- callback = function(c)
-- awful.util.spawn('mpc pause')
-- end }
-- </code>
-- </p>
-- <p>Note that all "rule" entries need to match. If any of the entry does not