dotfiles/scripts/zbarimg-scan-barcode
2023-06-04 11:48:31 -06:00

7 lines
173 B
Bash
Executable file

#!/bin/sh
scrot -s "$HOME/.local/cache/barcode-%Y-%m-%d.png" || exit
zbarimg "$HOME/.local/cache/barcode-"*
# Delete created files
rm -rf $HOME/.local/cache/barcode-*.png