I want the text copied from the mouse (clipboard or X selection), or copied with Ctrl+C, to be automatically transferred to a text file.
I am using a very good website for subtitling videos called VEED [1], which automatically generates subtitles from the audio, but it not allow, in the free version, to download the subtitle file in .SBV or .SRT format, with the captions and time periods. It is necessary to copy and paste each piece of caption and time period, one at a time. Therefore, I would like a way to facilitate this task, automatically transferring each piece of text and time copied for some text file.
The steps to follow are the same as the source in Glutanimate,Siddharth, but instead of using the program used in Glutanimate,Siddharth here the program given below should be used.
Before using the program, you must specify, in the program, the destination file of the copied text. In the case below, the destination file is
/home/jim-carrey/Desktop/your-file.txt
. The program is as follows:Dependencies :
sudo apt-get install xsel
You can use the pre-compiled clipnotify provided in the repository or compile yourself.
To compile clipnotify yourself :
sudo apt install git build-essential libx11-dev libxtst-dev
git clone https://github.com/cdown/clipnotify.git
cd clipnotify
sudo make
To USE :
chmod +x "automatic_transfer_copied_text.sh"
./automatic_transfer_copied_text.sh
/home/jim-carrey/Desktop/your-file.txt
.