\fBbsetbg\fR will also accept all of the arguments for \fIbsetroot\fR.
Consult the \fIbsetroot\fR(1) man page for further information.
.SHCONFIGURATION
\fBbsetbg\fR will read its configuration values from the file \fI~/.bsetbgrc\fR
if it exists. Otherwise, it will scan the
system path for a pre-defined list of image applications to use
(currently this list consists of qiv, xli, xv, wmsetbg, Esetroot,
display, and xsetbg).
\fP
\fI~/.bsetbgrc\fR should contain the following variables:
.TP
\fB CENTER=\fR\fI"string"\fR
Application and arguments to be used to center an image on the root window
when the \fB-center\fR argument is specified.
.TP
\fB FULL=\fR\fI"string"\fR
Application and arguments to be used to stretch an image to fill the root window
when the \fB-full\fR argument is specified.
.TP
\fB TILE=\fR\fI"string"\fR
Application and arguments to be used to tile an image on the root window
when the \fB-tile\fR argument is specified.
.TP
\fB DEFAULT=\fR\fI"string"\fR
Action to take place by default if none of the above have been specified.
.TP
The following variables are optional:
.TP
\fB NO_EXEC=\fR\fI"boolean"\fR
If this variable is set, bsetbg will never modify the root window.
.TP
\fB POST_COMMAND=\fR\fI"string"\fR
This variable specifies a command that \fBbsetbg\fR will run after every
successful modification of the root window.
.TP
\fB LOG_LAST_CMD=\fR\fI"boolean"\fR
If this variable is set, \fBbsetbg\fR will keep a logfile of the last two
successful commands.
.TP
\fB LOGFILE=\fR\fI"string"\fR
This variable can specify the logfile to be used when $LOG_LAST_CMD is defined.
The default is ~/.bsetbg_last_cmd .
.TP
As mentioned above, \fBbsetbg\fR will function perfectly for the majority of users without having a configuration file. Power users who want more control over \fBbsetbg\fR's behavior should run \fBbsetbg -g\fR and use the output to create a \fI~/.bsetbgrc\fR which may then be tweaked by hand.
.SHEXAMPLES
In this example, bsetbg will set the image in centered mode:
bsetbg -center foo.png
An example of the \fB-exec\fR argument:
bsetbg -exec xv -root -quit -rmode 5 -rbg rgb:2/2/2 \\
-center foo.png
An example in which bsetbg creates a configuration file using xv and qiv: