You are not logged in.

#1 2013-05-14 12:29:02

mindfuckup
Member
From: Switzerland
Registered: 2012-07-04
Posts: 8
Website

Take Screenshot directly to Clipboard

Hello everybody

I use scrot to take screenshots. Usually i need them directly as an image file (.png or so).

Sometimes i like them directly in my clipboard. So: Is it also possible to take a screenshot directly into my local clipboard?

I like doing something like this:

$ scrot -s foo.png
$ xclip foo.png

Then I'd like to paste the image from the clipboard into Gimp/LibreOffice/${YourGuiSoftware}.

The only thing I saw was a Python Script (http://stackoverflow.com/questions/3571 … n-in-linux). Is there no Software in the Arch Linux Repositories to do this task?

Thanks for your answers.

Mindfuckup

Offline

#2 2013-05-14 15:03:18

mzneverdies
Member
Registered: 2012-02-04
Posts: 147

Re: Take Screenshot directly to Clipboard

Not exactly what you want, but editing ~/.bashrc and adding the following alias might (not sure) work

alias scrotclip= 'scrot -s ~/foo.png && xclip ~/foo.png && rm ~/foo.png'

On the next login, your user should be able to run scrotclip, which should run the posted commands on order.

Offline

#3 2013-05-14 15:13:21

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: Take Screenshot directly to Clipboard

loliclip -bi image/png < foobar.png

Offline

#4 2015-08-05 10:42:25

trollie
Member
Registered: 2015-08-05
Posts: 1

Re: Take Screenshot directly to Clipboard

<necro>

import png:- | xclip -selection c -t image/png

</necro>

Last edited by trollie (2015-08-05 10:43:47)

Offline

#5 2015-08-05 14:25:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 16,607

Re: Take Screenshot directly to Clipboard

Trollie, 

First, Welcome to Arch Linux.  Although your post is on relevant, I note that you know this is an old thread.
I shall, therefore, use this as an opportunity to bring this thread to a close.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB