-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules.lua
104 lines (98 loc) · 3.07 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
102
--Requirements (made global):
--local awful = require("awful")
--local beautiful = require("beautiful")
-- Rules to apply to new clients (through the "manage" signal).
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
}
},
-- Floating clients.
{ rule_any = {
instance = {
"DTA",
"copyq",
"pinentry",
},
class = {
"Arandr",
"Blueman-manager",
"Gpick",
"Kruler",
"MessageWin",
"Sxiv",
"Tor Browser",
"Wpa_gui",
"veromix",
"xtightvncviewer",
"float_term", -- KCK additions start here
"music_browse",
"zenity",
"yad",
"info_term",
"mpv",
},
-- 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",
"Picture-in-Picture",
"Picture in picture",
"Firefox — Sharing Indicator",
"Open Files"
},
role = {
"AlarmWindow",
"ConfigManager"--,
--"pop-up", -- was being applied to brave webapps!
}
}, properties = { floating = true } },
-- make YouTube PiP sticky: on all tags
{ rule_any = {
name = {
"Picture-in-Picture",
"Picture in picture"
},
instance = {
"Toolkit"
},
class = {
"mpv"
},
}, properties = { floating = true, sticky = true, ontop = true } },
-- make music browse full screen
{ rule_any = {
class = { "music_browse", "info_term" }
}, properties = { maximized = true, fullscreen = true } },
-- Add titlebars to normal clients and dialogs
-- (changed to only dialogs)
--{ rule_any = {type = { "normal", "dialog" }
{ rule_any = { type = { "dialog" } },
properties = { titlebars_enabled = true }
},
{ rule_any = { name = { "—starter" } },
properties = { screen = RC.startscreen }
}
-- Set Firefox to always map on the tag named "2" on screen 1.
-- { rule = { class = "Firefox" },
-- properties = { screen = 1, tag = "2" } },
}
-- prevent firefox from stealing focus
--awful.ewmh.add_activate_filter(function(c)
-- if c.class == "Firefox" then return false end
--end, "ewmh")
-- prevent qutebrowser from stealing focus
--awful.ewmh.add_activate_filter(function(c)
-- if c.class == "qutebrowser" then return false end
--end, "ewmh")