4

I want to make a kb shortcut to open the app like I do on windows 10 and so I need to put the name of the app for it to be opened in the terminal, but I can't seem to find the name of the app.

By screenshot app I mean the app that opens when I press the super key. By name I mean like I write nautilus on terminal to open it.

1 Answers1

5

In Ubuntu versions older than 22.04 with GNOME, the terminal name for built-in screenshot application was gnome-screenshot.

In Ubuntu version 22.04 and higher with GNOME, there is no terminal name for new built-in screenshot application, because gnome-screenshot package was removed from the default installation and the screenshot tool was integrated with the gnome-shell package. It probably can't be invoked from terminal as far as I know.

In Kubuntu with KDE, the terminal name for built-in screenshot application is spectacle.

If you'd like, in GNOME you can install the older screenshot application back using this command:

sudo apt install gnome-screenshot

Or you can install other cool screenshot applications like:

sudo apt install scrot
sudo apt install flameshot
sudo apt install kde-spectacle

Then you can set your own custom keyboard shortcuts to launch the screenshot commands of your choice (the path below is for GNOME, adjust for KDE):

Settings → KeyboardView and Customize ShortcutsCustom Shorcuts+ → type the name of the command and add the keyboard shortcut for it.

Example commands to set for keyboard shortcuts:

scrot "/home/$USER/Pictures/Screenshots/Screenshot_%Y%m%d_%H%M%S.png"
gnome-screenshot -c -f ~/Pictures/Screenshots/Screenshot_$(date +"%0y%0m%0d_%0H%0M%0S").png
flameshot full --path ~/Pictures/Screenshots/ # command to take a screenshot of full screen and save it to the specified location
spectacle --fullscreen --background --output "/home/$USER/Pictures/Screenshots/Screenshot from $(date +"%F %H-%M-%S").png"