54

I have shutter 0.90 on my Ubuntu 12.04 machine (installed via PPA). I would like to use it as my default screenshot tool with the Print shortcut key. But I can't find the option in Shutter. It should be in Preferences -> Keyboard, but I don't see the Keyboard option there. I also tried to make a shortcut in Ubuntu with shutter -f. It doesn't work too.

What can I do to use shutter when I press the Print key?

1

10 Answers 10

31

Ubuntu 14.04: for some reason neither "CompizConfig ⇒ Gnome Compatibility" nor "All Settings ⇒ Keyboard ⇒ Screenshots" worked for me. One thing that helped me was to define custom global shortcuts. I went to "All Settings ⇒ Keyboard ⇒ Screenshots" and removed all conflicting bindings on a "Print" key, which I was going to use.

enter image description here

Then in the same window I opened a "Custom Shortcuts" section and created two custom shortcuts for Shutter.

enter image description here

  • Full screen with Shutter – shutter -f
  • Take a screenshot of an area with Shutter – shutter -s
4
  • 5
    I tried to assign Alt+Print to take a screenshot of a window, but it's not letting me. Any ideas why?
    – Felipe
    Jan 13, 2016 at 6:31
  • 2
    To get Alt-Print to work I had to edit the setting with dconf-editor in path /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom?/ where ? is a number and set the binding to <Alt>Print Apr 5, 2017 at 16:12
  • Confirmed for Ubuntu 16.10.
    – somethis
    Apr 11, 2017 at 20:31
  • Only the custom shortcut work for me on Ubuntu Desktop 16
    – Nam G VU
    Jun 27, 2017 at 12:29
30

For Unity (up to Ubuntu 17.04)

We need to install CompizConfig Settings Manager (CCSM) to bind Print and Alt + Print to Shutter. Follow these steps:

  1. Install compizconfig-settings-manager Install compizconfig-settings-manager.

  2. Open Dash (press Super) and query for ccsm and hit Enter to run CompizConfig Settings Manager.

    ccsm in Dash

  3. Under the General Category, you would find the option called Gnome Compatibility. Click on it (not the Checkbox beside it, ie; keep the checkmark activated).

    General >> Gnome Compatibility

  4. Now switch to the Commands Tab and modify the text fields as shown in the following image.

    Commands Tab

  5. Explanation of previous step. You can run man shutter in terminal to see what are the different CAPTURE MODE OPTIONS available.

  • Screenshot command line: shutter -f - This captures the entire screen. Activated when you press Print.
  • Window screenshot command line: shutter -a - This captures the current active window. Activated when you press Alt + Print.

Enjoy taking screenshots with Shutter!!

3
  • 1
    Great, works like a charm!
    – TIIUNDER
    Feb 8, 2013 at 14:39
  • Awseome answer! But why the "#¤&%& is this not easiert to do in Ubuntu. Oct 14, 2015 at 10:19
  • The link in the first step is obsolete - $ sudo apt install compizconfig-settings-manager this was suggested but the edit was rejected Apr 28, 2021 at 23:24
23

Without installing anything other than shutter, go into system settings, then keyboard, click the shortcuts tab, click custom shortcuts, then the + button to add for example, the following custom command :

. . name = shutter -f  
. . command = shutter -f -e -o 'Desktop/%name_%T.png'  

and click the apply button. Now click that new line in the list of custom commands and hit the print screen key. This will reassign the key to take a snapshot using shutter.

To see the shutter options, type man shutter into a terminal screen. My example takes a full screen screenshot and saves it to the desktop with no other user interaction needed.

Other useful options are to replace the -f with -a for the active window, and with -s for a selectable rectangular portion of the screen.

Having taken some screenshots you can use them directly from the desktop (or wherever you saved them to) or annotate them etc by opening the shutter program itself, in which they appear.

13

For GNOME Shell (Ubuntu 18.04+)

  • Go to Settings -> Devices -> Keyboard
  • Find Save a screenshot to Pictures and disable the Print Keybinding (otherwise it doesn't let you reassign the Print Key.
  • Add a new Custom Shortcut at the bottom
  • Enter any name and the command shutter -s for area selection.
  • Assign the Print Key.
  • Click Add at the top.

Alternatively, to send directly to disk:

# Full screen, exit after capture, no session
shutter -f -e -n -o screenshot_%Y-%m-%d_%T.png

# Active window, exit after capture, no session  
shutter -a -e -n -o screenshot_%Y-%m-%d_%T.png
2
  • Alternatively, you may want to leave the Ubuntu default print binding and assign shutter to Fn-Print instead. I found that the Ubuntu utility handles cases that Shutter does not like firefox toolbar dialogs showing in the default utility where Shutter those dialogs are closed while shutter is loaded. Apr 27, 2020 at 17:31
  • 1
    This worked well for me; thank you. Nov 2, 2020 at 17:04
6

I am not using Ubuntu 15.10 Unity Distro. So the the Gnome Compatibility tool of compiz just didn't worked for me. So I used Michael's method (above). Go to All Settings -> Keyboard -> Screenshots.

pic1

Then at first disable the "Take a Screenshot", "Take a screenshot of a window" and "Take a screenshot of an area" options by clicking on the options and pressing backspace.

And then go to "Custom Shortcuts" option and click on the plus button to add a new shortcut. To create screenshot for the whole desktop write the command "shutter-f" and and to take a particular area screenshot write the command "shutter-s".

pic2

Now after creating two Custom Shortcuts you have to assign the key to these Custom Shortcuts. Click on the "Disabled" area and press the key that you want to assign to this function. I recommend to use "Print" Key for full screen captor and "Shift+Print" for an area to captor.

Close the window, and then you are good to go...


Similarly you can even use gnome-screenshot tool. Just use "gnome-screenshot" command for full screen shot and use "gnome-screenshot -a" command for using the tool for an area. You can also use"gnome-screenshot -w" command for capturing a specific window.

I actually use gnome-screenshot tool because I it is way more fast and light weight. But it has less feature.

7
  • worked like a charm. I am on Ubuntu 15.10 as well. Thank you! Feb 23, 2016 at 14:38
  • 1
    May I ask what design you are using?
    – Nearoo
    Aug 10, 2016 at 12:51
  • I have used a simple program called 'pinta' @Nearoo.
    – Ryko
    Nov 22, 2016 at 8:15
  • @Ryko I mean the style of your system... you know, the one that is "Ambience" by default
    – Nearoo
    Dec 3, 2016 at 0:18
  • Oh I see. I am using "Arc darker" theme and "Breeze" as icons. @Nearoo
    – Ryko
    Dec 4, 2016 at 8:18
0

Ubuntu 14.04 has a screenshot section now. Doesn't answer your question, but it's a simple alternative.

enter image description here

1
  • You still have to get that annoying popup every time
    – Menasheh
    Jan 2, 2017 at 19:24
0

For ubuntu 17.10, all the above solutions did not work for me.

Even when I disabled the default mappings and added custom ones (as outlined in the second answer), it didn't work.

To make it work, I did this:

  1. start ccsm
  2. deselect Gnome compatibility
  3. Select Commands
  4. Add a command and a corresponding key binding e.g. shutter -f
0

To share 1/24/2019 since I also use this For Ubuntu 18.04.1

Go to settings - > Keyboard -> Screenshots * Change the default "Save a screenshot to pictures" with something else (other key combination)

Then go below to add a custom shortcut As of this writing Im using shutter. ;)

shutter command

0

I'd suggest using a custom shortcut instead of trying to replace the default PrintSc, as this CCSM seems too much of a hassle. I know this doesn't answer the original ques but for Linux noobies such as myself I'd say:

  • Go to Settings > Devices > Keyboard
  • Scroll down then add a custom shortcut +
  • In the Command section add shutter -a to capture the current active window or if u need to capture some specific application window all the time: shutter --window=.*VLC.* will always look for any VLC media player tabs (even when they running in background)
0

In Ubuntu 20.10:

  1. Go to System Settings -> Keyboard Shortcuts -> Screenshots
  2. Remove the "print screen" shortcut
  3. Scroll down and click the +
    • Name: Save a screenshot
    • Command: shutter -f -e -n -o screenshot_%Y-%m-%d_%T.png
    • Shortcut: Print Screen

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .