Status message

The page you requested does not exist. A search for ultimo wallpaper disponibile su skinsbe sempre sul vostro gnome resulted in this page.

Ultimo wallpaper disponibile su skins.be sempre sul vostro Gnome!

Category:

Tutti conoscete skins.be, vero?

$ sudo apt-get install php-cli magpierss imagemagick

$ nano -w /home/utente/fetch.php

$size = "1680x1050";

require_once("magpierss/rss_fetch.inc");
$url = "http://www.skins.be/feeds/en/skins.xml";
$rss = fetch_rss( $url );

$item = array_slice($rss->items, 0, 1);
$url = explode("/",$item[0]['link']);
exec("wget -q -O /tmp/wallpaper.jpg http://wallpapers.skins.be/".$url[3]."/".$url[3]."-$size-".$url[4].".jpg");
exec("convert /tmp/wallpaper.jpg -sepia-tone 85% /tmp/wallpaper.jpg");
exec("gconftool-2 -t string -s \"/desktop/gnome/background/picture_filename\" \"/tmp/wallpaper.jpg\"");
?>

Eseguire lo script ogni 60 minuti
$ crontab -e
0 * * * * php /home/scorp/coding/skins-be/fetch.php

Et voilà  :p

Se usate XFCE: invece di gconftool basta dare uno "xfdesktop -reload", dopo aver impostato tramite la gui /tmp/wallpaper.jpg come sfondo del desktop.

Add new comment

Via Twitter

  • Meet the $70 USB ‘Minority Report’ Device More Accurate Than Kinect http://t.co/5IJ13Znj via @omgubuntu 20 hours 3 min ago
  • Seems that using apache2-mpm-itk with KeepAlive on and varnish is evil. Disable KeepAlive and Forbidden errors will disappear. 1 day 7 hours ago
  • Fing - Network scanner for Android https://t.co/ukIdHHqK 3 days 13 hours ago
  • @manuelmazzuola io stavo per provare redis, ma ho un sonno che schianto e vo a letto :P lunedì si prova 4 days 5 hours ago
  • Symfony CMF as a CMS replacement for developers #phpday http://t.co/RsUTvcR3 4 days 11 hours ago

Blog written by Giovanni Toraldo and licensed under CC-BY-SA

This blog is anonymously available via:
tor and tor2web.

Powered by Drupal
ipv6 test
WORLD IPV6 LAUNCH is 6 June 2012 – The Future is Forever