mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-02-07 12:19:02 +00:00
17 lines
382 B
Plaintext
17 lines
382 B
Plaintext
![]() |
#!/usr/bin/env sh
|
||
|
|
||
|
# Parse various code from image selection with zbarimg and maim.
|
||
|
|
||
|
# Depedencies:
|
||
|
# * maim v5.6.3
|
||
|
# * zbarimg v0.23.1
|
||
|
# * GNU awk v5.1.0
|
||
|
# * perl v5.30.2
|
||
|
|
||
|
# This is a small script so pipeline fails can be accepted here.
|
||
|
set -o pipefail
|
||
|
|
||
|
notify-send "Select a region for the barcode (QR codes, ISBN, bar codes)"
|
||
|
maim -s | zbarimg - --quiet | perl -pe 's|(.+?):||'
|
||
|
|