Problem with screenshot keyboard shortcut

Questions about applications and software
Forum rules
Before you post please read how to get help
Locked
User avatar
MintBean
Level 9
Level 9
Posts: 2908
Joined: Fri Aug 07, 2015 6:54 am
Location: Blighty

Problem with screenshot keyboard shortcut

Post by MintBean » Thu Oct 06, 2016 8:20 pm

When I press the 'PrintScreen' key, the snapshot tool pops up as expected allowing me to take a full screen snapshot, however when I press <shift>+printscreen which is supposed to allow me to capture an area of the screen, the tool does not appear. I have tried changing the key bindings to no avail as I cannot find a way to grab a screen area via keyboard shortcut. Do others have this problem, and how do I fix it?

I'm using Mint 18 Cinnamon.

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Problem with screenshot keyboard shortcut

Post by Cosmo. » Fri Oct 07, 2016 5:34 am

Launch the screen capture tool from the menu.

User avatar
MintBean
Level 9
Level 9
Posts: 2908
Joined: Fri Aug 07, 2015 6:54 am
Location: Blighty

Re: Problem with screenshot keyboard shortcut

Post by MintBean » Fri Oct 07, 2016 5:43 am

That's my current workaround but I would like to get the shortcut working. Does it work for you?

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: Problem with screenshot keyboard shortcut

Post by Cosmo. » Fri Oct 07, 2016 5:49 am

No, it doesn't. (Actually this doesn't bother me, as I use Shutter for doing screenshots.)

User avatar
MintBean
Level 9
Level 9
Posts: 2908
Joined: Fri Aug 07, 2015 6:54 am
Location: Blighty

Re: Problem with screenshot keyboard shortcut

Post by MintBean » Fri Oct 07, 2016 6:17 am

Shutter's very nice I must say. I'll be using that from here on in. Thanks Cosmo.

User avatar
Mroptonix
Level 1
Level 1
Posts: 21
Joined: Tue Jul 10, 2018 5:38 pm

Re: Problem with screenshot keyboard shortcut

Post by Mroptonix » Thu Jul 12, 2018 8:27 am

for mint 17,18, 19
1. create a new document in your home folder or some subdirectory (no matter which one) with this format:
file_name.sh

2. paste this content in it and save:

!/bin/sh
sleep 0.125
gnome-screenshot -a -c


note: -a (for area selection), -c to copy image in clipboard
3.make it executable (right click on the file and in permission tab make it executable(allow executing the file as a program))

4. go to keyboard shortcut setting (menu/system setting/keyboard/shortcut) and 'add a custom shortcut'
name: area snapshot
select filename.sh in command

assign shift+prt sc key to it

5. enjoy it :wink:
Last edited by Mroptonix on Thu Jul 19, 2018 2:23 am, edited 1 time in total.

frc_kde
Level 1
Level 1
Posts: 3
Joined: Sat Jul 09, 2016 8:31 pm

Re: Problem with screenshot keyboard shortcut

Post by frc_kde » Wed Jul 18, 2018 1:23 pm

Mroptonix wrote:
Thu Jul 12, 2018 8:27 am
for mint 17,18, 19
1. create a new document in your home folder or some subdirectory (no matter which one) with this format:
file_name.sh

2. paste this content in it and save:

!/bin/sh
sleep 0.125
gnome-screenshot -a -c


note: -a (for area selection), -c to copy image in clipboard
3.make it executable (right click on the file and in permission tab make it executable(allow executing the file as a program))

4. go to keyboard shortcut setting (menu/system setting/keyboard/shortcut) and 'add a custom shortcut'
name: area snapshot
select filename.sh in command


5. enjoy it :wink:

It worked!

Thank you.

This command works from Terminal, but not inserted directly to PrtScn Key shortcut within Mint 19 Tara Cinnamon ─ although it is working from PrtScn Key within Mint 18 KDE:

gnome-screenshot -p -f /PATH/$(date +%F_%H-%M-%S)_Mt.jpg

gm10
Level 7
Level 7
Posts: 1674
Joined: Thu Jun 21, 2018 5:11 pm

Re: Problem with screenshot keyboard shortcut

Post by gm10 » Wed Jul 18, 2018 1:51 pm

Just for reference, I have no trouble with the Shift+PrtScr combo in Cinnamon and Mint 19, it works just fine out of the box. If it doesn't work for you, just another reason why upgrades are bad (at least I'm assuming that's the reason it's not working for you).

I frankly don't remember whether it worked on Mint 18 since my main DE is MATE.

User avatar
Mroptonix
Level 1
Level 1
Posts: 21
Joined: Tue Jul 10, 2018 5:38 pm

Re: Problem with screenshot keyboard shortcut

Post by Mroptonix » Thu Jul 19, 2018 3:41 am

frc_kde wrote:
Wed Jul 18, 2018 1:23 pm
Mroptonix wrote:
Thu Jul 12, 2018 8:27 am
for mint 17,18, 19
1. create a new document in your home folder or some subdirectory (no matter which one) with this format:
file_name.sh

2. paste this content in it and save:

!/bin/sh
sleep 0.125
gnome-screenshot -a -c


note: -a (for area selection), -c to copy image in clipboard
3.make it executable (right click on the file and in permission tab make it executable(allow executing the file as a program))

4. go to keyboard shortcut setting (menu/system setting/keyboard/shortcut) and 'add a custom shortcut'
name: area snapshot
select filename.sh in command


5. enjoy it :wink:

It worked!

Thank you.

This command works from Terminal, but not inserted directly to PrtScn Key shortcut within Mint 19 Tara Cinnamon ─ although it is working from PrtScn Key within Mint 18 KDE:

gnome-screenshot -p -f /PATH/$(date +%F_%H-%M-%S)_Mt.jpg

after you made that file and create the custom shortcut, you must assign whatever keys you want (shift+prt sc) usually assigned as default for area snapshot.

User avatar
smurphos
Level 6
Level 6
Posts: 1162
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Problem with screenshot keyboard shortcut

Post by smurphos » Thu Jul 19, 2018 4:18 am

I've always needed to change the default keybindings to not use the Prt Sc button at all on my machine (mainly because the basic Prt Sc shortcut does not work for me).

I use Ctrl-P for basic screen shot, Ctrl-Shift-P for area, and Ctrl-Alt-P for window. That works fine.

Another solution for Cinnamon is to install this excellent screenshot applet - https://github.com/rjanja/desktop-capture

User avatar
AZgl1500
Level 8
Level 8
Posts: 2022
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Problem with screenshot keyboard shortcut

Post by AZgl1500 » Thu Jul 19, 2018 7:20 am

I am using 18.3 Cinnamon,
and I get a file not found message

Image


And that file does indeed exist:

Image



Does the filename have to be all lowercase?

I changed it to lowercase and get the same message: 'failed'

I have the permissions set to execute

Image

User avatar
smurphos
Level 6
Level 6
Posts: 1162
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Problem with screenshot keyboard shortcut

Post by smurphos » Thu Jul 19, 2018 7:30 am

If you've saved the script in your home you do need to specify the full path in the keyboard shortcut...the tutorial missed that bit.
4. go to keyboard shortcut setting (menu/system setting/keyboard/shortcut) and 'add a custom shortcut'
name: area snapshot
select /home/john/PrtScreenAreaSelect.sh in command

Locked

Return to “Software & Applications”