Archive for March 15th, 2007

Time delayed screenshot via shell

For the previous post Add a place to Places in Nautilus for time saving I needed a screenshot of the dialog opened. This is only possible, after one click with the mouse on the listbox. For a screenshot you need to go to Applications -> Accessories -> Take Screenshot which closes the dialog.

I needed a solution to get a screenshot after I clicked on the dialog. I thougt a time delay would be the easiest way to do this. So I open the bash and typed in: ping -c 2 localhost;gnome-screenshot which gives me a time of two seconds to navigate to my dialog.

InformationEasier way (thanks to acadavid): gnome-screenshot –delay 5

Explanation:

  • ping -c 2 localhost pings the own computer twice. One ping last approximately one second. The c stands for count so you can type ping -c 10 localhost to ping the own host ten times and get ten seconds to do what ever you want.
  • ;gnome-screenshot: The semicolon sepearates the two commands, so that the gnome-screenshot is called after the ping command finished. The gnome-screenshot is the program which is called if you click Applications -> Accessories -> Take Screenshot. To get the name of such an application right click on Applications -> Edit Menus. Right click the entry you want the command for and choose Properties.

So you see: Everybody needs bash ;-)

Add a place to Places in Nautilus for time saving

Free Image Hosting at www.ImageShack.us When I am working with OpenOffice.org or another application I often want to save my files to /media//media/sda5/docs/study/1introdcution/2. Semester. Always navigating to this folder is a waste of time and annoys me. So I thought there must be a way to have a direct link to the directory like Desktop or Home Folder.

The way to get an entry like the one above for OOo is easy:

  1. In nautilus go to the directory you want to to have an entry for, like /media//media/sda5/docs/study/1introdcution/2. Semester
  2. In the menu click Bookmarks -> Add Bookmark or simply press <cntrl>+<d>

Now you are done. You can now see your bookmark in Places and the file dialogs.