blob: 89d2bca3bc9e4f17d36a346b07ee908ec73e0227 (
plain)
1
2
3
4
5
6
7
8
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 }}
|