-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrules.lua
More file actions
91 lines (83 loc) · 2.06 KB
/
rules.lua
File metadata and controls
91 lines (83 loc) · 2.06 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
83
84
85
86
87
88
89
90
91
local awful = require("awful")
local beautiful = require("beautiful")
-- Load these after beautiful init
local tagnames = awful.util.tagnames
-- Rules to apply to new clients (through the "manage" signal).
myrules = {
-- 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,
size_hints_honor = false, -- Remove gaps between terminals
screen = awful.screen.preferred,
callback = awful.client.setslave,
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",
"Emulator",
"Gpick",
"Gcolor3",
"Kruler",
"MessageWin", -- kalarm.
-- "Sxiv",
"feh",
"Wpa_gui",
"pinentry",
"veromix",
"xtightvncviewer",
"org.gnome.FileRoller",
},
name = {
"Event Tester", -- xev.
},
role = {
"AlarmWindow", -- Thunderbird's calendar.
"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 = true } },
-- Set Lollypop to always map on the tag named tagnames[3] on screen 1.
{
rule = { class = "Lollypop" },
properties = { screen = 1, tag = tagnames[3] },
callback = function()
local screen = awful.screen.focused()
local tag = screen.tags[3]
if tag then
tag:view_only()
end
end,
},
-- Set Smplayer to always map on the tag named tagnames[3] on screen 1.
{ rule = { class = "smplayer" }, properties = { screen = 1, tag = tagnames[3] } },
{
rule = { class = "float_on_top_in_corner" },
properties = {
ontop = true,
floating = true,
width = 620,
height = 120,
x = 1313,
y = 2,
},
},
}
return myrules