]> git.madduck.net Git - etc/awesome.git/blobdiff - .config/awesome/rc.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

screen placement hack
[etc/awesome.git] / .config / awesome / rc.lua
index a42ed9e4100dd628941d3a9a54f7fb7381307395..382ee9ecd2fad21867670b5173572053af2968c3 100644 (file)
@@ -533,40 +533,11 @@ awful.rules.rules = {
                      keys = clientkeys,
                      buttons = clientbuttons,
                      placement = awful.placement.no_overlap+awful.placement.no_offscreen,
+                     -- https://github.com/awesomeWM/awesome/issues/1091#issuecomment-246933520
+                     screen = function (c) return awesome.startup and c.screen or awful.screen.focused() end,
      }
     },
 
-    -- 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",
-            "MuPDF",
-            "vlc",
-            "Wicd-client.py",
-            "Blueman-manager"
-        },
-
-        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
     --DISABLED-- { rule_any = {type = { "normal", "dialog" }
     --DISABLED--  }, properties = { titlebars_enabled = true }
@@ -577,6 +548,7 @@ awful.rules.rules = {
 
     { rule = { class = "URxvt" },
                properties = {
+                   floating = false,
                    size_hints_honor = false
                } },
     { rule = { class = "URxvt", instance = "irc" },
@@ -588,6 +560,7 @@ awful.rules.rules = {
            },
     { rule = { class = "Firefox" },
                properties = {
+                   floating = false,
 --                   screen = screen.count(),
 --                   tag = screen.count() == 1 and "2" or "1"
                },
@@ -595,6 +568,7 @@ awful.rules.rules = {
            },
     { rule = { class = "Icedove" },
                properties = {
+                   floating = false,
 --                   screen = screen.count(),
 --                   tag = screen.count() == 1 and "2" or "1"
                },
@@ -602,6 +576,7 @@ awful.rules.rules = {
            },
     { rule = { class = "chromium" },
                properties = {
+                   floating = false,
 --                   screen = screen.count(),
 --                   tag = screen.count() == 1 and "2" or "1"
                },
@@ -609,6 +584,7 @@ awful.rules.rules = {
            },
     { rule = { class = "Gscan2pdf" },
                properties = {
+                   floating = false,
                    screen = 1,
                    tag = "7"
                },