On Tue, Jan 16, 2001 at 01:58:08AM -0600, Glen Lee Edwards <[EMAIL PROTECTED]>
wrote:
| How do I change my background in X? More specifically, I tried to add in a
| graphics background using xsetroot, but keep getting the following error:
| xsetroot: bad bitmap format file: /home/glenlee/graphics/bridge.jpg
| Using Gimp I've changed the format to xpm, bmp, pix, and png, with the same
| results.
Xsetroot only understands X bitmap format, a C language textual 1-bit
deep format. If 8-bit mapped colour is ok you can convert to xpm and
use the "xpmroot" program. For true colour, I convert to png or jpg and
then use ImageMagick's mogrify program.
I wrap all this up as a script called rootbg:
http://www.zip.com.au/~cs/scripts/rootbg
Ignore the cruft about xplanet, you want the bit at the bottom:
case "$src" in
*.gif|*.xpm) 2xpm -s root "$src" xpmroot & ;;
*) 2png -s root "$src" display -window root & ;;
esac
2xpm is also a script which eventually invokes xpmroot after scaling the image:
http://www.zip.com.au/~cs/scripts/2xpm
2png is a link to the same script which invokes mogrify.
With all this string in place I can then say:
rootbg imagefile
or
rootbg /regexp/
and some little time later my root background is set.
Cheers,
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
No one is completely worthless... they can always serve as a bad example.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list