November 20, 2008
Banshee Plugin for mumbles
I Just wrote a banshee plugin for mumbles. It works much better than banshee's default notification daemon integration. Clicking on the notification brings banshee to the front. Install it like you would any other mumbles plugin (see two posts back or look for instructions on the mumbles homepage).
Source: banshee_plugin.tar.gz
Compiled Egg: BansheeMumbles-0.1-py2.5.egg
November 17, 2008
Change the notification icon in Mumbles without creating a plugin.
I have noticed that several people have asked how to change the notification icon on mumbles without creating a new plugin.This is actually very simple: use the generic DBus plugin with dbus-send. I believe that this tutorial requires the SVN version but I may be mistaken. First add a new section to your DBus plugin configuration file. If you do not have this configuration file, copy the sample one from the mumbles source tarball (found on the project's homepage). The file is called dbus.conf.sample. Copy this file to ~/.mumbles/dbus.conf. The new section is as follows:
[program-or-script-name]
enabled = true
interface = org.program-or-script-name.DBus
path = /org/program-or-script-name/DBus
signal = your-signal
icon = your-icon.png
Put your-icon.png in the
~/.mumbles/plugins/icons/ folder. your-signal is your name for the alert. None of these variables are important but they must be consistent.After doing the previous and restarting mumbles, run this command:
dbus-send /org/program-or-script-name/DBus org.program-or-script-name.DBus.your-signal string:"Title" string:"Message"
Make sure that you replace all necessary variables. This will display a mumbles popup with your custom icon, title, and message. You can also specify a click action using
launch = action.
November 16, 2008
Mumbles with gmail
I have been playing around with mumbles lately and have written a gmail plugin for anyone interested. Mumbles is a notification system that works very much like growl for the mac. The latest SVN version can even replace the gnome notification daemon (but not very well). While still in its infancy, this project shows a lot of promise. I based the plugin on the evolution tutorial on project's homepage. I based the script on this script (with many modifications). When you click on the notification popup, evolution will launch (you can edit the source to change the program). The script requires python-feedparser.
Installing the precompiled plugin:
Do step 2 from the next section. Now download the plugin here and copy it to ~/.mumbles/plugins/.Installing the plugin from source (adapted from dot_j's tutorial):1. Download the sourceInstalling the script:
Download gmail_plugin.tar.gz and extract. Then open a terminal window inside the gmail_plugin folder.
2. Create the directory structure and choose an icon
Run the following commands:
mkdir ~/.mumbles (if you need to, but you shouldn’t) mkdir ~/.mumbles/plugins mkdir ~/.mumbles/plugins/icons
Then either run this to use the default evolution icon...
Or just copy your desired icon into the plugins/icons folder and rename it to evolution.png. This is unnecessary if you already have the evolution plugin.cp /usr/share/icons/hicolor/22×22/apps/evolution.png ~/.mumbles/plugins/icons
Build and install the plugin
This will use our setup.py file to create our plugin. After it runs, you should see a file namedcd ~/gmail_plugin (if you’re not already there) python setup.py bdist_egg
in the dist directory that was created by the build process. Here the -py2.5 part of the filename refers to what version of python you are using (it may vary, but if you are able to start mumbles, should not matter).GmailMumbles-0.1-py2.5.egg
The .egg file is our plugin, so the only thing left to do is copy that to the mumbles plugin directory.
cp dist/GmailMumbles-0.1-py2.5.egg ~/.mumbles/plugins
Download the script here and edit the username and password variables. Run this script with python /path/to/gmail.py (replace /path/to with the path to the script). By default, this script will check for new email every 2 minutes and and alert the user of new mail.BTW: This script does not safely store the username and password. I may, in the distant future, make this script work with gnome-keyring but this is not likely. I hope that mumbles will soon get better notification-daemon support so that I can go back to using mail-notification.
Entries
Comments
Fave
Bookmark