vincentbernat.i3wm-configur.../rc/rules.lua
2012-07-24 18:20:29 +02:00

44 lines
1.6 KiB
Lua

awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = true,
maximized_vertical = false,
maximized_horizontal = false,
keys = config.keys.client,
buttons = config.mouse.client }},
-- Emacs
{ rule = { class = "Emacs" },
properties = { tag = config.tags.emacs }},
-- Browser stuff
{ 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 },
{ rule = { instance = "plugin-container" },
properties = { floating = true }}, -- Flash with Firefox
{ rule = { instance = "exe", class="Exe", instance="exe" },
properties = { floating = true }}, -- Flash with Chromium
-- Pidgin
{ rule = { class = "Pidgin" },
except = { type = "dialog" },
properties = { tag = config.tags.im }},
{ rule = { class = "Pidgin" },
except = { role = "buddy_list" }, -- buddy_list is the master
properties = { }, callback = awful.client.setslave },
-- Should not be master
{ rule_any = { class =
{ "URxvt",
"Transmission-gtk",
"Keepassx",
}, instance = { "Download" }},
except = { icon_name = "QuakeConsoleNeedsUniqueName" },
properties = { },
callback = awful.client.setslave },
-- Floating windows
{ rule_any = { class = { "Display.im6" } },
properties = { floating = true }},
}