I made a small Software giving very similar functionality, without having working with xclip or xsel. stdout is copied to your clipboard and might be pasted all over again from the terminal. See: If you do not want us to publish your artwork, you should mention it in your article https://loanbookmark.com/story20419986/dog-house-an-overview