I want to create a keyboard shortcut for the Gnome-screenshots app

Hi,
I want to assign a keyboard shortcut to the gnome-screenshots application.
On my device, the PrtScn button opens this application :

I then installed this application: gnome-screenshot

I want to assign a keyboard shortcut to it.
Is it possible to assign a shortcut with just one key?
I did the following:
I opened settings > keyboard > view and customise shortcut > custom shortcut > add shortcut
In the name field, I entered: Screen
In the command field, I entered: usr/bin/gnome-screenshot
And I assigned the shortcut: ctrl+alt+c
When I press these keys, the screen is captured.
I want the application to open.
What should I do?

When you want that the Program will open, you could try it in the Command Field simply with gnome-screenshot

where did you get the command ?
i'm on Lite so probably not exactly the same , but i find the command by right clicking the application and edit/properties ...there you'll see the command that opens it .
also alternatively you can edit the existing print screen shortcut with the other command , if you'd like to go that way .
anyway in Lite that works for me

PS : i use ksnip , i find it way more usefull with more fuctions . something you might look at ?

sudo apt install ksnip

:smiley:

1 Like

which Gnome-screenshots

i don't understand ?
is that a statement / typo or a question ?

They probably meant that they ran the command which gnome-screenshots which prints the path to the binary, if it's installed and in your $PATH.

Generally speaking, you can add --help after almost any command line invocation of a program to get an explanation of its function and information about arguments and parameters you can use to control things. I imagine gnome-screenshot also has this, and it will probably tell you how to do what you want.

I can't test this myself right now, but according to the below article, you need to add a specific argument to launch the GUI instead of taking a screenshot. Amend the command of your keyboard shortcut to the following:

gnome-screenshot --interactive
2 Likes

Done
Thanks

1 Like