Change background in gnome from shell script.

2010-04-05 1 min read Gnome

I learnt this just now but this is something I wanted to try for some time. I wanted to know a way to change the background from the shell without actually using the change background GUI option. I always find that option very slow.

So what do you do.. write a shell script

gconftool-2 type string -s /desktop/gnome/background/picture_filename ”`pwd`/$1”

Use this script to change the desktop. Some other time we will delve into why this works. For now you can just run this shell script with the filename and see your Desktop background change. Cool 🙂

comments powered by Disqus