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 }},
|
2016-11-04 14:42:41 +01:00
|
|
|
-- i3lock
|
|
|
|
{ rule = { name = "i3lock" },
|
|
|
|
properties = { ontop = true } },
|
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 },
|
2014-09-25 20:38:39 +02:00
|
|
|
{ rule = { class = config.termclass },
|
|
|
|
properties = { icon = image(icons.lookup({ name = "gnome-terminal",
|
|
|
|
type = "apps" })) } },
|
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 },
|
2013-07-05 10:33:05 +02:00
|
|
|
-- See also tags.lua
|
2012-07-10 23:27:44 +02:00
|
|
|
-- Pidgin
|
|
|
|
{ rule = { class = "Pidgin" },
|
2015-03-03 08:58:11 +01:00
|
|
|
except = { role = "buddy_list" },
|
2012-07-10 23:27:44 +02:00
|
|
|
properties = { }, callback = awful.client.setslave },
|
2015-03-03 08:58:11 +01:00
|
|
|
{ rule = { class = "Pidgin", role = "buddy_list" },
|
|
|
|
properties = { }, callback = awful.client.setmaster },
|
2020-05-26 13:06:09 +02:00
|
|
|
-- Shadow
|
2020-05-26 13:44:11 +02:00
|
|
|
{ rule = { class = "Shadow" },
|
2020-05-26 13:06:09 +02:00
|
|
|
properties = { fullscreen = true }},
|
2020-07-30 07:33:55 +02:00
|
|
|
-- Zoom dialogs should not have focus
|
|
|
|
{ rule = { class = "zoom", type = "dialog" },
|
|
|
|
properties = { focus = false }},
|
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 },
|
2021-02-25 23:18:55 +01:00
|
|
|
-- Picture in picture
|
|
|
|
{ rule = { name = "Picture-in-Picture" },
|
|
|
|
properties = { floating = true, ontop = true } },
|
2012-07-15 21:26:47 +02:00
|
|
|
-- Floating windows
|
2021-02-25 23:18:55 +01: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
|
|
|
}
|