[ Content | View menu ]

Archive for 'code'

Randomized Backdrops 2.0

April 25, 2005

#!/usr/bin/perl -w # This little program sets my background image # randomly in blackbox (and now openbox). # It’s called when I startx. $isxrunning = `ps -C startx | grep "startx"`; if ($isxrunning =~ "startx") { changebackdrop(); } else { exit; } sub changebackdrop { if (!defined $ARGV[0]) { $backdrop_directory = "/home/willyyam/misc/bmps/"; # Set this […]

code - Comments closed

Randomized Backdrops

April 29, 2004

#!/usr/bin/perl -w # This little program sets my background image # randomly in blackbox (and now openbox). # It’s called when I startx. $backdrop_directory = “/home/willyyam/crap/backdrop/”; # Set this to your backdrop files directory. opendir(BD, “$backdrop_directory”) or die; # Normally we’d report errors, but since we will be # running this via script and discarding […]

code - Comments closed

picindex.pl

October 10, 2003

#!/usr/bin/perl -w # This little program takes a directory as its argument and # builds an html frame page with all of the image names in one # frame and a target frame for image viewing. It leaves the # three html pages in the argument directory. print "Enter the directory with the images — […]

code - Comments closed