-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.lua
98 lines (86 loc) · 2.45 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
---------------------------------------------------------------------------
--- Rules
--
-- Awesome tag settings
---------------------------------------------------------------------------
local awful = require("awful")
local beautiful = require("beautiful")
local bindings = require("bindings")
local screen = _G.screen
-- Rules to apply to new clients (through the "manage" signal).
local 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 = bindings.keyboard.client,
buttons = bindings.mouse.client,
screen = awful.screen.preferred,
placement = awful.placement.no_overlap + awful.placement.no_offscreen
}
},
-- Floating clients
{
rule_any = {
instance = {
"DTA", -- Firefox addon DownThemAll
"copyq", -- Includes session name in class
},
class = {
"Arandr",
"Gpick",
"Kruler",
"MessageWin", -- kalarm
"Sxiv",
"Wpa_gui",
"pinentry",
"veromix",
"xtightvncviewer",
},
name = {
"Event Tester", -- xev
},
role = {
"AlarmWindow", -- Thunderbird's calendar
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools
}
},
properties = { floating = true }
},
-- Fullscreen clients
{
rule_any = {
class = {
"awesome-xephyr",
},
},
properties = {
--fullscreen = true,
}
},
-- Add titlebars to normal clients and dialogs
{
rule_any = {
type = { "normal", "dialog" }
},
properties = { titlebars_enabled = true }
},
-- Assign default tags
{
rule_any = {
class = { "Waterfox", "Firefox", "qutebrowser" }
},
properties = { screen = 1, tag = "1" }
},
{
rule_any = {
class = { "TelegramDesktop", "Slack" }
},
properties = { screen = screen.count()>1 and 2 or 1, tag = screen.count() > 1 and "1" or "4" }
},
}
return rules