From 0a9f7985f832c63c1ffb6cd3d23d3b69957691f2 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 9 Nov 2009 19:12:14 +0100 Subject: [PATCH] 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 --- lib/awful/rules.lua.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/awful/rules.lua.in b/lib/awful/rules.lua.in index 8859b2aa..5ca3c731 100644 --- a/lib/awful/rules.lua.in +++ b/lib/awful/rules.lua.in @@ -48,12 +48,15 @@ module("awful.rules") -- properties = { tag = mytagobject, switchtotag = true } } -- --

---

If you want to apply a custom callback to execute when a rule matched, you +--

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: --
-- -- { rule = { class = "dosbox" }, --- callback = awful.placement.centered } +-- callback = function(c) +-- awful.util.spawn('mpc pause') +-- end } -- --

--

Note that all "rule" entries need to match. If any of the entry does not