Very general question, but proabbly there is a way to make this work in a KDE shortcut. Or a script. or some external program like CopyQ which I used for lots of things, but seemingly can’t make his action work.
bASICALLY tO aVOID tEXT lIKE tHIS
Cam I use sed to monitor the clipboard and modify it in the clipboard manager? Could be another dirty hack if the rest ain’t possible.