Bug 375382 - Wish: DBus Function for copy to clipboard
Summary: Wish: DBus Function for copy to clipboard
Status: RESOLVED INTENTIONAL
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: HI wishlist
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords: usability
: 384830 405166 409690 416106 423366 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-01-21 17:21 UTC by Samim Pezeshki
Modified: 2023-05-02 22:22 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samim Pezeshki 2017-01-21 17:21:36 UTC
Hi,

I want to be able to take a screenshot and copy it to clipboard and assign a shortcut to it. Can we have a function for that?

Thanks,
Samim
Comment 1 Burkhard Lück 2017-01-22 08:18:47 UTC
(In reply to Samim Pezeshki from comment #0)
> 
> I want to be able to take a screenshot and copy it to clipboard and assign a
> shortcut to it. Can we have a function for that?
> 
We have that already:

https://docs.kde.org/stable5/en/kdegraphics/spectacle/additional-functionality.html

Copy To Clipboard
This button copies the current screenshot to the clipboard. You can also use the Ctrl+C keyboard shortcut for this.
Comment 2 Samim Pezeshki 2017-01-22 08:39:35 UTC
Thanks for the fast reply! 

I meant as a function to be able to create KDE shortcut to it. Like I have a shortcut which takes a full screenshot. In "Custom Shortcuts" in "System Settings" I have "org.kde.Spectacle" as remote application and "FullScreen" as function. Can I have a function like this to copy to clipboard?
Comment 3 Samim Pezeshki 2017-01-22 08:41:48 UTC
I achieved the same with my own shortcut to this command:

maim -s —format png /dev/stdout | xclip -selection clipboard -t image/png -i
Comment 4 Burkhard Lück 2017-01-22 09:58:33 UTC
(In reply to Samim Pezeshki from comment #2)
> 
> I meant as a function to be able to create KDE shortcut to it. Like I have a
> shortcut which takes a full screenshot. In "Custom Shortcuts" in "System
> Settings" I have "org.kde.Spectacle" as remote application and "FullScreen"
> as function. Can I have a function like this to copy to clipboard?

Seems we had a misunderstanding.
You want Custom Shortcuts -> org.kde.Spectacle -> FullScreen but copy to clipboard instead of save to the default folder defined in Spectacle?
Seems to be not possible afaik
You should reopen this and set importance + normal wishlist then
Comment 5 Christoph Feck 2017-01-25 02:38:51 UTC
Reopening.
Comment 6 Nate Graham 2018-01-31 04:43:01 UTC
There's a patch for this: https://phabricator.kde.org/D9117
Comment 7 null 2018-02-18 01:15:27 UTC
*** Bug 384830 has been marked as a duplicate of this bug. ***
Comment 8 tuxflo 2019-03-02 15:40:00 UTC
If someone is still looking for this feature: just use the tool flameshot. It copies the last Screenshot to the clipboard by default.
Comment 9 Patrick Silva 2019-03-07 12:42:23 UTC
*** Bug 405166 has been marked as a duplicate of this bug. ***
Comment 10 Henrique 2019-03-10 05:42:00 UTC
I'd just like to add that if this feature is implemented, I'd prefer for it to only save to clipboard, not save it to disk, because otherwise it'd feel like unnecessary clutter.
Comment 11 Nate Graham 2019-03-10 06:12:42 UTC
Yep, I think that's a given.
Comment 12 Darafei Praliaskouski 2019-04-06 08:50:46 UTC
Hi,

on ticket https://bugs.kde.org/show_bug.cgi?id=390415#c13 it is said this is not merged only because you try to save 70mb of memory. Please let this memory be used and the images copied to clipboard, this will bring more joy to the existence.
Comment 13 Nate Graham 2019-04-06 15:53:31 UTC
(In reply to Darafei Praliaskouski from comment #12)
> on ticket https://bugs.kde.org/show_bug.cgi?id=390415#c13 it is said this is
> not merged only because you try to save 70mb of memory. Please let this
> memory be used and the images copied to clipboard, this will bring more joy
> to the existence.
That issue was already fixed in Bug 393708. https://phabricator.kde.org/D9117is still open for other technical reasons.
Comment 14 Nate Graham 2019-07-17 14:21:05 UTC
*** Bug 409690 has been marked as a duplicate of this bug. ***
Comment 15 Nate Graham 2020-04-22 03:37:27 UTC
*** Bug 416106 has been marked as a duplicate of this bug. ***
Comment 16 Nate Graham 2020-06-23 19:04:26 UTC
*** Bug 423366 has been marked as a duplicate of this bug. ***
Comment 17 Noah Davis 2023-05-02 22:22:56 UTC
If the desire is to have a way to create a custom shortcut for taking a screenshot and automatically copying to clipboard, this can already be done by setting up a custom shortcut that uses Spectacle's CLI. This should be more convenient to use than DBus.