It would be quite nice to have a CLI key for spectacle to capture screenshot to a clipboard from CLI. Similar to -b, --background option, but instead of saving it ti a file, copy the screenshot to a clipboard without opening GUI.
*** This bug has been marked as a duplicate of bug 384830 ***
The duplicate of this bug (Bug 384830), is now a duplicate of Bug 375382 which will implement a hotkey for taking a screenshot and copying in one go. Un-duplicating, because a DBus-activated hotkey is not the same as a command line option. This should be added in a follow-up patch.
I created a patch for this. https://phabricator.kde.org/D10984 But there is a slight problem as linux seems to clear the clipboard when a program exits. So I suggest using klipper or another clipboard manager when you take screenshots in background.
Git commit ec5e918743e7a260cb5288699e611bd47ed70b28 by Nate Graham, on behalf of Karlo Dautović. Committed on 26/03/2019 at 18:33. Pushed by ngraham into branch 'Applications/19.04'. Add option to copy screenshot to clipboard in background mode Summary: Related: bug 393708 FIXED-IN: 19.04.0 Reviewers: #spectacle, ngraham Reviewed By: #spectacle, ngraham Subscribers: ngraham, davidre, #spectacle Tags: #spectacle Differential Revision: https://phabricator.kde.org/D19715 M +11 -2 src/ExportManager.cpp M +1 -1 src/ExportManager.h M +2 -1 src/Gui/KSMainWindow.cpp M +7 -1 src/Main.cpp M +17 -8 src/SpectacleCore.cpp M +2 -1 src/SpectacleCore.h https://commits.kde.org/spectacle/ec5e918743e7a260cb5288699e611bd47ed70b28