XSETROOT(1)

๐Ÿ“ฆ
version 7.7+11build1 ยท 3 versions
, in alpine 3.24, debian trixie, fedora 43, fedora 44, nixos 26.05, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

โœจ XSETROOT(1) โœจ

๐Ÿ’– NAME

okay so the manual name is xsetroot, and it's a root window parameter setting utility for X ๐Ÿ–ฅ๏ธโœจ

๐ŸŽ€ SYNOPSIS

xsetroot [-help] [-version] [-def] [-display display] [-cursor
cursorfile maskfile] [-cursor_name cursorfontname] [-xcf cursorfile
cursorsize] [-bitmap filename | -mod x y | -gray | -grey | -solid color]
[-bg color] [-fg color] [-rv] [-name string] [-d display]

๐Ÿฆ‹ DESCRIPTION

bestie, this is the program that lets you glow up the background ("root") window on an X workstation display ๐ŸŒˆ๐Ÿ’… Normally you just keep messing with xsetroot until you find a look that's so you, and then you copy that exact command into your X startup file so it's always there for you ๐Ÿฅนโœจ

If you don't pass any options, or you pass -def, the window gets reset to its default state ๐Ÿซถ -def is lowkey special because you can stick it alongside other options. When you do that, only the stuff you didn't specify gets reset to default, and everything you did specify stays put ๐Ÿ’œ

Only one of the background color/tiling changing options can be used at a time: -solid, -gray, -grey, -bitmap, and -mod. Pick one bestie, no cap ๐Ÿ™…โ€โ™€๏ธ

๐ŸŒธ OPTIONS

Here's the whole menu, periodt ๐Ÿ’…

  • -help โ€” prints a usage message and bounces ๐Ÿ‘‹
  • -version โ€” prints a version message and bounces ๐Ÿ”ข
  • -def, -default โ€” resets whatever you didn't specify back to the defaults. This brings back the familiar gray mesh background and the hollow x shaped cursor ๐Ÿฅฐ
  • -cursor cursorfile maskfile โ€” swaps the pointer cursor for whatever you want, but only when the pointer is outside any window ๐Ÿ–ฑ๏ธโœจ Cursor and mask files are bitmaps (tiny little pictures), and you can make them with the bitmap(1) program. Honestly? Keep the mask file all black until you get the hang of how masks work ๐Ÿ™ˆ
  • -cursor_name cursorfontname โ€” picks one of the standard cursors from the cursor font ๐ŸŒŸ Check appendix B of the X protocol for the names. The XC_ prefix gets dropped for this option, so just the bare name ๐Ÿ’€
  • -xcf cursorfile cursorsize โ€” loads a cursor from an Xcursor file (as defined by libXcursor) at the size you ask for ๐Ÿงš
  • -bitmap filename โ€” uses the bitmap in that file as the window pattern ๐ŸŽจ You can craft your own with bitmap(1). The whole background becomes repeated "tiles" of your bitmap, so it's giving wallpaper energy ๐ŸŒท
  • -mod x y โ€” gives you a plaid-ish grid pattern ๐Ÿงบ Both x and y are integers from 1 to 16. Try different combos, it's giving experiment ๐Ÿ”ฌ Zero and negative numbers get treated as 1 ๐Ÿค“
  • -gray, -grey โ€” makes the entire background gray, which is easier on the eyes ๐Ÿฉถ
  • -bg, -background color โ€” uses color as the background color ๐ŸŒค๏ธ
  • -fg, -foreground color โ€” uses color as the foreground color ๐Ÿ”ฅ Heads up: foreground and background colors only matter when you're also using -cursor, -bitmap, or -mod, so they're kinda side characters otherwise ๐Ÿซ 
  • -rv, -reverse โ€” swaps the foreground and background colors ๐Ÿ”„ Normally the foreground is black and the background is white, so this flips that tea โ˜•
  • -solid color โ€” sets the root window background to a solid color ๐ŸŽจ This one's only useful on color servers, so keep that in mind ๐Ÿ–๏ธ
  • -name string โ€” names the root window string ๐Ÿท๏ธ There's no default value here. Usually a window gets a name so the window manager can show a text version when it's iconified, but this option is unused because you can't iconify the background ๐Ÿ˜ญ
  • -d, -display display โ€” picks which server to connect to. See X(7) for the deets ๐Ÿ–ฅ๏ธ

๐Ÿงš SEE ALSO

Your next stops, bestie ๐Ÿ—บ๏ธโœจ X(7), xset(1), xrdb(1), Xcursor(3)

๐Ÿ‘‘ AUTHOR

Mark Lillibridge, MIT Project Athena ๐ŸŽ“๐Ÿ’œ


๐ŸŒˆ Sign-off time! ๐ŸŒˆ This page is from the X Version 11 crew, covering xsetroot version 1.1.3, and it lives under the manual name XSETROOT(1) ๐Ÿซถ Go make your desktop iconic โœจ๐Ÿ’