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

Support wofi #7

Open
Kommynct opened this issue May 16, 2020 · 3 comments
Open

Support wofi #7

Kommynct opened this issue May 16, 2020 · 3 comments

Comments

@Kommynct
Copy link

is there any way support for exporting the clipboard list to wofi could be added? It's quite possible that I'm just missing something though, and I apologize for my ignorance

@Kommynct
Copy link
Author

Kommynct commented May 16, 2020

Okay, i've gotten it to kind of work with
wl-clipboard-history -p "$(wl-clipboard-history -l 20 | wofi --dmenu --allow-images | cut -d ',' -f1)" | wl-copy

but I still have the following issues

  1. its a bit ugly (i can't figure out how to add a space to the comma after the number, I just want a numbered list of them starting from 1. but that's certainly my ignorance of cut)
  2. it can't display images
  3. it adds a newline to the end of whatever you select to be copied
  4. if there is an image it takes a while to load because it doesn't just load up a thumbnail of the image, it shows the whole images data on-screen rather than a thumbnailed equivalent

Any ideas?

@janza
Copy link
Owner

janza commented May 18, 2020

  1. The numbers are ids in the history database so it won't be possible to change the starting number. Wofi might have an option to format the input strings so you can remove the numbers?
  2. I don't think that wl-clipboard supports images, but maybe I'm wrong?
  3. You can use wl-copy -n at the end, the -n flag trims trailing whitespace

@Kommynct
Copy link
Author

wl-clipboard definitely supports images, but yeah, -n and input strings seem to be a wofi-side issue then. All there is to figure out is why --allow-images doesn't work.

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

2 participants