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 π
Related Articles:
- 2010/04/01 GNOME 2.28 released
- 2010/03/31 Gnome 3.0 β the beginning of workflow era
- 2010/03/25 gnome-blog β Deskbar applet for blogging
- 2010/03/24 bash β change theme for gtk in gnome and take screenshot from script.
- 2010/03/23 Add a image to the list of background files in gnome
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.