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
Enable Wayland, Windows, and macOS clipboard support #188
Comments
Hi @Slackadays. First of all, congrats for Clipboard! I really like it. True, the |
I was thinking of the alternate cases as an alternative implementation in comparison to Clipboard, but it would work either way. |
I'm thinking of something like this: #!/bin/sh
CLIP_APP=""
if type wl-copy > /dev/null 2>&1; then
CLIP_APP="wl-clipboard"
elif type xclip > /dev/null 2>&1; then
CLIP_APP="xclip"
elif type clipboard > /dev/null 2>&1; then
CLIP_APP="clipboard"
else
printf "clifm: No clipboard manager found\n" >&2
exit 1
fi
case "$CLIP_APP" in
"xclip") ... ;; # Here we add whatever command is appropriate for the current use case
"wl-clipboard") ... ;;
"clipboard") ... ;;
esac |
I've been spending a few hours trying to diagnose why Edit: I fixed it by going nuclear with uninstalling |
Yes, Thanks for pointing this out. I'll let you know as soon as I have a decent working version. |
Luckily, |
That's nice! However, since one of the options of the clip plugin is to import files in the clipboard to clifm's Selection Box, and since this latter requires absolute file names, I still need them to make the plugin fully functional. |
Hey @Slackadays, FYI, the default clipboard manager in Haiku is named EDIT: Yes, I'm aware you provide also a |
I've been playing around with cb --copy < files.txt works fine. However, I need
Maybe I'm missing something, but, is there a way to print raw data to STDOUT? |
@leo-arch The way you can send the contents to |
Great, working now. Getting a few errors nonetheless when trying to copy to the clipboard (files are actually copied, but...). cb --copy < $CLIFM_SELFILE Complains:
Why this? |
Did you build Clipboard in Debug mode? If so, then it spits out tons of messages every time it interfaces with a GUI clipboard. Also, what OS are you using in particular? |
Running on Arch and installed from the AUR ( |
According to the author of the original code for Wayland, the |
Happening outside clifm as well. Also, it might useful to note that these messages do not pop up at all when doing the same operations (copy-to/get-from clipboard) with other implementations ( |
I'll see what I can do to fix these issues, I just need to get myself an Arch/Manjaro VM first |
Just in case you need it, this is my setup: Arch |
Unfortunately, I'm unable to reproduce either of these errors either using Manjaro GNOME or KDE (both with X11 and Wayland), and the versions of Manjaro with i3/sway give blank screens in So, this makes me think this is an Arch issue stemming from its bleeding-edge nature compared to Manjaro. This might seem odd, but the implementations of X11/Wayland in Clipboard are reportedly spec-complete and cover everything that i3/sway/arch might not be covering. I can only guess why Edit: It might also be helpful if you added |
Hey @Slackadays, cross-platform support for the I think it's better to open a new issue in the Btw, as soon as thing thing gets fixed, I'll reenable |
|
Is your feature request related to a problem? Please describe.
If I want to use
clifm
's clip plugin on any system which doesn't have X11 andxclip
installed, I'm out of luck.Describe the solution you'd like
My project Clipboard supports X11/Wayland/Windows/macOS and is very similar to use as
xclip
. So, the solution I'd like is to replacexclip
in the clip.sh plugin withclipboard
to enable support across all of these platforms all at once.Describe alternatives you've considered
You could add cases where you use
wl-clipboard
andpbcopy/paste
andclip
to the clip.sh script.Additional context
I love the idea behind
clifm
and I love cross-platform compatibility, something which bothclifm
and Clipboard seem to be excelling at! 🥇Edit: Looks like clifm doesn't support Windows natively, but only through cygwin. This should still work because CB will be separate from the
clifm
binaryThe text was updated successfully, but these errors were encountered: