Asked on Super User by Davide, 4 years ago. No reply there for at least a week.
How do I copy a string into the midlle mouse button from GUI in Ubuntu?
I have a terminal script (let's call it otp_to_xclip.sh ) which makes use of xclip to place a string into the middle mouse button clipboard: #!/usr/bin/bash otp_to_terminal.sh | xclip Now, to paste the string from the clipboard into the form where I need it, I need to open a terminal run otp_to_xclip.sh center-click in the form to paste the string close the terminal window This is already an improvement wrt running the otp_to_terminal.sh and selecting its output on the terminal, but I would prefer something which avoids steps 2 and 4 too.
This question is one of 1 report of the same problem:
How do I copy a string into the midlle mouse button from GUI in Ubuntu?
Nobody has answered it yet, here or anywhere.
Related problems
Question by Davide on Super User, licensed CC BY-SA. We show a short excerpt and link to the original thread as credit.