Eisa01 / mpv-scripts

This repository contain scripts I have made for mpv media player...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SmartCopyPaste: Wayland support

jnothan opened this issue · comments

Would it be possible to add simple Wayland support for Linux? I've done this by editing the optional configuration file with

linux_copy=wl-copy
linux_paste=wl-paste

As far as I know, most Wayland compositors integrate wl-clipboard, so it should be a pretty universal solution to use. The main script could perform a check whether the user is using X11 or Wayland with the XDG_SESSION_TYPE environment variable.

I believe having the optional configuration is enough.
Automatic detection based on Linux flavours seems a bit too much?