How can I save and copy a screenhot at the same time?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Ive been trying to use gnome-screenshot like so
gnome-screenshot -acf $(date +%y_%h_%d_%H_%M_%S)
if I use the copy argument gnome-screenshot will not save. Am I missing something?
gnome screenshot gnome-screenshot
New contributor
add a comment |
Ive been trying to use gnome-screenshot like so
gnome-screenshot -acf $(date +%y_%h_%d_%H_%M_%S)
if I use the copy argument gnome-screenshot will not save. Am I missing something?
gnome screenshot gnome-screenshot
New contributor
2
I don't think you're missing anything, it seems-c
and-f
don't work together.
– pomsky
3 hours ago
add a comment |
Ive been trying to use gnome-screenshot like so
gnome-screenshot -acf $(date +%y_%h_%d_%H_%M_%S)
if I use the copy argument gnome-screenshot will not save. Am I missing something?
gnome screenshot gnome-screenshot
New contributor
Ive been trying to use gnome-screenshot like so
gnome-screenshot -acf $(date +%y_%h_%d_%H_%M_%S)
if I use the copy argument gnome-screenshot will not save. Am I missing something?
gnome screenshot gnome-screenshot
gnome screenshot gnome-screenshot
New contributor
New contributor
New contributor
asked 3 hours ago
rupertrupert
132
132
New contributor
New contributor
2
I don't think you're missing anything, it seems-c
and-f
don't work together.
– pomsky
3 hours ago
add a comment |
2
I don't think you're missing anything, it seems-c
and-f
don't work together.
– pomsky
3 hours ago
2
2
I don't think you're missing anything, it seems
-c
and -f
don't work together.– pomsky
3 hours ago
I don't think you're missing anything, it seems
-c
and -f
don't work together.– pomsky
3 hours ago
add a comment |
1 Answer
1
active
oldest
votes
The -f is cancelled by the -c:
OPTIONS
-c, --clipboard
Send the grab directly to the clipboard.
-f, --file=FILENAME
Save screenshot directly to this file.
The file will be stored in memory, not on disk, when -c is used: if you open Libreoffice writer and paste you will see your image.
How can I save and copy a screenshot at the same time?
edit1: bugreport #1446650 but nobody bothered to follow up on this.
edit2: I found a way around it by using xclip. Install with ...
sudo apt install xclip
and expand your command with a variable holding date and time and 2 commands:
DATE=`date '+%Y-%m-%d_%H:%M:%S'`
sleep 5 && gnome-screenshot -af $DATE && xclip -selection clipboard -t image/png -i $DATE
Thanks! That does work in terminal, but it's not working as a keyboard shortcut. Even more troubling than that, when I try to assign the shortcut to the printscreen key a screenshot is taken instead. I disabled the screenshot shortcuts so I'm not sure why I cant use the printscreen key.
– rupert
38 mins ago
Convert the code into a script, make it executable, and then assign a keyboard shortcut to that script.
– DK Bose
10 mins ago
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',
autoActivateHeartbeat: false,
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
});
}
});
rupert is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1135631%2fhow-can-i-save-and-copy-a-screenhot-at-the-same-time%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The -f is cancelled by the -c:
OPTIONS
-c, --clipboard
Send the grab directly to the clipboard.
-f, --file=FILENAME
Save screenshot directly to this file.
The file will be stored in memory, not on disk, when -c is used: if you open Libreoffice writer and paste you will see your image.
How can I save and copy a screenshot at the same time?
edit1: bugreport #1446650 but nobody bothered to follow up on this.
edit2: I found a way around it by using xclip. Install with ...
sudo apt install xclip
and expand your command with a variable holding date and time and 2 commands:
DATE=`date '+%Y-%m-%d_%H:%M:%S'`
sleep 5 && gnome-screenshot -af $DATE && xclip -selection clipboard -t image/png -i $DATE
Thanks! That does work in terminal, but it's not working as a keyboard shortcut. Even more troubling than that, when I try to assign the shortcut to the printscreen key a screenshot is taken instead. I disabled the screenshot shortcuts so I'm not sure why I cant use the printscreen key.
– rupert
38 mins ago
Convert the code into a script, make it executable, and then assign a keyboard shortcut to that script.
– DK Bose
10 mins ago
add a comment |
The -f is cancelled by the -c:
OPTIONS
-c, --clipboard
Send the grab directly to the clipboard.
-f, --file=FILENAME
Save screenshot directly to this file.
The file will be stored in memory, not on disk, when -c is used: if you open Libreoffice writer and paste you will see your image.
How can I save and copy a screenshot at the same time?
edit1: bugreport #1446650 but nobody bothered to follow up on this.
edit2: I found a way around it by using xclip. Install with ...
sudo apt install xclip
and expand your command with a variable holding date and time and 2 commands:
DATE=`date '+%Y-%m-%d_%H:%M:%S'`
sleep 5 && gnome-screenshot -af $DATE && xclip -selection clipboard -t image/png -i $DATE
Thanks! That does work in terminal, but it's not working as a keyboard shortcut. Even more troubling than that, when I try to assign the shortcut to the printscreen key a screenshot is taken instead. I disabled the screenshot shortcuts so I'm not sure why I cant use the printscreen key.
– rupert
38 mins ago
Convert the code into a script, make it executable, and then assign a keyboard shortcut to that script.
– DK Bose
10 mins ago
add a comment |
The -f is cancelled by the -c:
OPTIONS
-c, --clipboard
Send the grab directly to the clipboard.
-f, --file=FILENAME
Save screenshot directly to this file.
The file will be stored in memory, not on disk, when -c is used: if you open Libreoffice writer and paste you will see your image.
How can I save and copy a screenshot at the same time?
edit1: bugreport #1446650 but nobody bothered to follow up on this.
edit2: I found a way around it by using xclip. Install with ...
sudo apt install xclip
and expand your command with a variable holding date and time and 2 commands:
DATE=`date '+%Y-%m-%d_%H:%M:%S'`
sleep 5 && gnome-screenshot -af $DATE && xclip -selection clipboard -t image/png -i $DATE
The -f is cancelled by the -c:
OPTIONS
-c, --clipboard
Send the grab directly to the clipboard.
-f, --file=FILENAME
Save screenshot directly to this file.
The file will be stored in memory, not on disk, when -c is used: if you open Libreoffice writer and paste you will see your image.
How can I save and copy a screenshot at the same time?
edit1: bugreport #1446650 but nobody bothered to follow up on this.
edit2: I found a way around it by using xclip. Install with ...
sudo apt install xclip
and expand your command with a variable holding date and time and 2 commands:
DATE=`date '+%Y-%m-%d_%H:%M:%S'`
sleep 5 && gnome-screenshot -af $DATE && xclip -selection clipboard -t image/png -i $DATE
edited 1 hour ago
answered 1 hour ago
RinzwindRinzwind
211k28406541
211k28406541
Thanks! That does work in terminal, but it's not working as a keyboard shortcut. Even more troubling than that, when I try to assign the shortcut to the printscreen key a screenshot is taken instead. I disabled the screenshot shortcuts so I'm not sure why I cant use the printscreen key.
– rupert
38 mins ago
Convert the code into a script, make it executable, and then assign a keyboard shortcut to that script.
– DK Bose
10 mins ago
add a comment |
Thanks! That does work in terminal, but it's not working as a keyboard shortcut. Even more troubling than that, when I try to assign the shortcut to the printscreen key a screenshot is taken instead. I disabled the screenshot shortcuts so I'm not sure why I cant use the printscreen key.
– rupert
38 mins ago
Convert the code into a script, make it executable, and then assign a keyboard shortcut to that script.
– DK Bose
10 mins ago
Thanks! That does work in terminal, but it's not working as a keyboard shortcut. Even more troubling than that, when I try to assign the shortcut to the printscreen key a screenshot is taken instead. I disabled the screenshot shortcuts so I'm not sure why I cant use the printscreen key.
– rupert
38 mins ago
Thanks! That does work in terminal, but it's not working as a keyboard shortcut. Even more troubling than that, when I try to assign the shortcut to the printscreen key a screenshot is taken instead. I disabled the screenshot shortcuts so I'm not sure why I cant use the printscreen key.
– rupert
38 mins ago
Convert the code into a script, make it executable, and then assign a keyboard shortcut to that script.
– DK Bose
10 mins ago
Convert the code into a script, make it executable, and then assign a keyboard shortcut to that script.
– DK Bose
10 mins ago
add a comment |
rupert is a new contributor. Be nice, and check out our Code of Conduct.
rupert is a new contributor. Be nice, and check out our Code of Conduct.
rupert is a new contributor. Be nice, and check out our Code of Conduct.
rupert is a new contributor. Be nice, and check out our Code of Conduct.
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.
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%2f1135631%2fhow-can-i-save-and-copy-a-screenhot-at-the-same-time%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
I don't think you're missing anything, it seems
-c
and-f
don't work together.– pomsky
3 hours ago