my-config/awesome/config/rules.lua
erius f8672b84d6 awesome: Switch to autostart with dex
picom: remove opacity from all windows expect kitty
2024-08-22 00:54:08 +03:00

45 lines
1.3 KiB
Lua

local awful = require('awful')
local ruled = require('ruled')
--- Rules.
-- Rules to apply to new clients.
ruled.client.connect_signal('request::rules', function()
-- All clients will match this rule.
ruled.client.append_rule({
id = 'global',
rule = { },
properties = {
focus = awful.client.focus.filter,
raise = true,
screen = awful.screen.preferred,
placement = awful.placement.no_overlap + awful.placement.no_offscreen + awful.placement.centered
}
})
-- Add titlebars to normal clients and dialogs.config
ruled.client.append_rule({
id = 'titlebars',
rule_any = { type = { 'normal', 'dialog' } },
properties = { titlebars_enabled = false }
})
ruled.client.append_rule({
rule = { class = 'steam' },
properties = { screen = 1, tag = '3: Gaming' }
})
ruled.client.append_rule({
rule = { class = 'discord' },
properties = { screen = 2, tag = '2: Discord' }
})
ruled.client.append_rule({
rule = { class = 'nekoray' },
properties = { screen = 2, tag = '3: VPN' }
})
ruled.client.append_rule({
rule = { class = 'firefox' },
properties = { screen = 2, tag = '1: Web' }
})
end)