How to capture a screenshot immediately, without any confirmation, clipboard interference or screen blackout...
up vote
1
down vote
favorite
For Windows, IrfanView offers a powerful screenshot tool with these features:
- Custom filenames (number and timestamp) such as 000001_20170324110124.Screenshot.png
(not an actual filename of a file I have, just an example. I did not
use the timestamp of right now (20181107…) to avoid confusions with GMT). The number is
useful for navigating to a screenshot quickly by a file
manager's/terminal's automatic filename completion and to add
oversight. The word “Screenshot” makes it easier to find screenshots using file search. - Does not reserve clipboard. (if I wish to take a
screenshot to the clipboard, I can just manually use the
gnome-screenshot command) - Ability to save screenshot immediately. No
need to confirm or interact with a dialogue that may accidentially be closed by pressing the Escape key, eliminating the screenshot.
IrfanView just makes a Windows notification sound each time a screenshot capture is triggered. But nothing beyond that.
Mate screenshot offers no possibility to save the screenshot without encountering the confirmation dialogue. At least no delay, memorizes path,works without sound or screen effect and does only reserve the clipboard if manually wanted by the user. Edit: On Xfce, mate-screenshots from mate-utils does make a camera noise. Not that I think the noise is ugly but it might block a word from background audio I am listening to.
Gnome screenshot uses a screen blackout effect which I would not prefer. Not that it looks ugly, it just blocks the entire screen for a short moment. Additionally, it does not memorize the previous screenshot folder and always sets it to ~/Pictures. At least, gnome-screenshot and mate-Screenshot both support bookmarks.
How can I capture a screenshot and save it immediately with the press of one button?
If I can set a bonus key such as G2 (not available on all keyboards), that would be great. Also custom filenames would be nice to have, but mainly, I just wish to capture screenshots with the press of one button.
gnome shortcut-keys files clipboard screenshot
|
show 2 more comments
up vote
1
down vote
favorite
For Windows, IrfanView offers a powerful screenshot tool with these features:
- Custom filenames (number and timestamp) such as 000001_20170324110124.Screenshot.png
(not an actual filename of a file I have, just an example. I did not
use the timestamp of right now (20181107…) to avoid confusions with GMT). The number is
useful for navigating to a screenshot quickly by a file
manager's/terminal's automatic filename completion and to add
oversight. The word “Screenshot” makes it easier to find screenshots using file search. - Does not reserve clipboard. (if I wish to take a
screenshot to the clipboard, I can just manually use the
gnome-screenshot command) - Ability to save screenshot immediately. No
need to confirm or interact with a dialogue that may accidentially be closed by pressing the Escape key, eliminating the screenshot.
IrfanView just makes a Windows notification sound each time a screenshot capture is triggered. But nothing beyond that.
Mate screenshot offers no possibility to save the screenshot without encountering the confirmation dialogue. At least no delay, memorizes path,works without sound or screen effect and does only reserve the clipboard if manually wanted by the user. Edit: On Xfce, mate-screenshots from mate-utils does make a camera noise. Not that I think the noise is ugly but it might block a word from background audio I am listening to.
Gnome screenshot uses a screen blackout effect which I would not prefer. Not that it looks ugly, it just blocks the entire screen for a short moment. Additionally, it does not memorize the previous screenshot folder and always sets it to ~/Pictures. At least, gnome-screenshot and mate-Screenshot both support bookmarks.
How can I capture a screenshot and save it immediately with the press of one button?
If I can set a bonus key such as G2 (not available on all keyboards), that would be great. Also custom filenames would be nice to have, but mainly, I just wish to capture screenshots with the press of one button.
gnome shortcut-keys files clipboard screenshot
2
What happens when you press thePrintScreen
key? For me (in Lubuntu), it does what I think you want. You can installscrot
, if you want another program than what comes with your Ubuntu MATE. If you runscrot
without options, it will save the screenshot 'directly' without any questions, and you can create a hotkey for it if you wish.
– sudodus
Nov 7 at 20:19
@sudodus +1, but can I set a destination folder?
– neverMind9
Nov 7 at 20:31
2
A date-stamped file will be dropped in the current directory (byscrot
). So you can create a shellscript, that changes directory to where you want the screenshot to be dumped, and then runs scrot`. (And that shellscript can be called via a hotkey.)
– sudodus
Nov 7 at 20:36
1
If you wish, you can write an 'answer' and share the details of your solution :-)
– sudodus
Dec 4 at 7:04
1
@Sudodus Here is the script: askubuntu.com/a/1098319/782651.
– neverMind9
Dec 4 at 8:19
|
show 2 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
For Windows, IrfanView offers a powerful screenshot tool with these features:
- Custom filenames (number and timestamp) such as 000001_20170324110124.Screenshot.png
(not an actual filename of a file I have, just an example. I did not
use the timestamp of right now (20181107…) to avoid confusions with GMT). The number is
useful for navigating to a screenshot quickly by a file
manager's/terminal's automatic filename completion and to add
oversight. The word “Screenshot” makes it easier to find screenshots using file search. - Does not reserve clipboard. (if I wish to take a
screenshot to the clipboard, I can just manually use the
gnome-screenshot command) - Ability to save screenshot immediately. No
need to confirm or interact with a dialogue that may accidentially be closed by pressing the Escape key, eliminating the screenshot.
IrfanView just makes a Windows notification sound each time a screenshot capture is triggered. But nothing beyond that.
Mate screenshot offers no possibility to save the screenshot without encountering the confirmation dialogue. At least no delay, memorizes path,works without sound or screen effect and does only reserve the clipboard if manually wanted by the user. Edit: On Xfce, mate-screenshots from mate-utils does make a camera noise. Not that I think the noise is ugly but it might block a word from background audio I am listening to.
Gnome screenshot uses a screen blackout effect which I would not prefer. Not that it looks ugly, it just blocks the entire screen for a short moment. Additionally, it does not memorize the previous screenshot folder and always sets it to ~/Pictures. At least, gnome-screenshot and mate-Screenshot both support bookmarks.
How can I capture a screenshot and save it immediately with the press of one button?
If I can set a bonus key such as G2 (not available on all keyboards), that would be great. Also custom filenames would be nice to have, but mainly, I just wish to capture screenshots with the press of one button.
gnome shortcut-keys files clipboard screenshot
For Windows, IrfanView offers a powerful screenshot tool with these features:
- Custom filenames (number and timestamp) such as 000001_20170324110124.Screenshot.png
(not an actual filename of a file I have, just an example. I did not
use the timestamp of right now (20181107…) to avoid confusions with GMT). The number is
useful for navigating to a screenshot quickly by a file
manager's/terminal's automatic filename completion and to add
oversight. The word “Screenshot” makes it easier to find screenshots using file search. - Does not reserve clipboard. (if I wish to take a
screenshot to the clipboard, I can just manually use the
gnome-screenshot command) - Ability to save screenshot immediately. No
need to confirm or interact with a dialogue that may accidentially be closed by pressing the Escape key, eliminating the screenshot.
IrfanView just makes a Windows notification sound each time a screenshot capture is triggered. But nothing beyond that.
Mate screenshot offers no possibility to save the screenshot without encountering the confirmation dialogue. At least no delay, memorizes path,works without sound or screen effect and does only reserve the clipboard if manually wanted by the user. Edit: On Xfce, mate-screenshots from mate-utils does make a camera noise. Not that I think the noise is ugly but it might block a word from background audio I am listening to.
Gnome screenshot uses a screen blackout effect which I would not prefer. Not that it looks ugly, it just blocks the entire screen for a short moment. Additionally, it does not memorize the previous screenshot folder and always sets it to ~/Pictures. At least, gnome-screenshot and mate-Screenshot both support bookmarks.
How can I capture a screenshot and save it immediately with the press of one button?
If I can set a bonus key such as G2 (not available on all keyboards), that would be great. Also custom filenames would be nice to have, but mainly, I just wish to capture screenshots with the press of one button.
gnome shortcut-keys files clipboard screenshot
gnome shortcut-keys files clipboard screenshot
edited Dec 4 at 15:43
asked Nov 7 at 20:01
neverMind9
19912
19912
2
What happens when you press thePrintScreen
key? For me (in Lubuntu), it does what I think you want. You can installscrot
, if you want another program than what comes with your Ubuntu MATE. If you runscrot
without options, it will save the screenshot 'directly' without any questions, and you can create a hotkey for it if you wish.
– sudodus
Nov 7 at 20:19
@sudodus +1, but can I set a destination folder?
– neverMind9
Nov 7 at 20:31
2
A date-stamped file will be dropped in the current directory (byscrot
). So you can create a shellscript, that changes directory to where you want the screenshot to be dumped, and then runs scrot`. (And that shellscript can be called via a hotkey.)
– sudodus
Nov 7 at 20:36
1
If you wish, you can write an 'answer' and share the details of your solution :-)
– sudodus
Dec 4 at 7:04
1
@Sudodus Here is the script: askubuntu.com/a/1098319/782651.
– neverMind9
Dec 4 at 8:19
|
show 2 more comments
2
What happens when you press thePrintScreen
key? For me (in Lubuntu), it does what I think you want. You can installscrot
, if you want another program than what comes with your Ubuntu MATE. If you runscrot
without options, it will save the screenshot 'directly' without any questions, and you can create a hotkey for it if you wish.
– sudodus
Nov 7 at 20:19
@sudodus +1, but can I set a destination folder?
– neverMind9
Nov 7 at 20:31
2
A date-stamped file will be dropped in the current directory (byscrot
). So you can create a shellscript, that changes directory to where you want the screenshot to be dumped, and then runs scrot`. (And that shellscript can be called via a hotkey.)
– sudodus
Nov 7 at 20:36
1
If you wish, you can write an 'answer' and share the details of your solution :-)
– sudodus
Dec 4 at 7:04
1
@Sudodus Here is the script: askubuntu.com/a/1098319/782651.
– neverMind9
Dec 4 at 8:19
2
2
What happens when you press the
PrintScreen
key? For me (in Lubuntu), it does what I think you want. You can install scrot
, if you want another program than what comes with your Ubuntu MATE. If you run scrot
without options, it will save the screenshot 'directly' without any questions, and you can create a hotkey for it if you wish.– sudodus
Nov 7 at 20:19
What happens when you press the
PrintScreen
key? For me (in Lubuntu), it does what I think you want. You can install scrot
, if you want another program than what comes with your Ubuntu MATE. If you run scrot
without options, it will save the screenshot 'directly' without any questions, and you can create a hotkey for it if you wish.– sudodus
Nov 7 at 20:19
@sudodus +1, but can I set a destination folder?
– neverMind9
Nov 7 at 20:31
@sudodus +1, but can I set a destination folder?
– neverMind9
Nov 7 at 20:31
2
2
A date-stamped file will be dropped in the current directory (by
scrot
). So you can create a shellscript, that changes directory to where you want the screenshot to be dumped, and then runs scrot`. (And that shellscript can be called via a hotkey.)– sudodus
Nov 7 at 20:36
A date-stamped file will be dropped in the current directory (by
scrot
). So you can create a shellscript, that changes directory to where you want the screenshot to be dumped, and then runs scrot`. (And that shellscript can be called via a hotkey.)– sudodus
Nov 7 at 20:36
1
1
If you wish, you can write an 'answer' and share the details of your solution :-)
– sudodus
Dec 4 at 7:04
If you wish, you can write an 'answer' and share the details of your solution :-)
– sudodus
Dec 4 at 7:04
1
1
@Sudodus Here is the script: askubuntu.com/a/1098319/782651.
– neverMind9
Dec 4 at 8:19
@Sudodus Here is the script: askubuntu.com/a/1098319/782651.
– neverMind9
Dec 4 at 8:19
|
show 2 more comments
2 Answers
2
active
oldest
votes
up vote
1
down vote
You can both use custom directory to save screenshots and have filenames with timestamps with gnome-screenshot
. You need to use the following command.
gnome-screenshot -f /path/to/preferred/folder/screenshot_$(date "+%Y%m%d%H%M%S").png
Then you can set a keyboard shortcut for the command above.
add a comment |
up vote
1
down vote
accepted
I created a tiny bash script to facilitate the screenshot process.
However, it only runs in bash and not in dash (also known as sh ) when trying to bypass the octal number limitation.
##SCR NUM - RUN WITH BASH instead of sh.
scrdir=/path/to/screenshots
if ! [ -e $scrdir ]; then mkdir $scrdir; fi
counter=$(cat "./.count") #import the counter variable from last saved state.
number=$(printf '%07d' $(( 10#$counter )) ) #import number variable for leading zeroes from the original counter variable. If leading zeroes are not needed, the $counter variable can be used directly in the file name.
scrot -m $scrdir/Scr.$number.%Y%m%d%H%M%S.png # -e 'mv $f /path/to/screenshots' #save file with number and YYYYMMDDHHMMSS timestamp.
number=$(( 10#$number+1 )) #add +1 to screenshot counter.
counter=$(printf '%00d' $(( 10#$number)) ) #get number without leading zeroes from $number to avoid compatibility issues. 10#$ bypasses the octal number limitation and only works in bash, not in dash.
echo $num >"./.count" #save +1 increased screenshot counter back to .count file.
You can adjust some parameters to match your own personal preferences.
- The -m option captures all monitors (if multiple monitors are in use) according to
man scrot
.
%07d puts six zeroes ahead of the screenshot counter for better file sorting in older file managers. The seven zeroes, of which some are redundant, are just for aesthetic reasons in my case (i.e. 0000001), not because I would actually max out that counter during a lifetime.
(Deprecated.)-e 'mv $f /path/to/screenshots'
moves the taken screenshot to the desired destination afterwards.
- The .count file stores the screenshot counter.
- The additional $number variable is solely for the filename and gets generated from $count but with leading zeroes, as seen in the script.
- Another advantage, besides more organized file names, of having a number in the file name, is that more than one screenshot can be taken in the same second without the previous one being overwritten, although this is rather rare.
In the system's keyboard settings, you can assign a keyboard shortcut to the script, but type the word bash infront of it. It will execute each time you push the hotkey, PrintScr in my case.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1090927%2fhow-to-capture-a-screenshot-immediately-without-any-confirmation-clipboard-int%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
You can both use custom directory to save screenshots and have filenames with timestamps with gnome-screenshot
. You need to use the following command.
gnome-screenshot -f /path/to/preferred/folder/screenshot_$(date "+%Y%m%d%H%M%S").png
Then you can set a keyboard shortcut for the command above.
add a comment |
up vote
1
down vote
You can both use custom directory to save screenshots and have filenames with timestamps with gnome-screenshot
. You need to use the following command.
gnome-screenshot -f /path/to/preferred/folder/screenshot_$(date "+%Y%m%d%H%M%S").png
Then you can set a keyboard shortcut for the command above.
add a comment |
up vote
1
down vote
up vote
1
down vote
You can both use custom directory to save screenshots and have filenames with timestamps with gnome-screenshot
. You need to use the following command.
gnome-screenshot -f /path/to/preferred/folder/screenshot_$(date "+%Y%m%d%H%M%S").png
Then you can set a keyboard shortcut for the command above.
You can both use custom directory to save screenshots and have filenames with timestamps with gnome-screenshot
. You need to use the following command.
gnome-screenshot -f /path/to/preferred/folder/screenshot_$(date "+%Y%m%d%H%M%S").png
Then you can set a keyboard shortcut for the command above.
answered Nov 8 at 5:54
pomsky
27.9k1185112
27.9k1185112
add a comment |
add a comment |
up vote
1
down vote
accepted
I created a tiny bash script to facilitate the screenshot process.
However, it only runs in bash and not in dash (also known as sh ) when trying to bypass the octal number limitation.
##SCR NUM - RUN WITH BASH instead of sh.
scrdir=/path/to/screenshots
if ! [ -e $scrdir ]; then mkdir $scrdir; fi
counter=$(cat "./.count") #import the counter variable from last saved state.
number=$(printf '%07d' $(( 10#$counter )) ) #import number variable for leading zeroes from the original counter variable. If leading zeroes are not needed, the $counter variable can be used directly in the file name.
scrot -m $scrdir/Scr.$number.%Y%m%d%H%M%S.png # -e 'mv $f /path/to/screenshots' #save file with number and YYYYMMDDHHMMSS timestamp.
number=$(( 10#$number+1 )) #add +1 to screenshot counter.
counter=$(printf '%00d' $(( 10#$number)) ) #get number without leading zeroes from $number to avoid compatibility issues. 10#$ bypasses the octal number limitation and only works in bash, not in dash.
echo $num >"./.count" #save +1 increased screenshot counter back to .count file.
You can adjust some parameters to match your own personal preferences.
- The -m option captures all monitors (if multiple monitors are in use) according to
man scrot
.
%07d puts six zeroes ahead of the screenshot counter for better file sorting in older file managers. The seven zeroes, of which some are redundant, are just for aesthetic reasons in my case (i.e. 0000001), not because I would actually max out that counter during a lifetime.
(Deprecated.)-e 'mv $f /path/to/screenshots'
moves the taken screenshot to the desired destination afterwards.
- The .count file stores the screenshot counter.
- The additional $number variable is solely for the filename and gets generated from $count but with leading zeroes, as seen in the script.
- Another advantage, besides more organized file names, of having a number in the file name, is that more than one screenshot can be taken in the same second without the previous one being overwritten, although this is rather rare.
In the system's keyboard settings, you can assign a keyboard shortcut to the script, but type the word bash infront of it. It will execute each time you push the hotkey, PrintScr in my case.
add a comment |
up vote
1
down vote
accepted
I created a tiny bash script to facilitate the screenshot process.
However, it only runs in bash and not in dash (also known as sh ) when trying to bypass the octal number limitation.
##SCR NUM - RUN WITH BASH instead of sh.
scrdir=/path/to/screenshots
if ! [ -e $scrdir ]; then mkdir $scrdir; fi
counter=$(cat "./.count") #import the counter variable from last saved state.
number=$(printf '%07d' $(( 10#$counter )) ) #import number variable for leading zeroes from the original counter variable. If leading zeroes are not needed, the $counter variable can be used directly in the file name.
scrot -m $scrdir/Scr.$number.%Y%m%d%H%M%S.png # -e 'mv $f /path/to/screenshots' #save file with number and YYYYMMDDHHMMSS timestamp.
number=$(( 10#$number+1 )) #add +1 to screenshot counter.
counter=$(printf '%00d' $(( 10#$number)) ) #get number without leading zeroes from $number to avoid compatibility issues. 10#$ bypasses the octal number limitation and only works in bash, not in dash.
echo $num >"./.count" #save +1 increased screenshot counter back to .count file.
You can adjust some parameters to match your own personal preferences.
- The -m option captures all monitors (if multiple monitors are in use) according to
man scrot
.
%07d puts six zeroes ahead of the screenshot counter for better file sorting in older file managers. The seven zeroes, of which some are redundant, are just for aesthetic reasons in my case (i.e. 0000001), not because I would actually max out that counter during a lifetime.
(Deprecated.)-e 'mv $f /path/to/screenshots'
moves the taken screenshot to the desired destination afterwards.
- The .count file stores the screenshot counter.
- The additional $number variable is solely for the filename and gets generated from $count but with leading zeroes, as seen in the script.
- Another advantage, besides more organized file names, of having a number in the file name, is that more than one screenshot can be taken in the same second without the previous one being overwritten, although this is rather rare.
In the system's keyboard settings, you can assign a keyboard shortcut to the script, but type the word bash infront of it. It will execute each time you push the hotkey, PrintScr in my case.
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
I created a tiny bash script to facilitate the screenshot process.
However, it only runs in bash and not in dash (also known as sh ) when trying to bypass the octal number limitation.
##SCR NUM - RUN WITH BASH instead of sh.
scrdir=/path/to/screenshots
if ! [ -e $scrdir ]; then mkdir $scrdir; fi
counter=$(cat "./.count") #import the counter variable from last saved state.
number=$(printf '%07d' $(( 10#$counter )) ) #import number variable for leading zeroes from the original counter variable. If leading zeroes are not needed, the $counter variable can be used directly in the file name.
scrot -m $scrdir/Scr.$number.%Y%m%d%H%M%S.png # -e 'mv $f /path/to/screenshots' #save file with number and YYYYMMDDHHMMSS timestamp.
number=$(( 10#$number+1 )) #add +1 to screenshot counter.
counter=$(printf '%00d' $(( 10#$number)) ) #get number without leading zeroes from $number to avoid compatibility issues. 10#$ bypasses the octal number limitation and only works in bash, not in dash.
echo $num >"./.count" #save +1 increased screenshot counter back to .count file.
You can adjust some parameters to match your own personal preferences.
- The -m option captures all monitors (if multiple monitors are in use) according to
man scrot
.
%07d puts six zeroes ahead of the screenshot counter for better file sorting in older file managers. The seven zeroes, of which some are redundant, are just for aesthetic reasons in my case (i.e. 0000001), not because I would actually max out that counter during a lifetime.
(Deprecated.)-e 'mv $f /path/to/screenshots'
moves the taken screenshot to the desired destination afterwards.
- The .count file stores the screenshot counter.
- The additional $number variable is solely for the filename and gets generated from $count but with leading zeroes, as seen in the script.
- Another advantage, besides more organized file names, of having a number in the file name, is that more than one screenshot can be taken in the same second without the previous one being overwritten, although this is rather rare.
In the system's keyboard settings, you can assign a keyboard shortcut to the script, but type the word bash infront of it. It will execute each time you push the hotkey, PrintScr in my case.
I created a tiny bash script to facilitate the screenshot process.
However, it only runs in bash and not in dash (also known as sh ) when trying to bypass the octal number limitation.
##SCR NUM - RUN WITH BASH instead of sh.
scrdir=/path/to/screenshots
if ! [ -e $scrdir ]; then mkdir $scrdir; fi
counter=$(cat "./.count") #import the counter variable from last saved state.
number=$(printf '%07d' $(( 10#$counter )) ) #import number variable for leading zeroes from the original counter variable. If leading zeroes are not needed, the $counter variable can be used directly in the file name.
scrot -m $scrdir/Scr.$number.%Y%m%d%H%M%S.png # -e 'mv $f /path/to/screenshots' #save file with number and YYYYMMDDHHMMSS timestamp.
number=$(( 10#$number+1 )) #add +1 to screenshot counter.
counter=$(printf '%00d' $(( 10#$number)) ) #get number without leading zeroes from $number to avoid compatibility issues. 10#$ bypasses the octal number limitation and only works in bash, not in dash.
echo $num >"./.count" #save +1 increased screenshot counter back to .count file.
You can adjust some parameters to match your own personal preferences.
- The -m option captures all monitors (if multiple monitors are in use) according to
man scrot
.
%07d puts six zeroes ahead of the screenshot counter for better file sorting in older file managers. The seven zeroes, of which some are redundant, are just for aesthetic reasons in my case (i.e. 0000001), not because I would actually max out that counter during a lifetime.
(Deprecated.)-e 'mv $f /path/to/screenshots'
moves the taken screenshot to the desired destination afterwards.
- The .count file stores the screenshot counter.
- The additional $number variable is solely for the filename and gets generated from $count but with leading zeroes, as seen in the script.
- Another advantage, besides more organized file names, of having a number in the file name, is that more than one screenshot can be taken in the same second without the previous one being overwritten, although this is rather rare.
In the system's keyboard settings, you can assign a keyboard shortcut to the script, but type the word bash infront of it. It will execute each time you push the hotkey, PrintScr in my case.
edited Dec 10 at 2:13
answered Dec 4 at 8:11
neverMind9
19912
19912
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1090927%2fhow-to-capture-a-screenshot-immediately-without-any-confirmation-clipboard-int%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
What happens when you press the
PrintScreen
key? For me (in Lubuntu), it does what I think you want. You can installscrot
, if you want another program than what comes with your Ubuntu MATE. If you runscrot
without options, it will save the screenshot 'directly' without any questions, and you can create a hotkey for it if you wish.– sudodus
Nov 7 at 20:19
@sudodus +1, but can I set a destination folder?
– neverMind9
Nov 7 at 20:31
2
A date-stamped file will be dropped in the current directory (by
scrot
). So you can create a shellscript, that changes directory to where you want the screenshot to be dumped, and then runs scrot`. (And that shellscript can be called via a hotkey.)– sudodus
Nov 7 at 20:36
1
If you wish, you can write an 'answer' and share the details of your solution :-)
– sudodus
Dec 4 at 7:04
1
@Sudodus Here is the script: askubuntu.com/a/1098319/782651.
– neverMind9
Dec 4 at 8:19