2012-08-08 00:16:31 +02:00
|
|
|
local icons = loadrc("icons", "vbe/icons")
|
|
|
|
|
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-09-10 21:45:55 +02:00
|
|
|
keys = config.keys.client,
|
2012-07-06 14:19:54 +02:00
|
|
|
buttons = config.mouse.client }},
|
2012-07-10 23:20:05 +02:00
|
|
|
-- Browser stuff
|
2012-08-08 22:46:05 +02:00
|
|
|
{ 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 },
|
2013-04-15 16:42:19 +02:00
|
|
|
{ rule_any = { class = { "Iceweasel", "Firefox", "Chromium", "Conkeror", "Google-chrome" } },
|
2012-07-21 19:05:11 +02:00
|
|
|
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
|
2013-07-05 10:00:00 +02:00
|
|
|
{ rule = { instance = "exe", class = "Exe" },
|
2012-07-10 23:20:05 +02:00
|
|
|
properties = { floating = true }}, -- Flash with Chromium
|
2013-07-05 10:33:05 +02:00
|
|
|
-- See also tags.lua
|
2012-07-10 23:27:44 +02:00
|
|
|
-- Pidgin
|
|
|
|
{ rule = { class = "Pidgin" },
|
|
|
|
except = { role = "buddy_list" }, -- buddy_list is the master
|
|
|
|
properties = { }, callback = awful.client.setslave },
|
2013-12-02 15:22:50 +01:00
|
|
|
-- Skype
|
|
|
|
{ rule = { class = "Skipe" },
|
|
|
|
except = { role = nil }, -- should be the master
|
|
|
|
properties = { }, callback = awful.client.setslave },
|
2012-07-14 21:29:41 +02:00
|
|
|
-- Should not be master
|
|
|
|
{ rule_any = { class =
|
2013-01-23 00:55:05 +01:00
|
|
|
{ config.termclass,
|
2014-08-30 17:08:42 +02:00
|
|
|
"Transmission-gtk"
|
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
|
2012-10-17 08:38:18 +02:00
|
|
|
{ rule_any = { class = { "Display.im6", "Key-mon" } },
|
2012-07-15 21:26:47 +02:00
|
|
|
properties = { floating = true }},
|
2012-07-06 14:19:54 +02:00
|
|
|
}
|