awesomewm/clients/rules.lua

55 lines
1.1 KiB
Lua
Raw Normal View History

2021-08-01 07:24:26 -07:00
local client_buttons = require("clients.binds.buttons")
local client_keys = require("clients.binds.keys")
-- Use xprop to get client properties.
return {
-- All clients will match this rule.
{
rule = {},
properties = {
border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = awful.client.focus.filter,
raise = true,
placement = awful.placement.no_overlap + awful.placement.no_offscreen,
screen = awful.screen.preferred,
buttons = client_buttons,
keys = client_keys,
}
},
-- Designate floating clients.
{
rule_any = {
class = {
"feh",
"Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size.
"zoom",
"flameshot"
},
role = {
"AlarmWindow", -- Thunderbird's calendar.
"ConfigManager", -- Thunderbird's about:config.
"pop-up", "Popup"
}
},
properties = { floating = true }
2022-07-16 19:26:46 -07:00
}
2021-08-01 07:24:26 -07:00
-- Set Firefox to always map on the tag named "2" on screen 1.
--[[
{
rule = { class="Firefox" },
properties = {
screen = 1,
tag = "2"
}
},
--]]
}