From 6e73702df563d86693a0e59e1c6a9bd09d1dbcf2 Mon Sep 17 00:00:00 2001 From: elenapan Date: Tue, 21 Apr 2020 23:19:35 +0300 Subject: [PATCH] Add more client rules and fix some pattern matching mistakes --- config/awesome/elemental/window_switcher.lua | 1 + config/awesome/rc.lua | 24 ++++++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/config/awesome/elemental/window_switcher.lua b/config/awesome/elemental/window_switcher.lua index c5867f7..2a53417 100644 --- a/config/awesome/elemental/window_switcher.lua +++ b/config/awesome/elemental/window_switcher.lua @@ -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 }, diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 230eb45..24a924c 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -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] }