Set Background Wallpaper in Fluxbox
Tuesday, May 20th, 2008Fluxbox isn’t like KDE or Gnome in the sense that there’s a ‘desktop configuration tool’. To change the desktop wallpaper, for example. you’ll have to drop into a terminal window. It’s not hard, just different.
- Get the image you’d like to use as your desktop wallpaper downloaded or otherwise saved somewhere on your sytem
- Open a terminal window and use your favorite text editor to open your ~/.fluxbox/startup file.
- Look for a line that starts with the command fbsetbg. If you see one, edit it to reflect the path to your new background image. If you don’t see such a line, make a new one as such (note: depending on your screen size you may see this as two lines, this should be one line in your startup file:
fbsetbg -f /home/jon/.fluxbox/backgrounds/my_background.jpg
Another way to get this to set every time you start fluxbox is as follows by adding the command to the ~/.fluxbox/init file. Find the line beginning with session.screen0.rootCommand: and enter the proper command afterward ( fbsetbg -f /home/jon/.fluxbox/backgrounds/my_background.jpg ). You can also use the simplified command fbsetbg -l to load the last wallpaper loaded by fbsetbg, to avoid changing the init file each time you change your wallpaper.