Screenshot selection in 22.04

22.04clipboardgnome-screenshotscreenshot

I am trying to configure the 22.04 (Gnome 42) keyboard shortcut to get the "old" functionality of taking screenshots of area selections and pasting them into clipboard (Ctrl + Shft + PrtScr + select/release: done). The problem is that $ gnome-screenshot -ac doesn't copy the selection into clipboard unless there is an instance of gnome-screenshot utility running. Does anyone know how to work around this issue? (I know it is possible to run the "new" interactive screenshot tool, but that takes too many clicks and is not what I want.)

Edit: The issue has been fixed: gnome-screenshot -ac works as intended in Gnome 43.4 or perhaps even in the earlier versions.

Best Answer

After installing Ubuntu 22.04

after you log out or restart the computer, the old gnome-screenshot is removed, so you need to reinstall it to make the old command to work.

sudo apt install gnome-screenshot

Add a Custom ShortCuts

Settings → keyboard → keyboard shortcuts → custom shortcuts

Custom shortcuts are at the end of list

gnome-screenshot -c -a

I'm using Shift + Ctlr + Delete shortcut so that it doesn't interfere with the new 42 screenshot shortcuts."

enter image description here

In gnome 42 the default shortcuts for using the screenshots are:
  1. Shift+Print takes a screenshot
  2. Print take a screenshot interactively
  3. Alt+Print take a screenshot of a window
  4. Shift+Ctrl+Alt+R record a screencast interactively

When you press ALT+PRINT throws a message

you can paste the image from the clipboard

To change keyboard shortcuts in GUI:

Settings -> keyboard -> keyboard shortcuts -> Screenshots.