-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
won't preserve clipboard after copy source is closed #77
Comments
that's just a feature of wayland i believe. you could try a project like wl-clip-persist to fix it. apparently it works alongside cliphist |
thanks! I added |
quick update: I ended up using this command:
from here: Linus789/wl-clip-persist#7 |
I've had problems with wl-clip-persist too, so I just solved it by creating a script for clipboard persistence using cliphist #!/bin/sh
previous="$(cliphist list | head -1 | awk '{$1=null; print $0}')"
cliphist store
current="$(cliphist list | head -1 | awk '{$1=null; print $0}')"
if [ "$current" != "$previous" ]; then
cliphist list | head -1 | cliphist decode | wl-copy
fi and I just invoke it like this (where cliphist-persist is the script name) |
cliphist won't preserve the clipboard after the copy source is closed unless the picker is run
for example, I copied text from Brave Browser, and then closed it, and tried to paste, and no data was pasted.
it works if I open the picker first though...
am I just launching it wrong or something or is this a new feature?
i launch it like this:
The text was updated successfully, but these errors were encountered: