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?

  • Can very well be done. Are you always storing the images on the same location? – Jacob Vlijm Apr 18 '16 at 15:36
  • @JacobVlijm I can, though in 99% of these cases I discard the images after I upload them somewhere. Think highlighting something on a screenshot for a git issue or a stack exchange question. – Hooked Apr 18 '16 at 15:42
  • 2
    I think saving to clipboard is perfectly fast enough for me. PrintScreen-copy-to-clipboard (probably Ctrl-Shift-PrtSc?), open Gimp, Ctrl-Shift-V. Done. – wchargin Apr 18 '16 at 20:59
  • Related question: askubuntu.com/questions/994235/from-screenshot-to-edit-image – guettli Jan 16 '18 at 14:39

Quick version

Literally doing what you asked; in one action:

  • Take a screenshot
  • Save it in your preferred directory
  • Opening it with Gimp

    enter image description here

The script


gnome-screenshot -f "$picsdir"
gimp "$picsdir"

How to use

  • Copy the script into an empty file, save it as 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:

    /bin/bash /path/to/take_ashot.sh
  • If all works fine, add it to a shortcut: Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

    /bin/bash /path/to/take_ashot.sh


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.

  • 3
    Nice. I think I'd put it in /tmp, though. – TRiG Apr 18 '16 at 16:52
  • @TRiG good idea! Thanks Jacob, the script with the keyboard shortcuts work perfectly! – Hooked Apr 18 '16 at 19:55

Why not just take the screenshot with Gimp? File > Create > Screenshot.

enter image description here

This requires no intermediate storage at all.

  • Execution error for 'Screenshot': GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: No such object path '/Screenshot' – Luis A. Florit Nov 2 '20 at 16:06

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.

xfce4-screenshooter screen


If you're willing to switch screenshot applications, this is an option that scrot provides:

   -e, --exec APP
        Exec APP on the saved image.
       scrot '%Y-%m-%d_$wx$h.png' -e 'mv $f ~/shots/'
       This would create a file called something like 2000-10-30_2560x1024.png
       and move it to your shots directory.

So, you could change the PrntScr shortcut to run:

scrot -e 'gimp $f'

Shutter, another screenshot application, provides some editing facilities itself, so you might not even need to start GIMP at all.

enter image description here enter image description here


For xfce and Xubuntu users, the action can be achieved with the following command:

xfce4-screenshooter -f -o gimp

To implement, change the shortcut in Settings -> Keyboard, as shown below:

enter image description here


For Linux Mint version Mate, just run the commands below to configure your system once and press the PrtScn on your keyboard.

sudo apt install scrot
gsettings set org.mate.Marco.global-keybindings run-command-screenshot "disabled"
dconf write /org/mate/desktop/keybindings/custom0/action \'"scrot -e \"gimp \$f\""\'
dconf write /org/mate/desktop/keybindings/custom0/binding \'Print\'
dconf write /org/mate/desktop/keybindings/custom0/name \'PrintScreen\'

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:

dconf write /org/mate/desktop/keybindings/custom0/action \'"scrot -e \"mv \$f /tmp; gimp /tmp/\$f\""\'

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.