I'd love to be able to set different backgrounds for different tabs in Awesome WM. Is there a way to do this?
You can add some code in your ~/.config/awesome/rc.lua file that will change the desktop wallpaper whenever you change tags. Technically, it will set the wallpaper to the tag you most recently selected (in awesome, you can have multiple tags selected at the same time).
If you don't have that file already, then copy the system-wide awesome config file into that location:
In my rc.lua in Ubuntu 11.10, there is a section where the tags get created that is labeled like this:
After that section, I added the following code:
Replace "/home/user/Pictures" with the location you want to store your wallpapers. It will use the file "wallpaper1.png" for the 1st tag, "wallpaper2.png" for the 2nd, etc. Note that this assumes that you have 9 tags. If you have a different number, adjust the inner for loop.
awsetbg requires that you have some program installed capable of changing the wallpaper. For example, the 'feh' or 'imagemagick' packages. You can find a list of the supported programs in the awsetbg script (/usr/bin/awsetbg):
The only one my Ubuntu had installed by default was xsetroot, but I believe that program only supports bitmap images. I have imagemagick installed (provides the 'display' command), so that can handle most any format you can imagine. ;)
If you are using a gnome/awesome hybrid desktop (using gnome with awesome as the window manager) and haven't disabled nautilus's desktop management, you may have to use the gnome method of setting the wallpaper instead of awsetbg. This is because nautilus manages the desktop and may override your settings. For 11.10, you would change the awsetbg command to:
gsettings is the new way, for older Ubuntu versions (not sure exactly how long ago it changed), you should use gconftool-2: