keep chrome apps from floating master
authorBenjamin Mako Hill <mako@atdot.cc>
Fri, 9 Oct 2020 17:41:03 +0000 (10:41 -0700)
committerBenjamin Mako Hill <mako@atdot.cc>
Fri, 9 Oct 2020 17:41:03 +0000 (10:41 -0700)
- comment out a pop-up rule
- add a specific non-floating rule for overleaf
- remove title bars from basically all windows

rc.lua

diff --git a/rc.lua b/rc.lua
index 2289a1217c81303dbae248c34bf3132e0bc189e4..5c35eb73b4d4871105462b2915dace5dbf0b4972 100644 (file)
--- a/rc.lua
+++ b/rc.lua
@@ -508,7 +508,6 @@ awful.rules.rules = {
                      placement = awful.placement.no_overlap+awful.placement.no_offscreen
      }
     },
                      placement = awful.placement.no_overlap+awful.placement.no_offscreen
      }
     },
-
     -- Floating clients.
     { rule_any = {
         instance = {
     -- Floating clients.
     { rule_any = {
         instance = {
@@ -536,13 +535,18 @@ awful.rules.rules = {
         role = {
           "AlarmWindow",  -- Thunderbird's calendar.
           "ConfigManager",  -- Thunderbird's about:config.
         role = {
           "AlarmWindow",  -- Thunderbird's calendar.
           "ConfigManager",  -- Thunderbird's about:config.
-          "pop-up",       -- e.g. Google Chrome's (detached) Developer Tools.
+          -- this is commented out to try to keep all chrom(e|ium) apps from being floating
+          -- "pop-up",       -- e.g. Google Chrome's (detached) Developer Tools.
         }
       }, properties = { floating = true }},
 
     -- Add titlebars to normal clients and dialogs
         }
       }, properties = { floating = true }},
 
     -- Add titlebars to normal clients and dialogs
-    { rule_any = {type = { "normal", "dialog" }
-      }, properties = { titlebars_enabled = true }
+    -- { rule_any = {type = { "normal", "dialog" }
+    --   }, properties = { titlebars_enabled = true }
+    -- },
+    -- make so that overleaf is not floating
+    { rule = { class = "crx_gjoaplgcpnmemdaklplebdapjihcoibe" },
+      properties = {floating = false}
     },
 
     -- Set Firefox to always map on the tag named "2" on screen 1.
     },
 
     -- Set Firefox to always map on the tag named "2" on screen 1.

Benjamin Mako Hill || Want to submit a patch?