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

testing signals and urgency flags
authormartin f. krafft <madduck@madduck.net>
Tue, 26 Oct 2010 18:00:59 +0000 (20:00 +0200)
committermartin f. krafft <madduck@madduck.net>
Tue, 26 Oct 2010 18:00:59 +0000 (20:00 +0200)
.config/awesome/rc.lua

index 79e5cd21ab7ac6848e1fb94425374ab27eed1d79..088ba67d54498983cac16455f74cfc4ec9d3e1ff 100644 (file)
@@ -534,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() .. " "