Skip to content
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

wl-paste --watch works unexpectedly #226

Open
amitbha opened this issue Jun 14, 2024 · 0 comments
Open

wl-paste --watch works unexpectedly #226

amitbha opened this issue Jun 14, 2024 · 0 comments

Comments

@amitbha
Copy link

amitbha commented Jun 14, 2024

  • OS: CachyOS 6.9
  • DE: KDE Plasma 6

I want to monitor the clipboard and continuously save the new item to a file.

  1. wl-paste -w wl-paste -p | tee -a note.txt

    Problem: every item will output twice.

  2. wl-paste -w wl-paste -p | uniq | tee -a note.txt

    Problem: no output.
    Even if works, the uniq can't handle multi-line item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant