2010/2/21 Gerry LaMontagne <[email protected]>: > On Sun, Feb 21, 2010 at 01:37:16PM +0300, Sergey Mironov wrote: >> Hi community! I use bashets [1] as data source for my awesome widgets. >> I like the idea, but this library uses timer-based polling design and >> i found it quite bad. So i am searching for better solution. I think >> about following: >> >> 1. FIle descriptor event notifications. Unfortunately, awesome lucks >> poll-like capi notification function. >> 2. dbus-driven event notifications, kind of "script X has new data to >> display". These could solve a problem, so my question is: >> how to send custom dbus message with shell script and catch ones in >> awesome? Does anyone use things like that? >> >> [1] - http://awesome.naquadah.org/wiki/Bashets >> -- >> Thanks, >> Sergey >> >> -- >> To unsubscribe, send mail to [email protected]. >> > > I do something like this to integrate uzbl with awesome. Uzbl uses a > sockets for communications. I use a python script in uzbl, bound to a key, > to send the socket descriptor of the uzbl instance to awesome. This > allows me to trigger a pop-up address bar (a textbox widget) which I > then can enter a URL into for uzbl. To facilitate this, I just created > a function in my awesome.rc that my uzbl-script invokes via dbus. > > I can't say if this is exactly what you're after- but it seems close as > I'm pushing a piece of data into awesome using a python script. The > awesome-client is just a bash script, perhaps that would be a place to > start. > > Regards- > Gerry LaMontagne > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iF4EAREIAAYFAkuBL+oACgkQuZVaBQlJuPEtngD/dCjts9c0AcORgF/pZHnUTXP6 > K+Zh7g8U1g0zwLpHK4YA/1mATP21+BMfWXgwPNUMYnUKtMcWQ5bA+mRz+aG2Ge3j > =3OQB > -----END PGP SIGNATURE----- > >
Thanks for awesome-client pointing. I simply didn't know that it is a plain bash. I'll try to implement 'async' bashets on top of it. -- Thanks, Sergey -- To unsubscribe, send mail to [email protected].
