From: martin f. krafft Date: Tue, 26 Oct 2010 18:00:59 +0000 (+0200) Subject: testing signals and urgency flags X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/d48d9054871da65e6f0c02f3c8faa2c49fcbd30f?ds=sidebyside testing signals and urgency flags --- diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 79e5cd2..088ba67 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -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() .. " "