]> 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:

centred placement of dialogs
authormartin f. krafft <madduck@madduck.net>
Wed, 3 Mar 2010 08:08:49 +0000 (09:08 +0100)
committermartin f. krafft <madduck@madduck.net>
Wed, 3 Mar 2010 08:09:06 +0000 (09:09 +0100)
.config/awesome/rc.lua

index c79e623cb1815bad8a8e5fa3a84c23d603fccf78..2781f765e5c807423eda093a642442f20c73527e 100644 (file)
@@ -482,7 +482,8 @@ awful.rules.rules = {
                      focus = true,
                      floating = true,
                      keys = clientkeys,
-                     buttons = clientbuttons } },
+                     buttons = clientbuttons },
+      callback = awful.placement.centered },
     { rule = { class = "URxvt" },
       properties = { floating = false } },
     { rule = { class = "URxvt", instance = "irc" },
@@ -490,7 +491,7 @@ awful.rules.rules = {
     { rule = { class = "Iceweasel" },
       properties = { tag = tags[screen.count() == 3 and 1 or screen.count()][9], switchtotag = false, floating = false } },
     { rule = { class = "Iceweasel", instance = "Dialog" },
-      properties = { floating = true }, callback = awful.placement.centered },
+      properties = { floating = true } },
     { rule = { class = "Jpilot" },
       properties = { tag = tags[screen.count() == 3 and 1 or screen.count()][8], switchtotag = true, floating = false } },
 }