SETROOT(1)
SETROOT(1) β the Setroot Manual π
okay so bestie, welcome to the Setroot Manual! this is the page for setroot, and it's giving βtiny CLI, big wallpaper energyβ β¨. we're gonna go through every flag, every path, every little caveat, no cap. π«Ά
πΈ NAME πΈ
setroot β sets your wallpaper. literally that's the job. π
β¨ SYNOPSIS β¨
setroot [storage flag] [global flag] { [image flags, manipulations, options] <filename> }+ [monitor flag]
this is the shape of the invocation, bestie β storage flag, global flag, then one or more image-flag/manipulation/option + filename groups, and finally an optional monitor flag. π
π¦ DESCRIPTION π¦
setroot is a lightweight Xinerama-aware CLI background setter in the vein of imlibsetroot, hsetroot, and feh. its only non-obvious dependency is imlib2. π
π INVOCATION π
- the order of the filenames determines which monitor the wallpaper is set to. the first invoked filename is set to the first Xinerama monitor; the second to the second; and so on. π
- if more than one image option is applied, the last one takes effect. periodt.
- if
nfilenames are supplied forkmonitors, wheren > k, only the firstkfilenames will be processed. π - an illegal invocation sequence will result in
setrootterminating with exit status1. not cute, but important.
π STORAGE FLAGS π
--storeβ creates an executable file.setroot-restorelocated in directory${XDG_CONFIG_HOME:-$HOME/.config}/setroot/.setroot-restore. if the directory path and/or file does not exist, it will be created (see section FILES). β¨--restoreβ looks for${XDG_CONFIG_HOME:-$HOME/.config}/setroot/.setroot-restoreand executes it in shell (restores your previously set wallpapers and options). π
π GLOBAL FLAGS π
--blank-color #RRGGBBβ sets background color of blank walls, unless overriden by--bg-coloroption. π¦
π₯ IMAGE FLAGS π₯
--spanβ have image span all screens (no cropping). if more than one image is specified, the later image will be spanned. note that this overrides the--onoption. note also that further images that are set (in the case of multiple monitors) will "cover" the spanned image. π--bg-color #RRGGBBβ set empty space around image to color. π¨--on nβ assign image to be wallpaper on Xinerama monitorn. if not all images are passed this option, the unassigned walls will be placed on monitors by their position in the invocation sequence. images which do have a specified assignment will then be assigned to their monitors, replacing any images which may have already been assigned. if--onis supplied a screen which does not exist, no error is raised and the other walls are set as normal. this can be used withsetroot --storeto "preset" an unconnected monitor's wallpaper. ifsetrootwas not compiled with Xinerama support then--onis considered an invalid command and the program will terminate with exit status1. π
π§ IMAGE MANIPULATIONS π§
--blur <radius>β blur image. π«οΈ--sharpen <radius>β sharpen image. β¨--brighten <amount>β modify image brightness by amount (between-1and1). βοΈ--contrast <amount>β modify contrast of image by amount (between-100and100). π--flip[hvd]β flip image [h]orizontally, [v]ertically, or [d]iagonally. πͺ--tint #RRGGBBβ tint image with color#RRGGBB(also accepts valid XColor). π¨--greyscaleβ renders image as greyscale (uses luminosity algorithm). π€
πΈ IMAGE OPTIONS πΈ
-c,--centerβ place unscaled image centered and cropped to screen. π―-t,--tiledβ tile image on invoked screen (Xinerama aware). π§±-s,--stretchβ stretch image (disregard aspect) on invoked screen. π«Έ-z,--zoomβ scale image (preserve aspect) to fit screen completely (could cut off image). π-f,--fit-autoβ scale image (preserve aspect) to fit screen (entire image on screen) β default. π-fh,--fit-heightβ scale image (preserve aspect) until height matches invoked screen. π-fw,--fit-widthβ scale image (preserve aspect) until width matches invoked screen. π-gx,--gravity-x <position>β set the image gravity center in the X axis at position (an integer absolute position or a float percentage) β default:50%. βοΈ-gy,--gravity-y <position>β set the image gravity center in the Y axis at position (an integer absolute position or a float percentage) β default:50%. βοΈ-sc,--solid-color #RRGGBBβ set background to solid color#RRGGBB(hex code, also accepts valid XColor). πͺ
π¦ MONITOR FLAGS π¦
--use-x-geometryβ number Xinerama monitors from leftmost to rightmost. β‘οΈ--use-y-geometryβ number Xinerama monitors from topmost to bottommost. β¬οΈ
π« GRAVITY π«
when the -z option is used, the image is zoomed in to fill the screen and cropped if neccessary. the --gravity-x and --gravity-y parameters let you choose the 'gravity center' of the image: setroot will try to match that center with the display center if possible. π«Ά
both parameters can be given in two formats, both relative to the image dimensions: as an integer, which means an absolute coordinate; or as a decimal percentage of the total width or height. π
π FILES π
setroot creates the directory ${XDG_CONFIG_HOME:-$HOME/.config}/setroot and places an executable file .setroot-restore there when setroot --store is invoked for the first time. β¨
setroot --restore uses this file to restore the most recent (valid) invocation of setroot. π
π AUTHOR π
Β© 2016 Tim Zhou <ttzhou@uwaterloo.ca> π
π ACKNOWLEDGMENTS π
set_pixmap_property()is Β© 1998 Michael Jennings<mej@eterm.org>π«Άfind_desktop()is a modification ofget_desktop_window()Β© 2004-2012 Jonathan Koren<jonathan@jonathankoren.com>β¨
mwah π β setroot v2.0, page date 03/13/2016. now go set that wallpaper and serve. π«Άβ¨
π¦ where this page comes from
- nixos 26.05: setroot 2.0.2
- nixpkgs unstable: setroot 2.0.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms