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

Attachment: signature.asc
Description: Digital signature

Reply via email to