Setting a background image when using a WM

In order to set the background image for my WM (spectrwm <3) I use hsetroot and point it to ~/.taustakuva [taustakuva means wallpaper in Finnish <3], a symbolic link in my home directory:

  1. $ ln -sf path_to_your_picture ~/.taustakuva
  2. Then I simply add this line to ~/.xinitrc: hsetroot -center ~/.taustakuva

For eyecandy I use compton, a lightweight and advanced X compositor forked out of xcompmgr, which gives a nice transparency effect (among others) to urxvt:
1. Add to ~/.xinitrc: compton -o1 -b
2. If using urxvt (rxvt-unicode-256colors) don’t forget to set either:

  • URxvt*background : [95]#your_color_code_in_hexadecimal
  • URxvt.transparent : true

in ~/.Xdefaults according to your taste.
You will end with something like this:




Leave a Reply