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.
Are you sure you don’t have xclip installed? Try running xclip -version to see. If you have it then xclip -o should work in a script. Alternatively you could use clipit -c, assuming you have that installed, but how it works will depend on how you have clipit configured.
The i3 edition uses clipit as a clipboard manager.
clipit is the answer i was looking for. Thank you @bill_t
I found one more problem with clipit. If it was launched via terminal it throws error Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita"
but a little searching brings solution. There was need of