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

testing signals and urgency flags
[etc/awesome.git] / .config / awesome / rc.lua
index 7b2ae0e58955e5629d421a5d6d017a42ea8eb1a0..088ba67d54498983cac16455f74cfc4ec9d3e1ff 100644 (file)
@@ -488,12 +488,16 @@ awful.rules.rules = {
       properties = { floating = false } },
     { rule = { class = "URxvt", instance = "irc" },
       properties = { floating = false, tag = tags[screen.count()][screen.count() == 1 and 2 or 1], switchtotag = true } },
-    { rule = { class = "Iceweasel" },
+    { rule = { class = "Iceweasel", instance = "Navigator" },
       properties = { tag = tags[screen.count() == 3 and 1 or screen.count()][9], switchtotag = false, floating = false } },
-    { rule = { class = "Iceweasel", instance = "Dialog" },
-      properties = { floating = true } },
-    { rule = { class = "Jpilot" },
+--    { rule = { class = "Iceweasel", instance = "Dialog" },
+--      properties = { floating = true } },
+    { rule = { class = "Jpilot", instance = "jpilot" },
       properties = { tag = tags[screen.count() == 3 and 1 or screen.count()][8], switchtotag = true, floating = false } },
+--    { rule = { name = "OpenOffice.org" },
+--      properties = { switchtotag = true, floating = true, maximized_vertical = true, maximized_horizontal = true, callback = awful.placement.no_offscreen } },
+--    { rule = { name = "Okular" },
+--      properties = { switchtotag = true, floating = true, maximized_vertical = true, maximized_horizontal = true, callback = awful.placement.no_offscreen } },
 }
 -- }}}
 
@@ -530,6 +534,18 @@ end)
 client.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)
 client.add_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
 
+function clear_urgency_flag(c)
+    print("property::urgent received for client: ", c)
+    io.flush ()
+--    if c.urgent then
+--        c.urgent = false
+--    end
+end
+
+client.add_signal("new", function (c)
+  c:add_signal("property::urgent", clear_urgency_flag)
+end)
+
 -- Hook called every sixty seconds
 function hook_battery()
     mybatterybox.text = " " .. get_acpibatt() .. " "