Linus789 / wl-clip-persist

Keep Wayland clipboard even after programs close
MIT License
90 stars 3 forks source link

Add clipboard auto delete timer #2

Closed MrDisguised closed 5 months ago

MrDisguised commented 1 year ago

It will be awesome if the clipboard can delete history after a given interval.

Linus789 commented 1 year ago

That should be possible (I think) but would require an async rewrite, which isn’t as easy and straightforward as it might sound. I don’t have the time for that right now, but I’ll leave this issue open.

On further thought, the async rewrite is not actually a requirement, but not using async might impact performance.

MrDisguised commented 1 year ago

ic :(

Linus789 commented 5 months ago

I am sorry to inform you that I deem this feature to be out of scope. After thinking about this more, it does not make sense to restrict that option to wl-clip-persist, as other persons who dont wan't to use this application might want to clear their clipboard after a specified amount of time, too. Therefore, I think it should be its own program, and I'm confident that it would work alongside this application.

It seems like there are already some scripts for what you want: https://knrdl.github.io/posts/wayland-clipboard-clean/ It might have its disadvantages, but it might be good enough.