I’m trying to build a script that will save the complete contents of the clipboard to a file and then restore it later. Unfortunately I have discovered that the clipboard frequently contains multiple mime types at once. Per this thread, it seems like xclip
will not be able to do this. I have tried clipboard but found it to be buggy and difficult to work with; it was not able to handle images copied from Tumblr, for instance.
What can I use to store and retrieve the entire clipboard with all its multitudes? I want to do all this within Bash if it’s possible to do so. Failing that I will need quite detailed instructions as I do not know any other programming languages.