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?
- Open System Settings -> Keyboard -> Shortcuts
- Select Custom Shortcuts(you can go to Screenshot-s too and it will work)
- Click +
- Fill fields
- Name to
Take a screenshot of area
- Command to
shutter -s(if u prefer shutter)
- Name to
- Click OK
- Double-click on what you make and set shortcut Shift+PrtSc
— And that's all ... ;)
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
<!-- 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.
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.