~zethra/public-inbox

Support clipboard on Wayland v1 APPLIED

Alexey Yerin: 1
 Support clipboard on Wayland

 1 files changed, 9 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~zethra/public-inbox/patches/14777/mbox | git am -3
Learn more about email & git

[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
+++ b/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