<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>david kerr &#187; gnome</title>
	<atom:link href="http://www.davidmkerr.com/tag/gnome/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidmkerr.com</link>
	<description>Weapons designer. Innovator, inventor, world changer</description>
	<lastBuildDate>Thu, 26 Aug 2010 04:32:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>randombg &#8211; Another Gnome Random background switcher</title>
		<link>http://www.davidmkerr.com/software/randombg-another-gnome-random-background-switcher/</link>
		<comments>http://www.davidmkerr.com/software/randombg-another-gnome-random-background-switcher/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 00:43:18 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.davidmkerr.com/?page_id=184</guid>
		<description><![CDATA[I didn&#8217;t like a lot of the official background changers out there for Ubuntu + Gnome. The best one that I tried was Desktop Drapes and it just wasn&#8217;t stable for me. I also thought that having a program constantly running to change my desktop background was a little excessive. So I wrote a little [...]]]></description>
			<content:encoded><![CDATA[<p>I didn&#8217;t like a lot of the official background changers out there for Ubuntu + Gnome.<br />
The best one that I tried was Desktop Drapes and it just wasn&#8217;t stable for me.</p>
<p>I also thought that having a program constantly running to change my desktop background was a little excessive. </p>
<p>So I wrote a little switcher in perl. I used perl because I wanted to make sure that the desktop actually switched each time (i.e., no direct repeats) and I felt that perl was better for this than a shell script.</p>
<p>I had to go the symbolic link route because Gnome requires DBUS_SESSION_BUS_ADDRESS to be set, it&#8217;s only set in the environment of your X session, and there was no (good) way to extract that via cron. Which is why you always see bg changers outside of cron.</p>
<p>The usage is pretty straight forward:<br />
<code>
<pre>randombg.pl &lt;directory&gt;</pre>
<p></code><br />
Where &lt;directory&gt; is where your backgrounds are located.</p>
<p><strong>Note 1:</strong> &lt;directory&gt; defaults to ~/Pictures, so if that&#8217;s where you have your backgrounds then you don&#8217;t need to send a command line to it).</p>
<p><strong>Note 2:</strong> this will create a symbolic link called <u>background.jpg</u> in your picture directory, so make sure that file doesn&#8217;t already exist.</p>
<p>I then set this up in cron:<br />
<code><br />
0-59/15 * * * *	~/scripts/randombg.pl<br />
</code></p>
<p>That swaps out my background every 15 minutes.</p>
<p>You can download randombg.pl.gz <a href='http://www.davidmkerr.com/wp-content/uploads/2009/11/randombg.pl_1.gz'>here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidmkerr.com/software/randombg-another-gnome-random-background-switcher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
