Get-Clipboard and Set-Clipboard should work on WaylandΒ #24507
Closed
Description
Summary of the new feature / enhancement
I want Get-Clipboard
and Set-Clipboard
to work on Wayland without xclip
.
Proposed technical implementation details (optional)
Currently, the description for Get-Clipboard
says this:
DESCRIPTION
> This cmdlet is not supported on macOS. The `Get-Clipboard` cmdlet gets the contents of the clipboard as text. Multiple lines of text are returned as an array of strings similar to
`Get-Content`.
> [!NOTE] > On Linux, this cmdlet requires the `xclip` utility to be in the path.
A similar thing is with Set-Clipboard
.
On Wayland, there's wl-copy
and wl-paste
which can be used to implement Set-Clipboard
and Get-Clipboard
respectively.