[PATCH] Support clipboard on Wayland
Export this patch
---
scripts/copy-header | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/scripts/copy-header b/scripts/copy-header
index 61056ee..7eb2d33 100755
--- a/scripts/copy-header
@@ -1,3 +1,11 @@
#!/bin/sh
-license header `license list | fzf` $1 | xclip -sel clip
\ No newline at end of file
+header="$(license header `license list | fzf` $1)"
+
+if command -v wl-copy >/dev/null; then
+ wl-copy "$header"
+else
+ if command -v xclip >/dev/null; then
+ printf "$header" | xclip -sel clip
+ fi
+fi
--
2.29.2
This patch is for license project, I forgot to add that in the subject.
Sorry