Clipboard to text file

Non release banter
Vic
Samurai
Samurai
Posts: 171
Joined: 10 Aug 2016, 05:36
Distribution: Porteux V-0.1 64 KDE
Location: Utopia in Tampa, Florida, USA

Clipboard to text file

Post#1 by Vic » 15 Feb 2025, 19:03

Hey everybody

I stumbled across this cool clipboard utility on the Arch forums. It creates two text files in /tmp : one for the current item and another for history.

It does not disable the regular clipboards so they are still usable.

I like to copy info from anywhere and have it automagically go to a text file. This is much easier than doing it manually by pasting directly to a .txt file.

https://bbs.archlinux.org/viewtopic.php?id=262202

https://github.com/karabaja4/arch/blob/ ... ts/clip.sh

I made a script to start Clip-2-Text (my name) which runs it in Konsole (KDE) and then opens the two text files in Dolphin.

I also made a text file containing two lines of "=====" that I paste between every selection as a visual separator for the history file.

An added bonus for me that I found: if I copy 1 or more items from Dolphin the paths appear in the current item .txt file and if I copy that text it appears in the history. I sometimes make outlines of file and folder hierarchies for various indexes and this script makes it very easy.

If anyone wants my scripts let me know and I will share them via GDrive.

Have fun

Vic