]> git.madduck.net Git - etc/awesome.git/commitdiff

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:

better handling for gscan2pdf
authormartin f. krafft <madduck@madduck.net>
Mon, 20 Jun 2022 04:39:36 +0000 (06:39 +0200)
committermartin f. krafft <madduck@madduck.net>
Mon, 20 Jun 2022 04:39:44 +0000 (06:39 +0200)
.config/awesome/rc.lua

index c8dc310d129f9c53302d82dc8c97add9cefae3ab..5b4ca3ed46ae9ff64681e0b37dbc2d5d464efeca 100644 (file)
@@ -1089,7 +1089,6 @@ awful.rules.rules = {
                    },
     },
     { rule_any = { class = {
-                        "Gscan2pdf",
                         "Gimp",
                         "Inkscape",
                         "Pitivi",
@@ -1108,7 +1107,24 @@ awful.rules.rules = {
                      --switchtotag = true,
                      focus = true,
                    },
-    },
+               },
+    { rule_any = { class = {
+                        "Gscan2pdf",
+                    },
+                },
+      except_any = { type = { "dialog" } },
+      properties = { new_tag = {
+                        layout = layouts.default,
+                        volatile = true,
+                    },
+                    floating = true,
+                    maximized = false,
+                    focus = true,
+                    placement = awful.placement.centered,
+                    switchtotag = true,
+                    focus = true,
+                   },
+               },
 --XX--    { rule = { class = "Gscan2pdf" },
 --XX--               properties = {
 --XX--                   switchtotag = true