vincentbernat.i3wm-configur.../rc/rules.lua
Vincent Bernat 91b1e6ee10 shifty: remove unwanted features
This is easier to make modifications if I don't have to ensure that
all features still work. The idea is that I will keep using
`awful.rules.rules` for most tasks except tag related tasks.

Also, fix the "startup" stuff to allow to specify a tag which will be
only used on startup.
2012-09-10 21:45:55 +02:00

49 lines
1.7 KiB
Lua

local icons = loadrc("icons", "vbe/icons")
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 }},
-- Browser stuff
{ rule = { role = "browser" },
callback = function(c)
if not c.icon then
local icon = icons.lookup({ name = "web-browser",
type = "apps" })
if icon then
c.icon = image(icon)
end
end
end },
{ rule_any = { class = { "Iceweasel", "Firefox", "Chromium", "Conkeror" } },
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 = { 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 }},
}