Please install
xclip
on your computer first. This script is dependent toxclip
package
- Open System Settings > Notifications > Application: Configure
- Spectacle > Configure Events
- Tick a checkbox on
Run command
- Put
/usr/bin/xclip -selection clipboard -t image/png -i ~/Pictures/$(ls ~/Pictures/ -c | head -n1); rm ~/Pictures/$(ls ~/Pictures/ -c | head -n1)
as value - Click Apply and OK
- Click Apply button
The screenshot will put into clipboard and will not written as a file. If you want to save it, just remove
rm ~/Pictures/$(ls ~/Pictures/ -c | head -n1)
from the script. I put it because most of the case I want to send it to chat rather than save it into my disk. If I want to save it as a file, I open theFile Manager
, paste it, give it a name, and then save it.