-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.lua
More file actions
82 lines (77 loc) · 2.45 KB
/
rules.lua
File metadata and controls
82 lines (77 loc) · 2.45 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
local ruled = require("ruled")
local awful = require("awful")
-- {{{ Rules
-- Rules to apply to new clients (through the "manage" signal).
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 = {
"Arandr", "Blueman-manager", "Gpick", "Kruler", "Sxiv",
"Tor Browser", "Wpa_gui", "veromix", "xtightvncviewer"
},
-- Note that the name property shown in xprop might be set slightly after creation of the client
-- and the name shown there might not match defined rules here.
name = {
"Event Tester", -- xev.
},
role = {
"AlarmWindow", -- Thunderbird's calendar.
"ConfigManager", -- Thunderbird's about:config.
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
}
},
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 }
}
-- Picture in Picture need to be floaty
ruled.client.append_rule {
id = "Picture",
rule_any = {
name = {
"Picture-in-Picture"
}
},
properties = {
floating = true,
ontop = true
}
}
-- Minecraft
ruled.client.append_rule {
id = "Minecraft",
rule_any = {
class = {
"Minecraft Launcher",
"net-minecraft-launcher-Main", -- Launcher
"Minecraft 1.13.2",
"Minecraft 1.15",
},
instance = {
"Minecraft Launcher"
}
},
properties = {
maximized = true
}
}
end)
-- }}}