Blah, I forgot to mention...  This would still be a hook of some kind.

Something like registering a "file change" hook and you would provide a 
function that would be executed when the hook is called on the inotify event. 
:>  (Sorry if this sounds dumb, I'm speaking from theory, not from actual 
inotify experience)

Laters. :)

On Wed, 18 Mar 2009 00:03:49 +0100
Nathan Huesken <[email protected]> wrote:

> Hi,
> 
> Stimulated by the talk about notification deamons, I wondered.
> Many widgets in my awesome setup constantly poll files.
> For example, the battery widget constantly polls filed in /sys to disply when 
> the AC is plugged in or out.
> 
> I do not know much about what I am talking about, but would it not be much 
> more efficient to do this using inotify events?
> 
> I guess for this to work, the lua api would have to be extended but a 
> function:
> notify_on_change(file,func)
> calling func on changes to file.
> 
> What do you thing? Cool Idea or garbage?
> 
> Regards,
> Nathan
> 
> -- 
> To unsubscribe, send mail to [email protected].

-- 
To unsubscribe, send mail to [email protected].

Reply via email to