Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I know how to take a screenshot, but I want to take many screenshots within a limited time (taking screenshots of a single execution of a program which I can not pause).

Is there a program that takes the "PrtScr" keyboard key in charge and just stores every screenshot without asking? The standard Ubuntu tool pops up a dialog to ask where I want to save the file, I would like a tool that doesn't ask and just saves on the Desktop or wherever as 00001.png 00002.png etc.

share|improve this question
add comment

2 Answers 2

up vote 20 down vote accepted

Shutter Install shutter has an option to automatically save screenshots, incrementing the filename each time.

Edit ➜ Preferences ➜ Main ➜ Save :

enter image description here

To make Shutter take the screenshots when you hit PrtScr,
go to Edit ➜ Preferences ➜ Keyboard and check the Capture checkbox:

enter image description here

If you don't want the Shutter window to pop up every time you take a screenshot, go to Edit ➜ Preferences ➜ Behavior and uncheck Present main window after taking a screenshot :

enter image description here

share|improve this answer
1  
Shutter is wonderful. Much recommended. There is also a ppa available. –  belacqua Jan 21 '11 at 7:00
3  
Great! I would also add to unckeck "Present main window after taking a screenshot" in Preferences. –  Nicolas Raoul Jan 21 '11 at 7:06
add comment

Shutter is quite impressive, with lots of features, but still requires user interaction to capture the window that currently has the focus. I.e., when Edit->Preferences->Keyboard->Capture with selection is enabled, and "Window" is specified, Shutter still waits for the user to select the desired window, instead of automatically capturing the window that currently has the focus.

For fully automatic screen captures I found that scrot works perfectly, both for full screen captures, and capturing the current window (via the -u option), as described here: http://www.khattam.info/save-screenshots-in-ubuntu-automatically-when-printscreen-key-is-pressed-2009-05-12.html The only (very minor) issue I saw with scrot is that it cannot take more than one screen shot per second. But since it seems to take longer than a second to complete a screen capture anyway, this doesn't seem like much of an issue.

I enabled scrot (after installing it via Synaptic Package Manager) by changing my <Print> and <Alt><Print> hotkey bindings to do full screen and current window captures (respectively) and it works perfectly, as described here: How can I restore default keyboard shortcuts? In gconf-editor I set them to save to the /tmp directory by specifying these associations under apps->metacity->global_keybindings:

  • run_command_screenshot -> Print
  • run_command_window_screenshot -> <Alt>Print

and these associations under apps->metacity->keybinding_commands:

  • command_screenshot -> /usr/bin/scrot '/tmp/Screenshot-%Y-%m-%d-%H%M%S.png'
  • command_window_screenshot -> /usr/bin/scrot -u '/tmp/Screenshot-%Y-%m-%d-%H%M%S.png'

I did not have to restart anything for these changes to take effect.

I am running Ubuntu 10.04, Gnome Desktop 2.30.2.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.