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: 76
Joined: Sat Dec 21, 2013 7:46 pm

Shift + Print hotkey not working

Post by Fringe Wizard »

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: 391
Joined: Thu Jan 08, 2015 10:49 pm
Location: UK

Re: Shift + Print hotkey not working

Post by Dave B »

Hi,

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

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

Re: Shift + Print hotkey not working

Post by Fringe Wizard »

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: 391
Joined: Thu Jan 08, 2015 10:49 pm
Location: UK

Re: Shift + Print hotkey not working

Post by Dave B »

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: 76
Joined: Sat Dec 21, 2013 7:46 pm

Re: Shift + Print hotkey not working

Post by Fringe Wizard »

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

Post by technon »

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: 18
Joined: Fri Aug 21, 2015 7:46 am

Re: Shift + Print hotkey not working

Post by Joriktos »

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'
User avatar
cogier
Level 3
Level 3
Posts: 184
Joined: Sat Mar 31, 2012 9:51 am
Location: Guernsey

Re: Shift + Print hotkey not working

Post by cogier »

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
Shutter example
Shutter example
cipri_tom
Level 1
Level 1
Posts: 11
Joined: Fri Oct 26, 2012 5:11 pm

Re: Shift + Print hotkey not working

Post by cipri_tom »

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: 76
Joined: Sat Dec 21, 2013 7:46 pm

Re: Shift + Print hotkey not working

Post by Fringe Wizard »

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 2
Level 2
Posts: 60
Joined: Tue Mar 29, 2016 8:41 am

Re: Shift + Print hotkey not working

Post by DarknessCrYsiS »

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: 76
Joined: Sat Dec 21, 2013 7:46 pm

Re: Shift + Print hotkey not working

Post by Fringe Wizard »

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
Ask me anything here: https://8ch.net/ask/
User avatar
Fringe Wizard
Level 2
Level 2
Posts: 76
Joined: Sat Dec 21, 2013 7:46 pm

Re: Shift + Print hotkey not working

Post by Fringe Wizard »

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

Post by janw_oostendorp »

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

Post by christianbueno »

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

Post by christianbueno »

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

Post by Root13 »

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)
MintBean

Re: Shift + Print hotkey not working

Post by MintBean »

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: 76
Joined: Sat Dec 21, 2013 7:46 pm

Re: Shift + Print hotkey not working

Post by Fringe Wizard »

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: 5
Joined: Mon Jan 16, 2017 3:41 am

Re: Shift + Print hotkey not working

Post by dlazerka »

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.
Post Reply

Return to “Newbie Questions”