patches-mpvacious/use_xsel.patch

15 lines
536 B
Diff

diff -urN ../mpvacious/platform/nix.lua ./platform/nix.lua
--- ../mpvacious/platform/nix.lua 2024-06-28 22:39:00.110717010 -0400
+++ ./platform/nix.lua 2024-06-28 22:51:09.477937080 -0400
@@ -26,8 +26,8 @@
return handle.status == 0 and handle.stderr:match("xclip version") ~= nil
end
- self.clip_util = "xclip"
- self.clip_cmd = self.clip_util .. " -i -selection clipboard"
+ self.clip_util = "xsel"
+ self.clip_cmd = self.clip_util .. " --input --clipboard"
self.healthy = is_xclip_installed()
end