I built a little Resource furnishing similar features, without having working with xclip or xsel. stdout is copied to your clipboard and can be pasted once again while in the terminal. See: Toys that mimic prey: Most toys want you to govern them to get a response from a cat, https://petskyonline-onlinestrore.blogspot.com/2025/07/how-to-choose-and-maintain-perfect-dog.html