blob: 29ae8ce20f227a0f946460a513392f3e66537b9d (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
dir=$(mktemp --tmpdir -d)
trap "rm -rf '$dir'" EXIT INT TERM
file=$(mktemp --tmpdir="$dir" screenshot-XXXX.png)
flameshot gui --accept-on-select -r > "$file"
zbarimg --raw $file
|