Linux – How to set a background image for urxvt

linuxrxvtterminalterminal-emulatorurxvt

How do I set a tiled background image in urxvt? I have tried the following alternatives in my .Xresources file:

URxvt*backgroundPixmap: /home/jgg/Pictures/tiles/escheresque_ste.png;style=tiled

URxvt.backgroundPixmap: /home/jgg/Pictures/tiles/escheresque_ste.xpm

URxvt.backgroundPixmap: /home/jgg/Pictures/tiles/escheresque_ste.png;+0+0:tile -tr

I also ran xrdb -merge ~/.Xresources to ensure that the configuration is updated every time.

What am I missing? Is there a library I need to install?

I'm running rxvt-unicode (urxvt) v9.15 on a Debian 7.4 (Wheezy) system.

Best Answer

Use the -pixmap option to set the background image for RXVT. For instance, I have a set of small .png tiles that I pick at random using the following one-liner:

urxvt -pixmap "`find /path/to/tiles/ -name '*.png' | sort -R | head -n 1`;style=tiled"

You could easily turn the above into an alias or script.

Related Question