I want to use different wallpaper on each workspace, but the following does not change background wallpapers:
There are problem ....left -right at click on workspaces.(Ubuntu 10.04)...
startwall.sh a file I have created and I called Terminal in sh startwall.sh and I added Startup Application and I have Run to applicatiion.But I want to Play as Automatic Background always on each Workshapes.
Code:
#!/bin/bash
ws=$(wmctrl -d | wc -l)
cws=$(wmctrl -d | awk '/*/ {print $1}')
lws=$(($cws-1))
if [ $lws = -1 ]; then
lws=$(($ws-1))
gconftool -t string -s /desktop/gnome/background/picture_filename "/root/Desktop/wall/b.jpg";
else
gconftool -t string -s /desktop/gnome/background/picture_filename "/root/Desktop/wall/q.jpg
fi
OR
#!/bin/bash
# ws=$(wmctrl -d | wc -l)
cws=$(wmctrl -d | awk '/\*/ {print $1}')
if [ $cws = 0 ]; then
wmctrl -s $cws
gconftool -t string -s /desktop/gnome/background/picture_filename "/root/Desktop/wall/b.jpg"
else
gconftool -t string -s /desktop/gnome/background/picture_filename "/root/Desktop/wall/q.jpg"
fi