Common use case for me and printscreen:
- Hit printscreen and save
.png
- Open up
Gimp
- Find file I've saved
- Edit file (crop and highlight regions)
It seems like the first three steps could be combined into a single key bind, e.g. printscreen auto opens Gimp
, ready to edit. Is that possible?
Quick version
Literally doing what you asked; in one action:
Opening it with Gimp
The script
How to use
take_ashot.sh
Set your preferred directory to save the files in, in the line:
I'd leave it as it is if your system is English, else you'd need to change the Pictures folder name.
Test-run it by the command:
If all works fine, add it to a shortcut: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:
Note
Since you mentioned not to save the source file in most cases, I made the script overwrite previous files. If you don't want that, we'd need to build in a few renaming- lines.
Why not just take the screenshot with Gimp? File > Create > Screenshot.
This requires no intermediate storage at all.
With
xfce4-screenshooter
you can choose from programs to open screenshot with, or save it. Supports selecting area, delay before taking screenshot. Directly point-and-click solution.For xfce and Xubuntu users, the action can be achieved with the following command:
To implement, change the shortcut in Settings -> Keyboard, as shown below:
If you're willing to switch screenshot applications, this is an option that
scrot
provides:So, you could change the PrntScr shortcut to run:
Shutter, another screenshot application, provides some editing facilities itself, so you might not even need to start GIMP at all.
If you're running Gnome then you can use the built-in screenshot shortcuts to at least bypass the "save to disk and open the file" step.
The shortcuts are configurable in Gnome Settings under Keyboard > View and customise shortcuts > Screenshots.
I've disabled saving screenshots because I use custom shortcuts with
gnome-screenshot
to save to~/temp/
rather than~/Pictures/
(because I care about Pictures but not about anything in temp, like random screenshots)For Linux Mint version Mate, just run the commands below to configure your system once and press the PrtScn on your keyboard.
The screenshot will be saved in your home folder at ~/ if you don't want them there, you can always use this below to move the screenshot in the /tmp folder: