Problem with screenshot keyboard shortcut

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
MintBean

Problem with screenshot keyboard shortcut

Post by MintBean »

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 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Problem with screenshot keyboard shortcut

Post by Cosmo. »

Launch the screen capture tool from the menu.
MintBean

Re: Problem with screenshot keyboard shortcut

Post by MintBean »

That's my current workaround but I would like to get the shortcut working. Does it work for you?
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Problem with screenshot keyboard shortcut

Post by Cosmo. »

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

Re: Problem with screenshot keyboard shortcut

Post by MintBean »

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

Re: Problem with screenshot keyboard shortcut

Post by Mroptonix »

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: 16
Joined: Sat Jul 09, 2016 8:31 pm
Contact:

Re: Problem with screenshot keyboard shortcut

Post by frc_kde »

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
6 × Intel® Core™ i5-9400 CPU @ 2.90GHz
TUF B360M-PLUS GAMING/BR - ASUSTeK
Intel UHD Graphics 630 (integrated)
Memory: 15.5 GiB of RAM
http://byteria.blogspot.com/
gm10

Re: Problem with screenshot keyboard shortcut

Post by gm10 »

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.
Mroptonix

Re: Problem with screenshot keyboard shortcut

Post by Mroptonix »

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 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Problem with screenshot keyboard shortcut

Post by smurphos »

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
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11168
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 AZgl1800 »

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
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Problem with screenshot keyboard shortcut

Post by smurphos »

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
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Locked

Return to “Software & Applications”