bsetbg(1)
π bsetbg(1) β v2.0 π
okay bestie, gather round, because this is the little utility that makes your desktop background look stunning β¨ it's the bsetbg manual page, and yes it's giving main character energy, but also it's giving "your root window is about to be gorgeous."
πΈ NAME πΈ
bsetbg β a utility to manipulate the appearance of the X11 desktop's root window.
like, it changes your wallpaper. that's the vibe. periodt π
π¦ SYNOPSIS π¦
bsetbg [options] image
β¨ DESCRIPTION β¨
so here's the tea β β bsetbg is designed to give the Blackbox window manager a standard way to change the background of the root window. and ngl, it works with literally any other window manager too, so don't feel gatekept π«Ά
what it actually is: a wrapper. it wraps both bsetroot and a whole flexible lineup of third-party applications that it calls on when it's dealing with image files. she's versatile. she's the moment. π
π OPTIONS π
-f,-fullimage β image gets stretched to fill the entire desktop. full glam, no gaps π-t,-tileimage β image gets tiled across the desktop. repeat after me: iconic pattern behavior π-c,-centerimage β image is centered on the desktop. simple, elegant, lowkey perfect π-e,-execprogram options fallback-arg image β this one tellsbsetbgto run a separate command by executing program with options, where options are arguments to program.
if a fallback-arg is supplied (-full, -tile, or -center, as described up above), bsetbg will assume the last argument is a filename. and if program exits non-zero, or just isn't available on the target system, bsetbg will try to handle the file with the fallback argument instead. she has a plan B, bestie π
see the EXAMPLES section for more on -exec.
-p,-postlist β specifies a list of arguments to pass to the$POST_COMMAND. π«Ά-d,-debugβ debugging mode!bsetbgwill print commands without executing them. it's a look-but-don't-touch situation, no cap.-g,-generatelist β outputs a list of default configuration values, suitable for redirecting into~/.bsetbgrc. any arguments you supply will be considered applications to search for in the system path, overridingbsetbg's internal defaults. it's giving DIY π-appimageApp β use this flag to specify which image application to use. this application may be one of the pre-defined list, or literally any application capable of displaying an image on the root window. you can also use this flag in conjunction with passing application-specific parameters to the application β in which case they should be enclosed in double quotes. β-v,-versionβ outputs the version number. the receipts, basically. π-h,-helpβ outputs a brief usage message. she'll remind you what she does π₯Ί
π OTHER OPTIONS π
bsetbg will also accept all of the arguments for bsetroot. go consult the bsetroot(1) man page for further information β that's a whole other rabbit hole, bestie π
π§ CONFIGURATION π§
bsetbg reads its configuration values from the file ~/.bsetbgrc if it exists. otherwise? she scans the system path for a pre-defined list of image applications to use. (currently that list is: qiv, xli, xv, wmsetbg, Esetroot, display, and xsetbg.) π
~/.bsetbgrc should contain the following variables:
CENTER="string"β application and arguments to be used to center an image on the root window when the-centerargument is specified.FULL="string"β application and arguments to be used to stretch an image to fill the root window when the-fullargument is specified.TILE="string"β application and arguments to be used to tile an image on the root window when the-tileargument is specified.DEFAULT="string"β the action to take place by default if none of the above have been specified.
the following variables are optional:
NO_EXEC="boolean"β if this variable is set,bsetbgwill never modify the root window. she's on strike. πPOST_COMMAND="string"β this variable specifies a command thatbsetbgwill run after every successful modification of the root window. πLOG_LAST_CMD="boolean"β if this variable is set,bsetbgwill keep a logfile of the last two successful commands. keeping receipts, as she should πLOGFILE="string"β this variable can specify the logfile to be used when$LOG_LAST_CMDis defined. the default is~/.bsetbg_last_cmd.
as mentioned up above, bsetbg will function perfectly for the majority of users without having a configuration file. power users who want more control over bsetbg's behavior should run bsetbg -g and use the output to create a ~/.bsetbgrc, which may then be tweaked by hand. customize her, she loves it π
π EXAMPLES π
in this example, bsetbg will set the image in centered mode:
bsetbg -center foo.png
an example of the -exec 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:
bsetbg -g xv qiv > ~/.bsetbgrc
an example of the use of the -app argument:
bsetbg -app qiv "-o rgb:d6/c5/a2 -x" -c foo.png
π AUTHOR π
the author of bsetbg may be reached at tmk@lordzork.com. shoutout to them, fr fr π«‘
π SEE ALSO π
blackbox(1), bsetroot(1), qiv(1), xli(1), xv(1), display(1), wmsetbg(1)
okay that's the whole page, bestie!! go forth and make your root window ate π
β¨ this was bsetbg, v2.0, dated February 2002 β and remember, if anyone asks, you read the manual. slay. πππ¦
π¦ where this page comes from
- arch rolling: blackbox 0.77-3 Β· MIT
- debian bookworm: blackbox 0.70.1-39 Β· MIT
- debian trixie: blackbox 0.70.1-39+b3 Β· MIT
- fedora 43: blackbox 0.77-14.fc43 Β· MIT
- fedora 43: blackbox 0.77-14.fc43 Β· MIT
- fedora 44: blackbox 0.77-16.fc44 Β· MIT
- fedora 44: blackbox 0.77-16.fc44 Β· MIT
- ubuntu jammy: blackbox 0.70.1-38 Β· MIT
- ubuntu noble: blackbox 0.70.1-39build1 Β· MIT
- ubuntu resolute: blackbox 0.70.1-40 Β· MIT
- ubuntu stonking: blackbox 0.70.1-40 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms