cde-backdrop is a shell script (/bin/sh) that can be used on the command line or called from other scripts, which will find the CDE backdrop window which you select by name, and apply an image (in a variety of formats) to that background.
cde-backdrop [ workspace | -select ] imagefile cde-backdrop -list cde-backdrop [ workspace | -select ] -id"workspace" can be the workspace's given name (shown on the front panel button of CDE, and changeable by the user), or it can be the internal name of the workspace which is "ws" followed by the number of the workspace starting at zero (e.g. ws2 is the third workspace).
If "-select" is given as the workspace, you will be prompted to click on the window where you want to set the background. In theory this could load backgrounds onto all kinds of windows, but it won't do anything with most application windows.
If no workspace is given the current workspace is used.
The imagefile is just the filename of an image. Images are painted onto CDE windows using the xloadimage program (a standard program in the X11 distribution). The script attempts to convert some file types that xloadimage does not support into types that it does. If the script can't figure out what the file is from the extension, it just passes it to xloadimage anyway and hopes that xloadimage knows what to do with it. As a special case, the filename "-" tells the script to read the image from standard input.
A filename of "-id" tells the program not to paint the background. Instead, it simply reports the window id of the CDE backdrop that you requested. This might be useful for writing other scripts, or if you have something besides "xloadimage" that you want to use.
If "-list" is given as the imagefile, then a list of workspaces is printed and the program exits. This might be useful for writing a script which periodically changes all available backdrops.
Before you download, consider the program requirements. You have to be running CDE (duh). You also need xloadimage, which is available at ftp://ftp.x.org/R5contrib/xloadimage.4.1.tar.gz. And you need xprop and possibly xwininfo, but these are both standard X11 programs. If you will be using JPEG images, you will need djpeg, and if you will be using TIFF images, you will need tifftopnm. (NOTE: the latest version of xloadimage can handle both JPEG and TIFF images, however many people are running older versions. If you do have the latest xloadimage, the script can be easily modified to not require tifftopnm and djpeg.)
Download cde-backdrop version 1.0
Please let me know if you have additional information or comments.
|Send Me Email