From ddc159f57eca14e8f9a6e07d73391dfe504cf583 Mon Sep 17 00:00:00 2001
From: Cedric GESTES
If you want to set mplayer floating at startup, you can add:
---
--
+--
-- { rule = { name = "MPlayer" },
-- properties = { floating = true } }
--
--
If you want to put Firefox on a specific tag at startup, you
-- can add:
---
+--
+-- { rule = { instance = "firefox" }
-- properties = { tag = mytagobject } }
+--
+--
If you want to put Emacs on a specific tag at startup, and
+-- immediately switch to that tag you can add:
+--
+--
+-- { rule = { class = "Emacs" }
+-- properties = { tag = mytagobject, switchtotag = true } }
+--
+--
Note that all "rule" entries need to match. If any of the entry does not -- match, the rule won't be applied.
--If a client matches multiple rules, their applied in the order they are @@ -74,6 +86,9 @@ function apply(c) aclient.floating.set(c, value) elseif property == "tag" then aclient.movetotag(value, c) + elseif property == "switchtotag" and value + and entry.properties["tag"] then + atag.viewonly(entry.properties["tag"]) elseif type(c[property]) == "function" then c[property](c, value) else -- 2.11.4.GIT