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?
7 Answers
- 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
gnome-screenshot -a
orshutter -s
(if u prefer shutter)
- Name to
- Click OK
- Double-click on what you make and set shortcut Shift+PrtSc
— And that's all ... ;)
-
-
open Sistem Settings -> Keyboard settings and follow steps @Halkinn, or go to chat and say what you can't get– hingevJul 31, 2012 at 16:54
-
3Ubuntu 12.04 has this shortcut built in out of the box now as per the answer below. Jun 11, 2014 at 18:30
-
2In Linux Mint, it's
Preferences -> KeyboardShortcuts
, and the command you need ismate-screenshot -a
Oct 31, 2016 at 19:14 -
1Do you provide any CLI solution to map the shortkey with this command?– alhelalMay 30, 2018 at 8:27
That shortcut is already built-in: Shift+PrtScr :)
The full-list of screenshot keyboard shortcuts is:
-
2Thanks, 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.– RickJul 31, 2012 at 14:49
-
1
-
1
-
7
-
2
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.
Gnome now includes a tool by default.
The previous Shift+Prt Scr seem to no longer work for me. Not sure if that is a regression.
But just pressing Prt Scr (Print screen) will bring up this UI, allowing you to snip:
Image courtesy omg! ubuntu! Ubuntu 22.04 LTS: Screenshot Tour
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.
-
1
For xubuntu and xfce users:
Run Keyboard
app from the launcher menu, go to Application Shortcuts
, check current action for Print
, if it's xfce4-screenshooter -f
:
- add a new action:
xfce4-screenshooter -r
- Set Shift+PrtScn for it
- Check
- Enjoy
If it's not xfce4-screenshooter
- check the current tool how to run it in the "region screenshot" mode
-
A suggestion to add this to the default xubuntu package: bugs.launchpad.net/ubuntu/+source/xubuntu-default-settings/+bug/… Jan 17, 2019 at 15:56
To take screenshot from a selected area And copy to clipboard, just press:
Ctrl+Shift+PrtScrn