my-config/awesome/config/rules.lua

46 lines
1.3 KiB
Lua
Raw Normal View History

2024-08-20 13:20:26 +00:00
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' }
})
2024-08-20 13:20:26 +00:00
end)