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

improve client rules
authormartin f. krafft <madduck@madduck.net>
Tue, 5 Jan 2010 03:04:23 +0000 (16:04 +1300)
committermartin f. krafft <madduck@madduck.net>
Tue, 5 Jan 2010 03:04:23 +0000 (16:04 +1300)
.config/awesome/rc.lua

index eb4fead83f9cfcd3f57a0cefaab4f7634df3e56c..a240d5400b837f362276930a778cd246e35ac108 100644 (file)
@@ -484,21 +484,13 @@ awful.rules.rules = {
     { rule = { class = "URxvt" },
       properties = { floating = false } },
     { rule = { class = "URxvt", instance = "irc" },
-      properties = { tag = screen.count()>1 and tags[3][1] or tags[1][4], switchtotag = true, floating = false } },
-    { rule = { class = "Okular" },
-      properties = { tag = tags[1][7], switchtotag = true, floating = false } },
-    { rule = { class = "Evince" },
-      properties = { tag = tags[1][7], switchtotag = true, floating = false } },
-    { rule = { class = "OpenOffice.org 3.1" },
-      properties = { tag = tags[1][7], switchtotag = true, floating = false } },
-    { rule = { class = "Vinagre" },
-      properties = { tag = tags[1][6], switchtotag = false, floating = false } },
+      properties = { floating = false, tag = tags[screen.count()][screen.count() == 1 and 2 or 1], switchtotag = true } },
     { rule = { class = "Iceweasel" },
-      properties = { tag = tags[1][9], switchtotag = false, floating = false } },
+      properties = { tag = tags[screen.count() == 3 and 1 or screen.count()][9], switchtotag = false, floating = false } },
     { rule = { class = "Iceweasel", instance = "Dialog" },
-      properties = { floating = true } },
+      properties = { floating = true }, callback = awful.placement.centered },
     { rule = { class = "Jpilot" },
-      properties = { tag = tags[1][8], switchtotag = false, floating = false } },
+      properties = { tag = tags[screen.count() == 3 and 1 or screen.count()][8], switchtotag = true, floating = false } },
 }
 -- }}}