On Thu, 28 Aug 2003, Jamin W. Collins wrote:
> On Thu, Aug 28, 2003 at 06:41:35AM -0400, Scott R. Godin wrote:
> > On Wed, 27 Aug 2003, Marc Wilson wrote:
> > > On Wed, Aug 27, 2003 at 11:57:18PM +0300, Anarky wrote:
> > > >
> > > > - is there a way to set a background image in blackbox?
> > >
> > > Not the window manager's job. What's so bloody hard about setting
> > > it in your xinitrc/xsession file like the rest of us do?
> >
> > Of course you can always make this part of your style file like
> > someone more familiar with blackbox would (ie. someone who actually
> > reads the manual from time to time).
>
> Actually, I remove the background command from all my style files. I
> want the background I chose, not the background for some style. So,
> while that is one way of doing it, there is at least one reason for no
> doing it that way.
one other thing you can do is create a short script and put it in ~/bin
and then have your style files execute that script instead. then you can
easily change your background by altering the script (or having it
randomize... I've done this myself (see below))
~>$ cat bin/mywall
#!/usr/bin/perl -w
use strict;
use File::Glob qw{:globally :nocase};
chdir "/usr/share/backgrounds/wallpaper/" or die "unable to chdir: $!";
my @files = glob('*.{jpg,png}');
my $file = $files[ rand( $#files ) ];
print "X background set to '$file'\n";
exec("wmsetbg", $file) or die "unable to exec wmsetbg $file\n";
__END__
then just set the background to this, and boom, instant randomized
wallpaper.
--
Laughing Dragon Services
http://www.webdragon.net/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
List archives: http://asgardsrealm.net/lurker/splash/index.html
Trouble? Contact [EMAIL PROTECTED]