A silent screen-shot !

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
Post Reply
Vilsen
Level 2
Level 2
Posts: 67
Joined: Thu Nov 16, 2017 4:45 am

A silent screen-shot !

Post by Vilsen » Tue Feb 12, 2019 7:59 am

Hi I am a new linux-user and I am very satisfied with MINT MATE 17.3 and 18.3 (17.3 is starting much faster )

Some things I cannot understand: I noticed that in a previous distro - I think it was Ubuntu 11 or 12 - when I pressed
the key: PrtSr I got a screenshot saved to my desktop automatically in jpg without any FLASHES or MYSTERIOUS SOUNDS and
with NO ANNOYING DIALOGUE BOX . I believe I decided where to put and jpg or png , arrow or no arrow etc in some textfile .

It was perfect.


I'd like that in Mint MATE 17/18 too.

Thanks:

VILSEN

deepakdeshp
Level 12
Level 12
Posts: 4201
Joined: Sun Aug 09, 2015 10:00 am

Re: A silent screen-shot !

Post by deepakdeshp » Wed Feb 13, 2019 1:33 am

I don't think this is a forum where development requests are entertained.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 19.1 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

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

Re: A silent screen-shot !

Post by smurphos » Wed Feb 13, 2019 2:54 am

Deja-vu - viewtopic.php?f=90&t=275962
viewtopic.php?f=90&t=275736

Scrot is still the easy answer.

Install scrot

Code: Select all

apt install scrot
Ensure you have a ~/.local/bin directory

Code: Select all

mkdir ~/.local/bin
Open a fake ~/.local/bin/mate-screenshot in xed

Code: Select all

xed ~/.local/bin/mate-screenshot 
Paste the following code into the text editor and save.

Code: Select all

scrot '%Y-%m-%d-%H-%M-%S.png' -z -e 'mv $f ~/Desktop/'
Make your fake mate-screenshot executable.

Code: Select all

chmod +x ~/.local/bin/mate-screenshot
Log out and log back in.

Test PrtScr - as written you should get screenshots saved to your desktop with no noise or screenflash. You won't have the ability to use Alt-PrtScr to take a screenshot of a window only.

Vilsen
Level 2
Level 2
Posts: 67
Joined: Thu Nov 16, 2017 4:45 am

Re: A silent screen-shot !

Post by Vilsen » Wed Feb 13, 2019 7:11 am

What a great suggestion!

One question only: If I do excl as you say and it still wouldn't work
- how do I guard myself? I mean: I know what I have now but I don't know
what I get; Is it possible to go back to the old one if it doesn't work?

Vilsen
Level 2
Level 2
Posts: 67
Joined: Thu Nov 16, 2017 4:45 am

Re: A silent screen-shot !

Post by Vilsen » Wed Feb 13, 2019 7:23 am

What a great suggestion!

I tried it commandline-wise and it worked fine.

Is it possible to bind it to the keyboard-key: SCROLL-LOCK ? This key is
never used !

Hoser Rob
Level 13
Level 13
Posts: 4805
Joined: Sat Dec 15, 2012 8:57 am

Re: A silent screen-shot !

Post by Hoser Rob » Wed Feb 13, 2019 8:54 am

deepakdeshp wrote:
Wed Feb 13, 2019 1:33 am
I don't think this is a forum where development requests are entertained.
I'd go further than that. Devs rarely even look at forums like this. They wouldn't generally have the patience. They're either too busy fixing bugs or at their real jobs.

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

Re: A silent screen-shot !

Post by smurphos » Thu Feb 14, 2019 2:29 am

Vilsen wrote:
Wed Feb 13, 2019 7:11 am
Is it possible to go back to the old one if it doesn't work?
As provided the change is completely reversible by deleting the fake mate-screenshot. This will make the PrtScr button revert to using the stock mate-screenshot application.

Code: Select all

rm ~/.local/bin/mate-screenshot
Vilsen wrote:
Wed Feb 13, 2019 7:23 am
Is it possible to bind it to the keyboard-key: SCROLL-LOCK ? This key is
Yep

So in Mate - open the app Keyboard Shortcuts from the menu. Click Add to create a new custom shortcut. Name it something appropriate - scrot-screenshot or similar and in the command box paste the same command we used above and then click apply.

Code: Select all

scrot '%Y-%m-%d-%H-%M-%S.png' -z -e 'mv $f ~/Desktop/'
Navigate to the new entry - it will be at the bottom of the list. Highlight the keybinding and press ScrollLock. Close the Keyboard Shortcuts app. Test.

Vilsen
Level 2
Level 2
Posts: 67
Joined: Thu Nov 16, 2017 4:45 am

[SOLVED]Re: A silent screen-shot !

Post by Vilsen » Fri Feb 15, 2019 8:34 am

THANKS !

I wish someone could have said this many years ago .

THANKS ! Now I have what I want !

A single push on a button = key on the keyboard and : there it is : a picture is taken of the whole screen.

I wanted it 1985 - I got today . 34 years later . DOS, windows in all the shapes and 2006 : LINUX .

Now I have what use the most.

No hazzle .

THANKS !

User avatar
Flemur
Level 16
Level 16
Posts: 6401
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: A silent screen-shot !

Post by Flemur » Fri Feb 15, 2019 10:39 am

I also use scrot, like this (silent save of entire screen):

Code: Select all

scrot scrot.'%Y.%m.%d_%H.%M.%S.png' -e 'mv $f /mnt/DATA/download/'
And Ctrl + Print-screen runs

Code: Select all

xfce4-screenshooter
which brings up a GUI - sometimes you need that (set the delay time) to capture the mouse pointer or menus.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Manjaro openbox/fluxbox/pulse-less
Lubuntu LXDE/fluxbox/pulse-less

Post Reply

Return to “Newbie Questions”