mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-23 02:08:35 +02:00
This includes the developer tools pane. Also, we rely on the class name instead of the window name (which may change).
43 lines
1.6 KiB
Lua
43 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" },
|
|
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 }},
|
|
}
|