-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.lua
101 lines (91 loc) · 3.4 KB
/
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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
local telegram_width = 639
awful.rules.rules = {
-- 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,
keys = clientkeys,
buttons = clientbuttons,
screen = awful.screen.preferred,
placement = awful.placement.no_overlap+awful.placement.no_offscreen,
size_hints_honor = false }
},
-- Let the client decide the position
{ rule = { name = "ncmpc" },
properties = { placement = awful.placement.restore }},
-- Floating
{ rule_any = {
class = { "mpv", "gimp", "Gmpc", "Transmission", "Minecraft", "Steam", "Pinentry" },
name = { "File Transfers", "cal", "ncmpc", "puff", "feh" } },
properties = { floating = true }
},
-- Floating and fixed
{ rule_any = { name = { "Telegram" } },
properties = { floating = true,
sticky = true,
ontop = true,
height = awful.screen.focused().geometry.height - beautiful.menu_height,
width = telegram_width,
x = awful.screen.focused().geometry.width - telegram_width - 2,
y = 21 }
},
{ rule = { instance = "Telegram", name = "Media viewer" },
properties = { maximized = true, ontop = true }
},
-- Other
{ rule = { class = "Firefox", type = "normal" },
properties = { screen = 1, tag = "1" }
},
{ rule = { class = "Firefox", instance = "Toplevel" },
properties = { floating = true }
},
{ rule = { name = "xeyes" },
properties = { floating = true, skip_taskbar = true, sticky = true }
},
{ rule = { class = "Claws-mail", role = "mainwindow" },
properties = { maximized = true, sticky = true, hidden = true}
},
{ rule = { class = "Evolution", type = "normal" },
properties = { maximized = true, sticky = true, hidden = true }
},
{ rule = { class = "Evolution", icon_name = "Compose Message" },
properties = { maximized = false, sticky = false, hidden = false, floating = true }
},
{ rule_any = { role = {"compose"}, type = {"dialog"} },
properties = { floating = true, maximized = false}
},
{ rule = { class = "Thunderbird", role = "3pane" },
properties = { maximized = true, sticky = true, hidden = true}
},
{ rule = { name = "Microsoft Teams Notification" },
properties = { floating = true, focusable = false, screen = 1 }
},
{ rule = { class = "Firefox", role = "PictureInPicture" },
properties = { maximized = false, sticky = true, ontop = true, skip_taskbar = true, floating = true }
},
-- Drop consoles
{ rule_any = { instance = {"dropterm1", "dropterm2", "dropterm3"} },
properties = { floating = true, ontop = true, skip_taskbar = true, sticky = true, hidden = true },
callback = function(c)
if c.instance == "dropterm1" then
dropdown.setprop(c, 1, true)
elseif c.instance == "dropterm2" then
dropdown.setprop(c, 2, true)
elseif c.instance == "dropterm3" then
dropdown.setprop(c, 3, true)
end
end
},
-- Right fixed Conky
{ rule = { class = "conky" },
properties = { floating = true,
focus = false,
sticky = true,
skip_taskbar = true,
border_color = beautiful.bg_normal },
callback = conky.callback
}
}
-- vim:ts=4:sw=4