Change background in gnome from shell script.

2010-04-05 96 words 1 min read

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 πŸ™‚


Tags: Gnome

author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it