I am new to Plasma and I don't know how to take a screenshot. From what I've seen there isn't any shortcut for that so I would like to create one, if only I knew how to do it.
4 Answers
You can run the program called spectacle
.
In case you have to install it manually, just type the following command in your terminal and follow the instructions:
sudo apt install kde-spectacle
These keyboard shortcuts are the default in Kubuntu 20.04.1:
To take a screenshot of the entire screen (all displays), the keyboard shortcut is Shift + Prt Sc.
To take a screenshot of the active window, the keyboard shortcut is Super + Prt Sc.
Screenshots taken from keyboard shortcuts are automatically saved in ~/Pictures
.
You can customize the keyboard shortcuts for screenshots under System Settings > Shortcuts > Custom Shortcuts > Screenshots.
You can configure win+shift+s to take a screenshot using the steps below. The screenshot is copied to the clipboard so it can be pasted into other applications such as lowriter. The screenshots are also saved in a folder, ~/Pictures/screenshots , with a time stamp for later reference.
Steps
# Go to Custom Shortcuts
K Menu -> System Settings -> Workspace -> Shortcuts -> Custom Shortcuts
# Create a new custom group called Spectacle
-> Edit -> New Group -> give it a name, say, "Spectacle"
-> Click on the checkbox next to Spectacle
# create new custom shortcut(s)
-> Edit > New > Global Shortcut > Command/URL
--> Give it a name, say, "PrintScreen Clipboard Rectangular"
--> Comment: Copy the screenshot into clipboard and also save it to a file.
--> Trigger: Meta+Shift+S
# The output directory will be created if it does not already exist.
--> Action: Command/URL: spectacle -bcr -o "$HOME/Pictures/Screenshots/Screenshot from $(date +'%Y-%m-%d %H:%M:%S').png"
-> Apply
Once setup and after taking a couple of screenshots (using win+shift+s), you can see the files in ~/Pictures/Screenshots .
% ls -1 ~/Pictures/Screenshots
'Screenshot from 2023-04-24 17:32:36.png'
'Screenshot from 2023-04-24 18:14:57.png'
I tested this on Debian 11 (bullseye) using spectacle 20.12.3.
Ref:- https://forum.kde.org/viewtopic.php?t=140137 - I found the above solution here. I just aggregated it into a single post for easy reference. All the credit goes to the original authors.
Apart from Spectacle there's also xfce4-screenshooter which has the option 🞅 Host on Imgur:
spectacle
window offering to save it, or take another (with/without delay, include mouse pointer, area, current screen, both screens, etc).