SUMMARY I'd like to save a screenshot to clipboard without the GUI, but can't according to https://forum.kde.org/viewtopic.php?f=19&t=140137 because gnome-screenshot -c only outputs newlines to KDE's clipboard. STEPS TO REPRODUCE 1. Press printscreen key. OBSERVED RESULT Screenshot GUI appears instead of an image on the clipboard. EXPECTED RESULT Copy the screen like Windows 10 and Gnome 3. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Kubuntu 19.10 (available in About System) KDE Plasma Version: 5.16.5 KDE Frameworks Version: 5.62.0 Qt Version: 5.12.4 ADDITIONAL INFORMATION Kernel version: 4.15.0-1065-oem OS-type: 64-bit
you can reassign a newcommand to the printscreen key in the settings. For example, spectacle -b which saves it, without displayinging the GUI
cees@cees-XPS-13-9380:~$ spectacle -b org.kde.knotifications: Could not notify "newScreenshotSaved" by taskbar, notification has no associated widget ^C cees@cees-XPS-13-9380:~$ spectacle -b org.kde.knotifications: Could not notify "newScreenshotSaved" by taskbar, notification has no associated widget
(In reply to Cees Timmerman from comment #2) > cees@cees-XPS-13-9380:~$ spectacle -b > org.kde.knotifications: Could not notify "newScreenshotSaved" by taskbar, > notification has no associated widget > > ^C spectacle -b & sleep 1; killall spectacle
Also that saves a file but does NOT place it on the clipboard.
You can use spectacle -b -c to save it to the clipboard (in theory, however the -c isn't working for me) > org.kde.knotifications: Could not notify "newScreenshotSaved" by taskbar, > notification has no associated widget This should be just a warning that the notificatoin couldn't be displayed.
You can do so by adding a short key to the printscreen in you system's setting which executes spectacle -b -c or, if you wish to have no notification: spectacle -b -c -n (but this doesn't work with old versions, see #411263)
Fixed on Kubuntu 19.10 by: sudo add-apt-repository ppa:kubuntu-ppa/backports sudo apt update sudo apt upgrade System Settings, Shortcuts, Custom Shortcuts, rightclick tree, New, Global Shortcut, Command/URL, "Desktop to clipboard", Trigger, "Ctrl+Print", Action, "spectacle -bc". I couldn't manage to set Alt+Print by pressing Alt+Fn+PrtScr, but that's a different issue.
*** This bug has been marked as a duplicate of bug 375382 ***