A
A
Angry Developer2018-09-08 15:44:59
bash
Angry Developer, 2018-09-08 15:44:59

How to intercept the window?

I wrote a small utility called by hotkeys (bash + zenity + xsel), whose task is to search, store, insert snippets. And just at the moment of an insertion there were problems. I can send the necessary data set to the buffer, and then insert it manually.
But I would like to implement the following functionality:
- while calling the script using a hot key - get the value of the window that was active (previous window),
- after successful completion of the work - find the window and transfer data to it, i.e. perform an insert operation.
Any ideas where to dig and what packages can help with this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2018-12-14
kuzmin @sergueik

see
www.deanbodenham.com/learn/tmux-copy-pasting.html
or
https://superuser.com/questions/402403/gnu-screen-...
already knows how

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question