2012-07-06 14:19:54 +02:00
|
|
|
awful.rules.rules = {
|
|
|
|
-- All clients will match this rule.
|
|
|
|
{ rule = { },
|
|
|
|
properties = { border_width = beautiful.border_width,
|
|
|
|
border_color = beautiful.border_normal,
|
|
|
|
focus = true,
|
2012-07-07 20:41:31 +02:00
|
|
|
maximized_vertical = false,
|
|
|
|
maximized_horizontal = false,
|
2012-07-06 14:19:54 +02:00
|
|
|
keys = config.keys.client,
|
|
|
|
buttons = config.mouse.client }},
|
2012-07-10 23:20:05 +02:00
|
|
|
-- Emacs
|
2012-07-06 14:19:54 +02:00
|
|
|
{ rule = { class = "Emacs" },
|
2012-07-13 08:09:22 +02:00
|
|
|
properties = { tag = config.tags.emacs }},
|
2012-07-10 23:20:05 +02:00
|
|
|
-- Browser stuff
|
2012-07-21 19:05:11 +02:00
|
|
|
{ rule_any = { class = { "Iceweasel", "Firefox", "Chromium" } },
|
|
|
|
properties = { tag = config.tags.www },
|
|
|
|
callback = function(c)
|
|
|
|
-- All windows should be slaves, except the browser windows.
|
|
|
|
if c.role ~= "browser" then awful.client.setslave(c) end
|
|
|
|
end },
|
2012-07-09 10:53:00 +02:00
|
|
|
{ rule = { instance = "plugin-container" },
|
2012-07-10 23:20:05 +02:00
|
|
|
properties = { floating = true }}, -- Flash with Firefox
|
|
|
|
{ rule = { instance = "exe", class="Exe", instance="exe" },
|
|
|
|
properties = { floating = true }}, -- Flash with Chromium
|
2012-07-10 23:27:44 +02:00
|
|
|
-- Pidgin
|
2012-07-06 14:19:54 +02:00
|
|
|
{ rule = { class = "Pidgin" },
|
2012-07-24 18:20:29 +02:00
|
|
|
except = { type = "dialog" },
|
2012-07-13 08:09:22 +02:00
|
|
|
properties = { tag = config.tags.im }},
|
2012-07-10 23:27:44 +02:00
|
|
|
{ rule = { class = "Pidgin" },
|
|
|
|
except = { role = "buddy_list" }, -- buddy_list is the master
|
|
|
|
properties = { }, callback = awful.client.setslave },
|
2012-07-14 21:29:41 +02:00
|
|
|
-- Should not be master
|
|
|
|
{ rule_any = { class =
|
|
|
|
{ "URxvt",
|
|
|
|
"Transmission-gtk",
|
|
|
|
"Keepassx",
|
2012-07-17 11:29:00 +02:00
|
|
|
}, instance = { "Download" }},
|
2012-07-15 13:03:02 +02:00
|
|
|
except = { icon_name = "QuakeConsoleNeedsUniqueName" },
|
|
|
|
properties = { },
|
|
|
|
callback = awful.client.setslave },
|
2012-07-15 21:26:47 +02:00
|
|
|
-- Floating windows
|
|
|
|
{ rule_any = { class = { "Display.im6" } },
|
|
|
|
properties = { floating = true }},
|
2012-07-06 14:19:54 +02:00
|
|
|
}
|