more features
This commit is contained in:
parent
a065544233
commit
0aa9a9631c
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,12 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
scrot -s "$HOME/.local/cache/barcode-%Y-%m-%d.png" || exit
|
scrot -s "$HOME/.local/cache/barcode-%Y-%m-%d.png" || exit
|
||||||
zbarimg -q "$HOME/.local/cache/barcode-"*
|
OUTPUT="$(zbarimg -q "$HOME/.local/cache/barcode-"*)"
|
||||||
|
OUTPUT="${OUTPUT##QR-Code:}"
|
||||||
|
|
||||||
|
echo -n "$OUTPUT" | xsel -ib
|
||||||
|
echo "$OUTPUT"
|
||||||
|
notify-send -u low "QR code" "'$OUTPUT' copied to clipboard"
|
||||||
|
|
||||||
# Delete created files
|
# Delete created files
|
||||||
rm -rf $HOME/.local/cache/barcode-*.png
|
rm -rf $HOME/.local/cache/barcode-*.png
|
||||||
|
|
Loading…
Reference in a new issue