I assume (for this case) there is only text in the clipboard. How can I get access to what is saved in clipboard to use in script?
When I select some text and press the combination Ctrl-C -> text is in clipboard. But where is this text stored in my OS and how I could use it, but not with keyboard (Ctrl-V). I want that what is in clipboard was copied into bash script (or Python maybe).
I’ve searched for clues and found something like xclip (stackoverflow pipe-to-from-the-clipboard-in-bash-script) but
find / -name xclip throws nothing. So I don’t have xclip and Ctrl-C Ctrl-V combinations works fine what means that my OS have some way to work with copy/paste. Other searches point to urxvt (which am using) but there is no need to run terminal. I just want get what is inside clipboard register put into script to work with it and run it with some bindsym combination.
I hope you understand what I mean