From 8c1367105b2258cfe76619461c9ad31d3d8a622d Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 6 Jan 2020 09:10:14 +0100 Subject: Add rules --- .config/awesome/rc.lua | 148 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 105 insertions(+), 43 deletions(-) (limited to '.config/awesome/rc.lua') 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" } }, } -- }}} -- cgit v1.1