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:
parent
3e3395a6a0
commit
0a9f7985f8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue