Adds qr code decode to act on last

master
Jonathan Hodgson 6 months ago
parent 828f724a54
commit 6e30aaa633
  1. 9
      bin/.bin/dmenu/actOnLast

@ -32,6 +32,7 @@ getSuggestions(){
screenshot)
printf "View\tsxiv\n"
printf "add shadow\tscreenshotAddShadow\n"
printf "Decode QR Code\tscreenshotQRCode\n"
printf "OCR\tscreenshotOCR\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(){
password-manager "$1" otp
}

Loading…
Cancel
Save