Add more client rules and fix some pattern matching mistakes

This commit is contained in:
elenapan 2020-04-21 23:19:35 +03:00
parent b60c1ccda6
commit 6e73702df5
2 changed files with 15 additions and 10 deletions

View file

@ -31,6 +31,7 @@ local class_icons = {
-- General
['TelegramDesktop'] = { symbol = "", color = x.color4 },
['Firefox'] = { symbol = "", color = x.color3 },
['firefox'] = { symbol = "", color = x.color3 },
['Chromium'] = { symbol = "", color = x.color4 },
['Chromium-browser'] = { symbol = "", color = x.color4 },
['Steam'] = { symbol = "", color = x.color2 },

View file

@ -390,6 +390,7 @@ awful.rules.rules = {
"Nm-connection-editor",
"File-roller",
"fst",
"Nvidia-settings",
},
name = {
"Event Tester", -- xev
@ -405,7 +406,7 @@ awful.rules.rules = {
"dialog",
}
},
properties = { floating = true, ontop = false }
properties = { floating = true }
},
-- TODO why does Chromium always start up floating in AwesomeWM?
@ -414,6 +415,7 @@ awful.rules.rules = {
rule_any = {
class = {
"Chromium-browser",
"Chromium",
}
},
properties = { floating = false }
@ -484,7 +486,7 @@ awful.rules.rules = {
"leagueclientux.exe",
"riotclientux.exe",
"leagueclient.exe",
"editor",
"^editor$",
"markdown_input"
},
class = {
@ -494,13 +496,17 @@ awful.rules.rules = {
--"discord",
--"TelegramDesktop",
"Firefox",
"firefox",
"Steam",
"Lutris",
"Chromium",
"editor",
"^editor$",
"markdown_input"
-- "Thunderbird",
},
type = {
"splash"
}
},
properties = { titlebars_enabled = false },
},
@ -618,7 +624,7 @@ awful.rules.rules = {
-- Keepass
{
rule_any = { class = { "KeePassXC" } },
except_any = { name = { "KeePassXC-Browser Confirm Access" } },
except_any = { name = { "KeePassXC-Browser Confirm Access" }, type = { "dialog" } },
properties = { floating = true, width = screen_width * 0.7, height = screen_height * 0.75},
},
@ -790,6 +796,7 @@ awful.rules.rules = {
rule_any = {
class = {
"Firefox",
"firefox",
-- "qutebrowser",
},
},
@ -806,6 +813,7 @@ awful.rules.rules = {
rule_any = {
class = {
"portal2_linux",
"deadcells",
"csgo_linux64",
"EtG.x86_64",
"factorio",
@ -842,16 +850,11 @@ awful.rules.rules = {
{
rule_any = {
class = {
"editor",
"^editor$",
-- "Emacs",
-- "Subl3",
},
},
except_any = {
class = {
"Nm-connection-editor",
},
},
properties = { screen = 1, tag = awful.screen.focused().tags[4] }
},
@ -919,6 +922,7 @@ awful.rules.rules = {
},
instance = {
"torrent",
"qemu",
}
},
properties = { screen = 1, tag = awful.screen.focused().tags[10] }