diff options
Diffstat (limited to 'home/dot_local/share/bin/executable_qrclip.tmpl')
| -rw-r--r-- | home/dot_local/share/bin/executable_qrclip.tmpl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/home/dot_local/share/bin/executable_qrclip.tmpl b/home/dot_local/share/bin/executable_qrclip.tmpl new file mode 100644 index 0000000..89d2bca --- /dev/null +++ b/home/dot_local/share/bin/executable_qrclip.tmpl @@ -0,0 +1,9 @@ +#!/usr/bin/env sh +{{- if eq .chezmoi.os "darwin" }} +tmp="$(mktemp)" +screencapture -i "$tmp" +zbarimg --raw --quiet "$tmp" +rm -f "$tmp" +{{- else if eq .chezmoi.os "linux" }} +maim -usb 4 -c 0,0,0 | zbarimg --raw --quiet - +{{- end }} |