<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>ronin: Category Gnome</title>
    <link>http://blogs.divisibleprime.com/ronin/articles/category/gnome</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Stuff</description>
    <item>
      <title>Command line Gnome Notification</title>
      <description>&lt;p&gt;From the &amp;#8220;it&amp;#8217;s almost certainly been done better somewhere else&amp;#8221; department, here is my script to fire off a Gnome Notification after a shell command finishes.&lt;/p&gt;

&lt;p&gt;a python script:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;#!/usr/bin/python
from pynotify import *
import sys

def notify(message=""):
    n = Notification("Command Line Completed", message)
    n.show()

init("cli notify")
if len(sys.argv) &amp;gt; 1:
    notify(sys.argv[1])
else:
    notify()
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then just add it to your path and you can append it onto some command:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;echo monkey &amp;amp;&amp;amp; mynotify.py "some message"
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You then get a notification like so:&lt;/p&gt;

&lt;p&gt;&lt;img src="http://blogs.divisibleprime.com/ronin/files/notify.png" alt="image"/&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 10 Mar 2008 21:38:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:d238e5be-6172-45f2-85db-d6d2eebbeb42</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2008/03/10/command-line-gnome-notification</link>
      <category>Tech</category>
      <category>Gnome</category>
      <category>Linux</category>
      <category>linux</category>
      <category>gnomy</category>
      <category>python</category>
      <category>notify</category>
      <category>desktop</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/940</trackback:ping>
    </item>
    <item>
      <title>Gnome Development Forums</title>
      <description>&lt;p&gt;&lt;a href="http://www.gnomedev.com/"&gt;GnomeDev.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A new forum for all things related to Gnome development.  Will be interesting to see if it gains much traction.  There isn&amp;#8217;t much content on there right now, but there are some pointers to tutorials and things for developing in Gnome.&lt;/p&gt;</description>
      <pubDate>Sun, 26 Feb 2006 12:08:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:2067a90b-fce4-4f55-b599-7e99c9338bf6</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2006/02/26/gnome-development-forums</link>
      <category>Tech</category>
      <category>Gnome</category>
      <category>Linux</category>
    </item>
  </channel>
</rss>
