bash – change theme for gtk in gnome and take screenshot from script.

I wrote a blog on bash script to change the icon/cursor theme using a bash script. Lets extend the same concept a little more and use the script to change the gtk theme for gnome and at the same time take a screenshot also.

#!/bin/bash
path=\”/tmp/screenshot\”
[[ \”$1\” == \”\” ]] && time=5 || time=$1
[[ \”$2\” == \”\” ]] && (
cd ~/.themes
cont=\”y\”
echo \”Select one of the icon themes\”
echo \”When you like some theme just press Ctrl+c\”
for i in *
do
[[ -d $i/cursors ]] || (
echo \”Now trying …. : $i\”
gconftool-2 –type string -s  /desktop/gnome/interface/gtk_theme \”$i\”
sleep 1
j=$(echo \”$path/$i\”).jpg
import -window root -quality 95 \”$j\”
sleep $time
)
done
) || gconftool-2 –type string -s  /desktop/gnome/interface/gtk_theme \”$2\”

This use\’s the import command to take the screenshot. Hope you like it. You can specify the path for the screenshots in the path variable at the begining of the script.

GoOo released new version of Open Office.

GoOo repository for Fedora at http://go-oo.mirrorbrain.org/stable/linux-i586/ has released the new version of GoOo packages.

Elive – just 5 generations ahead.

A lot of you must have heard about E16 desktop and lot others would have heard about the compiz. Think about the sheer beauty of the desktop for the combination of the 2. See some screenshots here. I haven\’t tried the distro till now but am in the process of downloading the development version right now. Would try it from live media and install it if that looks great.

But here\’s a brief of what I am expecting : The best of two worlds known to the world as the compiz and the E17. Here is the description from their site:

Elive is a complete operating system for your computer. It is the perfect choice for replacing your proprietary, high-cost system. It is built on top of Debian GNU/Linux and customized to meet your needs for a complete operating system while still offering the user eye-candy, with minimal hardware requirements.

Turn your old computer into a high-powered work-station with an Interface that will dazzle anyone who sees it. This is Elive\’s goal.

Elive comes with a full suite of applications for either work or leisure. It offers everything from a full Office suite to games and Multimedia. You can enjoy watching movies to making your own. Creating DVD movies with custom menus and theme music can easily be accomplished by using the included real-time non-linear video editor. Elive gives you the ability to make 3D animations, edit and manipulate audio and image files for better quality, effects, or design. And to round it all up, Elive has centralized settings and configurations in its own Control Panel called Elpanel.

Elive is a very stable system that will continue to run day after day without problems. The Enlightenment desktop is ultra-fast and perfectly stable with no random errors or surprises. There are no viruses, trojans, spyware, adware, or any similar nuisance. Elive is a secure and serious system.

Elive uses Open Source Software. This means, among other things, that you have access to the source code of the programs as well as the permissions to modify and adapt them to your personal needs with perfect legality.

Elive is made with and for pleasure. Things designed with pleasure are worlds better than the things designed due to a workers obligation.

Elive is not made for newbies. Elive is not made for experienced people. Elive is not made for enterprises or personal user. Elive is art. It is simply for the people who appreciate it and want to use it. Feel free to try Elive, because only you decide what you want in this world!