You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been looking into making some kind of centralized notification system to funnel notifications into one application, specifically to push them to my android phone. As a first base I decided to use Growl since many applications allow Growl notifications. But, Grow-for-Linux stops after showing the popup. This is where my lousy hacking skills came in. I have altered the balloon display to run a script with every balloon popup. I added the following code to balloon.c to the display_show():
Note that I am a Java programmer by trade and have very limited experience in C. But this does get the job done of having the balloon popup also call the script located at /home/floris/script.sh and it adds as first and second parameter the title and the message.
There must be a way to do this more properly. Maybe even add an option on the gui to select a certain script to execute instead of this hardcoded thing.
The text was updated successfully, but these errors were encountered:
Currently, gol don't have customizable, or dynamically plugin specifications. for example putting python or LL interfaces.
So I want to add interfaces to gol. If it finished, it will enable to do it for you.
Is there any documentation on how to create a custom popup? I was unable to find any so ended up hacking the balloon.c. I would like it if I could create and add my own popup version instead of overwriting the current balloon one.
Hello Mattn,
First of all, GoL looks great.
I have been looking into making some kind of centralized notification system to funnel notifications into one application, specifically to push them to my android phone. As a first base I decided to use Growl since many applications allow Growl notifications. But, Grow-for-Linux stops after showing the popup. This is where my lousy hacking skills came in. I have altered the balloon display to run a script with every balloon popup. I added the following code to balloon.c to the display_show():
char str[2000];
strcpy (str, "sh /home/floris/script.sh '");
strcat (str, di->ni->title);
strcat (str, "' '");
strcat (str, di->ni->text);
strcat (str, "'");
system(str);
Note that I am a Java programmer by trade and have very limited experience in C. But this does get the job done of having the balloon popup also call the script located at /home/floris/script.sh and it adds as first and second parameter the title and the message.
There must be a way to do this more properly. Maybe even add an option on the gui to select a certain script to execute instead of this hardcoded thing.
The text was updated successfully, but these errors were encountered: