Shift + Print hotkey not working

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
User avatar
Fringe Wizard
Level 2
Level 2
Posts: 72
Joined: Sat Dec 21, 2013 7:46 pm

Shift + Print hotkey not working

Postby Fringe Wizard » Wed Aug 19, 2015 12:14 pm

Take a screenshot of an area = does not work, no apparent reason why, the hotkey is assigned. It can be done manually by opening up the screenshot program and selecting that feature but that is too inefficient, I need the hotkey to work.
Copy a screenshot of an area to clipboard = works
Take a screenshot = works
Copy a screenshot to clipboard = works
Take a screenshot of a window = works
Copy a screenshot of a window to clipboard = works
Toggle recording desktop (must restart Cinnamon) = ? Idk, haven't tested, don't care about it

Tested with two different keyboards. All the hotkeys work except for shift + print. Assigning different hotkeys to that function of "take a screenshot of an area" makes no difference, other hotkeys assigned to it won't work either, I do not know why.

Linux Mint 17.2 Cinnamon here. The default Screenshot program that comes with this OS is in use.

See uploaded attachment.
Attachments
The hotkey is correct but it does not work.png
Ask me anything here: https://8ch.net/ask/

Dave B
Level 4
Level 4
Posts: 339
Joined: Thu Jan 08, 2015 10:49 pm
Location: UK

Re: Shift + Print hotkey not working

Postby Dave B » Wed Aug 19, 2015 12:25 pm

Hi,

In Cinnamon, try to following keys, (left) Alt + Print Screen :)

David

User avatar
Fringe Wizard
Level 2
Level 2
Posts: 72
Joined: Sat Dec 21, 2013 7:46 pm

Re: Shift + Print hotkey not working

Postby Fringe Wizard » Wed Aug 19, 2015 12:52 pm

David Black wrote:Hi,

In Cinnamon, try to following keys, (left) Alt + Print Screen :)

David


That captures the window instead of a rectangular area. This is not what I am trying to do.

I've also tried making a custom keyboard shortcut with the command gnome-screenshot -a but it does not work.

See attachment.
Attachments
It Does Nothing At All.png
Ask me anything here: https://8ch.net/ask/

Dave B
Level 4
Level 4
Posts: 339
Joined: Thu Jan 08, 2015 10:49 pm
Location: UK

Re: Shift + Print hotkey not working

Postby Dave B » Wed Aug 19, 2015 1:21 pm

Oops! Misread your initial post.

To capture an area, while holding Shift, very quickly double tap the Print Screen key.

User avatar
Fringe Wizard
Level 2
Level 2
Posts: 72
Joined: Sat Dec 21, 2013 7:46 pm

Re: Shift + Print hotkey not working

Postby Fringe Wizard » Wed Aug 19, 2015 4:23 pm

David Black wrote:Oops! Misread your initial post.

To capture an area, while holding Shift, very quickly double tap the Print Screen key.


Your suggestion does not work. However, I have with the help of some other posters on https://8ch.net/tech/ managed to create a solution... see attached image.
Attachments
How To Grab Area Screencap by Hotkey in Mint Cinnamon.jpg
What I had to do in order to fix shift screencapping in Mint.
Ask me anything here: https://8ch.net/ask/

technon
Level 1
Level 1
Posts: 1
Joined: Wed Aug 19, 2015 4:48 pm

Re: Shift + Print hotkey not working

Postby technon » Wed Aug 19, 2015 5:05 pm

I posted these on /tech/ but I'll post them here too:

Code: Select all

#!/bin/sh
retry_if_temporary_fail() {
    # Workaround for stupidness in scrot, maim, import and possibly other tools.
    local out res
    i=0
    while [ $i -lt 10 ]; do
        out=$("$@" 2>&1)
        res=$?
        [ "$res" = 0 ] && break || case $out in
            *"Resource temporarily unavailable"*|*"Failed to grab X cursor"*) sleep 0.1;;
            *) break;;
        esac
        i=$((i+1))
    done
    printf %s\\n "$out" >&2
    return "$res"
}
retry_if_temporary_fail gnome-screenshot -a

This is the code I use to work around the weirdness in gnome_screenshot (and other tools) without having to just guess a sleep.

I found maim+slop to be the best screenshot taking tools, so I wrote a script to wrap those too:

Code: Select all

#!/bin/sh
extra_args=

eval "set -- $(getopt -n "$0" -o s -- "$@")"
while [ $# != 0 ]; do
    case "$1" in
        -s) extra_args="$extra_args -sc 1,0,0,0.8";;
        --) break;;
    esac; shift
done; shift

[ "$#" = 0 ] && set -- "$HOME/$(date +%F-%H%M%S%N).png"
[ "$#" = 1 ] || { echo 'Only one image filename supported.' >&2; exit 1; }

eval "exec maim $extra_args --hidecursor -- \"\$1\""


The first script we can call screenclip and the second take-screenshot. If you want, you can replace "gnome-screenshot -a" (from screenclip) with "take-screenshot -s".

In combination I find this to be the best screenshot taking tool. The retry_if_temporary_fail workaround allows you to bind it to a key safely, and the maim/slop invocation leaves no gunk behind when you take a screenshot (unlike under normal usage of scrot/import/gnome-screenshot/etc).

Joriktos
Level 1
Level 1
Posts: 10
Joined: Fri Aug 21, 2015 7:46 am

Re: Shift + Print hotkey not working

Postby Joriktos » Wed Sep 16, 2015 6:18 am

Fringe Wizard wrote:
David Black wrote:Oops! Misread your initial post.

To capture an area, while holding Shift, very quickly double tap the Print Screen key.


Your suggestion does not work. However, I have with the help of some other posters on https://8ch.net/tech/ managed to create a solution... see attached image.

(For image go to this post: viewtopic.php?f=90&t=202909&p=1066980#p1054836)

I think a shorter solution of this is to use this command in Keyboard Shortcuts:

Code: Select all

sh -c 'sleep 0.1; gnome-screenshot -a'

User avatar
cogier
Level 3
Level 3
Posts: 166
Joined: Sat Mar 31, 2012 9:51 am

Re: Shift + Print hotkey not working

Postby cogier » Wed Sep 16, 2015 12:32 pm

If you don't mind using a bit of disk space I suggest you install Shutter. It is the best screen capture software you will find and can do what you need and a lot more besides. See attached file of this post with a right click menu included.
Attachments
Selection_054.png
Shutter example

cipri_tom
Level 1
Level 1
Posts: 11
Joined: Fri Oct 26, 2012 5:11 pm

Re: Shift + Print hotkey not working

Postby cipri_tom » Tue Dec 08, 2015 6:17 pm

These are all nice workarounds, but do we really want to keep this 'hacker' culture of linux users, where you have to fix everything yourself ?
I believe not, so should be file a bug report about it? Maybe they'll fix the root of the problem, not the manifestation.

What strikes me is the resemblance with an older issue (Linux Min 13 -> 16) with the combination Win + e for 'Home folder'. This had the same problem of only working with a quick double tap of 'e'. It got fixed in LM 17.2.

Does anyone know why the commands may fail the first time?

User avatar
Fringe Wizard
Level 2
Level 2
Posts: 72
Joined: Sat Dec 21, 2013 7:46 pm

Re: Shift + Print hotkey not working

Postby Fringe Wizard » Wed Dec 16, 2015 7:59 am

cipri_tom wrote:These are all nice workarounds, but do we really want to keep this 'hacker' culture of linux users, where you have to fix everything yourself ?
I believe not, so should be file a bug report about it? Maybe they'll fix the root of the problem, not the manifestation.

What strikes me is the resemblance with an older issue (Linux Min 13 -> 16) with the combination Win + e for 'Home folder'. This had the same problem of only working with a quick double tap of 'e'. It got fixed in LM 17.2.

Does anyone know why the commands may fail the first time?

I don't know how to file a bug report do you? If you do, do it, and also tell me how you did it. I've been told off by some guy saying this not working is a "personal preference thing" and "not a bug" but it's obviously a bug when the command is there by default, configured and everything, but doesn't do anything. It's not something you have to add it; it's something already there but not working.
Ask me anything here: https://8ch.net/ask/

DarknessCrYsiS
Level 1
Level 1
Posts: 34
Joined: Tue Mar 29, 2016 8:41 am

Re: Shift + Print hotkey not working

Postby DarknessCrYsiS » Tue Mar 29, 2016 8:45 am

Hi, this worked for me. How would it be to fix the Copy a screenshot of an area to clipboard option?

User avatar
Fringe Wizard
Level 2
Level 2
Posts: 72
Joined: Sat Dec 21, 2013 7:46 pm

Re: Shift + Print hotkey not working

Postby Fringe Wizard » Fri Jul 15, 2016 6:08 pm

Just upgraded to Linux Mint 18. This long-standing issue is STILL NOT FIXED. Shift-screencapping is not working correctly in Linux Mint 18.

Shift Screencapping.png
Shift Screencapping still broke in Linux Mint 18
Ask me anything here: https://8ch.net/ask/

User avatar
Fringe Wizard
Level 2
Level 2
Posts: 72
Joined: Sat Dec 21, 2013 7:46 pm

Re: Shift + Print hotkey not working

Postby Fringe Wizard » Fri Jul 15, 2016 6:15 pm

I also have the additional problem now of a dialog coming up each time I screencap something. This is annoying because:

1. It minimizes any full-screen game I'm in.
2. It slows down the whole process of screencapping, making it hard to take multiple rapid screencaps.

I don't want a dialog asking me where to save the screencap and with what name I just want it to place it in the folder it's set to right away with a name automatically generated.
Ask me anything here: https://8ch.net/ask/

janw_oostendorp
Level 1
Level 1
Posts: 1
Joined: Mon Sep 05, 2016 9:43 am

Re: Shift + Print hotkey not working

Postby janw_oostendorp » Mon Sep 05, 2016 9:45 am

I filed a bug. I'm new to Linux Mint and it's community. So I have no idea how fast it might be fixed..

https://bugs.launchpad.net/linuxmint/+bug/1620318

christianbueno
Level 1
Level 1
Posts: 2
Joined: Wed Nov 02, 2016 8:56 pm

Re: Shift + Print hotkey not working

Postby christianbueno » Wed Nov 02, 2016 9:05 pm

Joriktos wrote:
Fringe Wizard wrote:
David Black wrote:Oops! Misread your initial post.

To capture an area, while holding Shift, very quickly double tap the Print Screen key.


Your suggestion does not work. However, I have with the help of some other posters on https://8ch.net/tech/ managed to create a solution... see attached image.

(For image go to this post: http://forums.linuxmint.com/viewtopic.p ... 0#p1054836)

I think a shorter solution of this is to use this command in Keyboard Shortcuts:

Code: Select all

sh -c 'sleep 0.1; gnome-screenshot -a'


Thank very much for that solution.
OS:Antergos [Arch Linux]
DE: Cinnamon 3.0.7
Linux Kernel: 4.8.6-1-ARCH
gnome-screenshot 3.22.0

Greetings from Ecuador

christianbueno
Level 1
Level 1
Posts: 2
Joined: Wed Nov 02, 2016 8:56 pm

Re: Shift + Print hotkey not working

Postby christianbueno » Wed Nov 02, 2016 9:21 pm

I think there is a problem of Cinnamon Desktop Environment

OS: Antergos [Arch Linux]
cinnamon version: 3.0.7
Linux Kernel: 4.8.6-1ARCH
gnome-screenshot 3.22.0

Here is the Issue about that: Github Issue #3981

Root13
Level 1
Level 1
Posts: 11
Joined: Wed Nov 02, 2016 5:52 am

Re: Shift + Print hotkey not working

Postby Root13 » Thu Nov 03, 2016 9:39 am

janw_oostendorp wrote:I filed a bug. I'm new to Linux Mint and it's community. So I have no idea how fast it might be fixed..

https://bugs.launchpad.net/linuxmint/+bug/1620318

Well, as this problem was active over a year, I don't think, they are planning to solve it in the near future)

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

Re: Shift + Print hotkey not working

Postby MintBean » Thu Nov 03, 2016 11:31 am

I can can confirm SHIFT+Printscreen not working on Mint Cinnamon 18 64 bit, despite checking the shortcut is defined.

User avatar
Fringe Wizard
Level 2
Level 2
Posts: 72
Joined: Sat Dec 21, 2013 7:46 pm

Re: Shift + Print hotkey not working

Postby Fringe Wizard » Fri Nov 18, 2016 7:44 am

I really hope this problem is fixed once and for all in the next version of Linux Mint Cinnamon. http://blog.linuxmint.com/?p=3163
Ask me anything here: https://8ch.net/ask/

dlazerka
Level 1
Level 1
Posts: 1
Joined: Mon Jan 16, 2017 3:41 am

Re: Shift + Print hotkey not working

Postby dlazerka » Thu Jan 19, 2017 1:02 am

It _sometimes_ work for me in 18.1, when I do Shift-PrtSc several times in a row. But other times it just doesn't want to work, no matter how long I do it.


Return to “Newbie Questions”

Who is online

Users browsing this forum: Google [Bot] and 6 guests