generated from 2KAbhishek/bare-minimum
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrules.lua
67 lines (61 loc) · 2.38 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
local awful = require('awful')
local beautiful = require('beautiful')
local rules = {}
-- Rules to apply to new clients (through the "manage" signal).
function rules.create(client_keys, client_buttons)
return {
-- 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 = client_keys,
buttons = client_buttons,
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.
'pinentry',
},
class = {
'Arandr',
'Blueman-manager',
'Gpick',
'Kruler',
'MessageWin', -- kalarm.
'Sxiv',
'Tor Browser', -- Needs a fixed window size to avoid fingerprinting by screen size.
'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
{ rule_any = { type = { 'normal', 'dialog' } }, properties = { titlebars_enabled = false } },
-- Set Firefox to always map on the tag named "2" on screen 1.
-- { rule = { class = "Firefox" },
-- properties = { screen = 1, tag = "2" } },
}
end
return rules