aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/rc.lua
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-01-06 09:10:14 +0100
committerPatrick Spek <p.spek@tyil.nl>2020-01-06 09:10:14 +0100
commit8c1367105b2258cfe76619461c9ad31d3d8a622d (patch)
tree27dbbde0e24dc42ecc90fb88650716c0b7441686 /.config/awesome/rc.lua
parent974966c2e6eb8900e8a7a178c537f4de9a6d0243 (diff)
Add rules
Diffstat (limited to '.config/awesome/rc.lua')
-rw-r--r--.config/awesome/rc.lua148
1 files changed, 105 insertions, 43 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index a171028..d934a6e 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -427,53 +427,115 @@ root.keys(globalkeys)
-- Rules
-- 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
- }
+ -- 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", -- 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
+ }
+ },
- -- 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 }},
-
- -- Add titlebars to normal clients and dialogs
- { rule_any = {type = { "normal", "dialog" }
- }, properties = { titlebars_enabled = true }
+ -- Add titlebars to normal clients and dialogs
+
+ {
+ rule_any = {
+ type = {
+ "normal",
+ "dialog"
+ }
},
+ properties = {
+ titlebars_enabled = true
+ }
+ },
+
+ -- Application-specific rules
+
+ -- www-client/chromium
+ {
+ rule_any = {
+ class = {
+ "chromium-browser-chromium",
+ "Chromium-browser-chromium",
+ }
+ },
+ properties = {
+ tag = sharedtaglist[3]
+ },
+ },
+
+ -- www-client/firefox
+ {
+ rule_any = {
+ class = {
+ "Navigator",
+ "Firefox Developer Edition"
+ }
+ },
+ properties = {
+ tag = sharedtaglist[3]
+ },
+ },
+
+ -- media-video/mpv
+ {
+ rule_any = {
+ class = {
+ "gl",
+ "mpv",
+ }
+ },
+ properties = {
+ tag = sharedtaglist[5]
+ },
+ },
+
+ { properties = { tag = sharedtaglist[4] }, rule_any = { class = { "claws-mail", "Claws-mail" } } },
+ { properties = { tag = sharedtaglist[5] }, rule_any = { name = { "Blizzard Battle.net" } } },
+ { properties = { tag = sharedtaglist[5] }, rule_any = { name = { "World of Warcraft" } } },
- -- Set Firefox to always map on the tag named "2" on screen 1.
- -- { rule = { class = "Firefox" },
- -- properties = { screen = 1, tag = "2" } },
+ -- Set Firefox to always map on the tag named "2" on screen 1.
+ -- { rule = { class = "Firefox" },
+ -- properties = { screen = 1, tag = "2" } },
}
-- }}}