-- tkabber_status.lua -- Ivan Korostelev -- http://ivank.ru/usefull local settings = { update_interval=1*1000, } function get_count() local count = nil ioncore.clientwin_i(function (win) if win:get_ident().class == "Tkabber" then local name = win:name() local c = string.match(name, "^%((%d+)%*%)") if c then count = c return false end end return true end) return count end function update_count() local count = get_count() if count then mod_statusbar.inform("tkabber", "("..count..")") mod_statusbar.inform("tkabber_hint", "important") else mod_statusbar.inform("tkabber", ""); end tkabber_timer:set(settings.update_interval, update_count) end tkabber_timer = ioncore.create_timer() update_count()