Well, I'm assuming you're talking about the battery widget which is not a part of awesome's core libraries. That is a part of the third-party wicked library. :) Aside from that, it would be nice to catch events when files have changed. I don't know much about inotify so someone else with more experience than I would have to determine if it's a portable way of doing this, but yes... sounds like a great idea. :) Less timers == PROFIT!
Another idea would be only enabling this at build time like with dbus support. I imagine some might not want this feature as it requires whatever dependency for inotify and such. --Though I'd be looking forward to it. :)))-- Final note: I'm for it if someone can implement it. :) Regards 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].
