making a keyboard shortcut to open the screenshots app

I have recently switched from windows 10 to Ubuntu 20.04 everything is going pretty well so far but one feature from Windows I kind of miss was that, when you pressed the print button, an app called 'snipping tool' would open up, allowing you to grab a screenshot of an area, a window or the whole screen.

Of course, I know that there's the screenshots app on Ubuntu that does the same thing. But by default, the print button just copies a screenshot of the whole screen to the clipboard. How do I change it, so that the app itself opens up like this?

like this?

(I tried making a custom shortcut with the command 'gnome-screenshot', but it just saves a screenshot to my pictures.)

0

3 Answers

Quite some shortcuts are defined by default in Ubuntu to take screenshots:

  • Save a screenshot: Print
  • Save a screenshot of an area: Shift+Print
  • Save a screenshot of a window: Alt+Print

Add Ctrl to these combinations to copy the screenshot to the clipboard rather than to a file.

Of course, you can instead summon the window of the application if you prefer so. Then bind the following command to a shortcut key:

gtk-launch org.gnome.Screenshot

This causes you to open the tool through the launcher that you see in the Applications overview. The actual command that causes that behavior is gnome-screenshot --interactive.

0

I’m not 100% sure exactly what you want, but I think these will get you there:

(1) Print Screen takes a screenshot and saves to pictures (2) Alt + Print Screen takes a screenshot of your current window and saves to pictures (3) Shift + Print Screen takes a screenshot of a customisable area (you click and drag a rectangle) and saves to pictures.

If you hold down Ctrl whilst performing any of the above, it copies the selection to the clipboard instead of saving to pictures - eg Ctrl + Shift + Print Screen lets you choose an area to copy to the clipboard.

I hope that helps.

Move Vanadium's command into custom shortcuts.

I have done this with "Super + S[key]".

To do this navigate through:

click in top right corner of screen

settings

Search keyboard

View and customise shortcuts

scroll down click custom shortcuts

add new, Call Screenshot

command = gtk-launch org.gnome.Screenshot

Select keyboard shortcut

There is most likely a way to configure this from terminal - but I am new to linux as well so only know this way.

hope this helps.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like