Adds qr code decode to act on last
This commit is contained in:
parent
313198d18f
commit
2d8a64c566
1 changed files with 9 additions and 0 deletions
|
@ -32,6 +32,7 @@ getSuggestions(){
|
||||||
screenshot)
|
screenshot)
|
||||||
printf "View\tsxiv\n"
|
printf "View\tsxiv\n"
|
||||||
printf "add shadow\tscreenshotAddShadow\n"
|
printf "add shadow\tscreenshotAddShadow\n"
|
||||||
|
printf "Decode QR Code\tscreenshotQRCode\n"
|
||||||
printf "OCR\tscreenshotOCR\n"
|
printf "OCR\tscreenshotOCR\n"
|
||||||
printf "Clipboard\tscreenshotClipboard\n"
|
printf "Clipboard\tscreenshotClipboard\n"
|
||||||
;;
|
;;
|
||||||
|
@ -89,6 +90,14 @@ screenshotClipboard(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
screenshotQRCode(){
|
||||||
|
file="$1"
|
||||||
|
zbarimg "$file" > "$file.txt"
|
||||||
|
head -n 1 "$file.txt" | xclip -selection clipboard
|
||||||
|
echo -n "$file.txt" | xclip -selection primary
|
||||||
|
notify-send "QR code" "Decoded"
|
||||||
|
}
|
||||||
|
|
||||||
passwordOTP(){
|
passwordOTP(){
|
||||||
password-manager "$1" otp
|
password-manager "$1" otp
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue