In gnome's screen shot program, the quick keys PrtScn captures the entire screen and alt+PrtScn captures the active window. Is there a way to script or set up the third capture option of a selected area?

Update: I don't seem to have this key already mapped... enter image description here

  • 2
    Which Ubuntu version? – ish Jul 31 '12 at 14:52
  • 5
    in 16.04 There is already a short cut of shift-print – Christian Bongiorno Mar 16 '16 at 21:13
  • This question was for 12.04. (It was a tag) – Rick Mar 16 '16 at 21:42
up vote 111 down vote accepted
  1. Open System Settings -> Keyboard -> Shortcuts
  2. Select Custom Shortcuts(you can go to Screenshot-s too and it will work)
  3. Click +
  4. Fill fields
    • Name to Take a screenshot of area
    • Command to gnome-screenshot -a or shutter -s(if u prefer shutter)
  5. Click OK
  6. Double-click on what you make and set shortcut Shift+PrtSc

— And that's all ... ;)


making command
settings shortcut

  • How should I do this on Lubuntu 12.04 ? – Neptunno Jul 31 '12 at 16:51
  • open Sistem Settings -> Keyboard settings and follow steps @Halkinn, or go to chat and say what you can't get – hingev Jul 31 '12 at 16:54
  • 3
    Ubuntu 12.04 has this shortcut built in out of the box now as per the answer below. – sjakubowski Jun 11 '14 at 18:30
  • In Linux Mint, it's Preferences -> KeyboardShortcuts, and the command you need is mate-screenshot -a – Gordon Williams Oct 31 '16 at 19:14
  • Been a long time but theres a shortcut for this in Ubuntu 14.04 its 'ctrl+shift+prntscrn' hope this helps. – Josyula Krishna Apr 9 '17 at 17:17

That shortcut is already built-in: Shift+PrtScr :)

The full-list of screenshot keyboard shortcuts is:

enter image description here

  • 2
    Thanks, but I don't seem to have that. Would you mind posting a screen shot of which command this is mapped to? I've included a screen shot of mine above in the update. – Rick Jul 31 '12 at 14:49
  • 1
    Found it: gnome-screenshot -a – Rick Jul 31 '12 at 14:57
  • 1
    that is only in ubuntu 12.04+, and @Richard i have posted answer – hingev Jul 31 '12 at 15:03
  • 7
    Also works on Ubuntu 14.04 – Yehonatan Tsirolnik Jun 11 '14 at 15:19
  • 1
    Just to report in, this still works in Ubuntu 16.04 :) – Jeff McJunkin Jun 8 '16 at 21:04

While to above answers worked for me in Ubuntu; after switching to Lubuntu I noticed that the ShiftPrtScn was no longer working.

The following procedure fixed it for me. Since in Lubuntu the program scrot is used, I found that I had to add the following to the ~/.config/openbox/lubuntu-rc.xml:

<!-- Launch scrot with interactive select when Shift-Print is pressed -->
<keybind key="S-Print">
  <action name="Execute">
    <command>scrot -s</command>
  </action>
</keybind>

After the change do not forget to issue: openbox --reconfigure to activate the updates.

See the Lubuntu documentation for more details.

you can try this command from terminal if you have a problem with shortcuts.

sleep 5 && gnome-screenshot -a -c

Now open the window you want to take screenshot from and select the area after 5 seconds after the command execution.

sleep 5

makes the terminal waits 5 seconds before executing the command so you can go to the window you want within this while

gnome-screenshot -a -c

takes screenshot of an area and copy it to clipboard.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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