I built a little tool delivering similar operation, without applying xclip or xsel. stdout is copied into a clipboard and will be pasted once again during the terminal. See: I am employing Parcellite and xsel to copy the last dedicate information from Git to my clipboard supervisor (for some motive, https://petskyonline-onlinestrore.blogspot.com/2025/07/how-to-choose-and-maintain-perfect-dog.html