-
Notifications
You must be signed in to change notification settings - Fork 1
/
rules.lua
46 lines (44 loc) · 957 Bytes
/
rules.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
local awful = require("awful")
local ruled = require("ruled")
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,
},
})
-- Floating clients.
ruled.client.append_rule({
id = "floating",
rule_any = {
instance = { "copyq", "pinentry" },
class = {
"Nemo",
"Blueman-manager",
"Gpick",
},
name = {
"Event Tester",
},
role = {
"AlarmWindow",
"ConfigManager",
"pop-up",
},
},
properties = { floating = true },
})
-- Add titlebars to normal clients and dialogs
ruled.client.append_rule({
id = "titlebars",
rule_any = {
type = { "normal", "dialog" },
},
properties = { titlebars_enabled = true },
})
end)