<?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>The Rubylution: Automatically changing Background Wallpaper in XFCE4</title>
    <link>http://rubylution.ping.de/articles/2007/08/31/automatically-changing-background-wallpaper-in-xfce4</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Starts&amp;hellip; Now.</description>
    <item>
      <title>Automatically changing Background Wallpaper in XFCE4</title>
      <description>&lt;p&gt;I recently switched from the good, old trusty &lt;a href="http://www.windowmaker.info/"&gt;WindowMaker&lt;/a&gt; to &lt;a href="http://www.xfce.org/"&gt;XFCE4&lt;/a&gt; as a window manager/desktop environment.&lt;/p&gt;

&lt;p&gt;Before the switch I used &lt;code&gt;xsetbg&lt;/code&gt; in the crontab to change my background from the standard wallpaper of my theme to another image every hour. Now I configured Desktop Preferences -&gt; Image -&gt; New list to create a list of desktop images to choose from. But how to swtich every hour or at all? &lt;code&gt;xsetbg&lt;/code&gt; stopped to work under XFCE4 for some reason. It's also strange, that you can configure a list in XFCE4, but it is only used once after login in.&lt;/p&gt;

&lt;h5&gt;The solution&lt;/h5&gt;

&lt;p&gt;Put this line into your crontab:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;0 * * * * killall -USR1 xfdesktop&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This will reload xfdesktop's configuration and also switch to a new backdrop image. Yeah, it's that easy, but it took me a while to figure it out.&lt;/p&gt;

&lt;p&gt;There is also the &lt;code&gt;xfdesktop -reload&lt;/code&gt; command, but I had some problems to connect to the X server from the crond. Maybe this is caused by my paranoid X configuration, though.&lt;/p&gt;</description>
      <pubDate>Fri, 31 Aug 2007 15:41:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:9b74bf41-071f-4aab-a4eb-30a67f6ac060</guid>
      <author>flori@ping.de (flori)</author>
      <link>http://rubylution.ping.de/articles/2007/08/31/automatically-changing-background-wallpaper-in-xfce4</link>
      <category>xfce</category>
      <category>xfce4</category>
      <category>linux</category>
      <category>gentoo</category>
    </item>
  </channel>
</rss>
