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

use another tools instead of xclip on some operating systems #98

Closed
unxed opened this issue Mar 2, 2023 · 3 comments
Closed

use another tools instead of xclip on some operating systems #98

unxed opened this issue Mar 2, 2023 · 3 comments

Comments

@unxed
Copy link
Contributor

unxed commented Mar 2, 2023

pbcopy and pbpaste should be used under MacOS.

Also there are separate tools for WSL and Cygwin environments. Full list here:
https://gist.github.com/RichardBronosky/56d8f614fab2bacdd8b048fb58d0c0c7#file-cb

For Wayland:

    cat | wl-copy
    wl-paste
@magiblot
Copy link
Owner

magiblot commented Mar 3, 2023

Hi @unxed!

pbcopy/pbpaste are already being used on MacOS and wl-copy/wl-paste (part of the wl-clipboard package) are already being used in Wayland sessions (unixcon.cpp).

Cygwin is not supported, so the only case that's missing is WSL. Thanks for the suggestion.

@unxed
Copy link
Contributor Author

unxed commented Mar 3, 2023

Probably full paths in WSL are not required, try

    cat | clip
    powershell Get-Clipboard | sed 's/\r//'

first

@magiblot
Copy link
Owner

magiblot commented Oct 1, 2023

In WSL, PowerShell was so slow and required so many workarounds that I switched to CScript. Pasting still takes a short delay but it is now a lot better.

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