->"On the other hand, I think power status changes are announced through dbus, so this should still be doable without timers." If you have more informations about this, I would be glad if you shared it. I would like to improve my widgets and did not know that.
On Wed, Mar 18, 2009 at 2:17 PM, Lluis <[email protected]> wrote: > El Wed, Mar 18, 2009 at 08:07:48AM +0100, Julien Danjou ens deleità amb les > següents paraules: >> At 1237331029 time_t, Nathan Huesken wrote: >> > What do you thing? Cool Idea or garbage? >> >> Both. >> To monitor regular file, you can use inotify. You should probably >> require à Lua module to access this function, but that should not be too >> hard to do. However, note that inotify is Linux specific. >> >> OTOH, and AFAIK, inotify won't work for /sys or /proc , because this 2 >> file systems are not real file sytems and no one is writing your >> battery status inside a file; it's when you open it that you go and ask your >> battery its status. > > On the other hand, I think power status changes are announced through dbus, so > this should still be doable without timers. > > apa! > > -- > "And it's much the same thing with knowledge, for whenever you learn > something new, the whole world becomes that much richer." > -- The Princess of Pure Reason, as told by Norton Juster in The Phantom > Tollbooth > > Listening: Dream Theater (Score: 20th Anniversary World Tour) - 7. Raise The > Knife > > -- > To unsubscribe, send mail to [email protected]. > -- Christophe-Marie Duquesne -- To unsubscribe, send mail to [email protected].
