Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- fm_text_search(){
- ocr_pic "$*"
- operation="$(fzf --layout=reverse --header="${*##*/}" --header-lines=1 <<< '
- 🔍 search text
- 🖊 edit text
- 🌓 convert format
- 📎 send to
- ℑ𝖉 style
- ✅ Done')"
- }
- while [ ! "$finished" ]; do
- operation="$(fzf --layout=reverse --header="${*##*/}" --header-lines=1 <<< '
- 💫 quick edit
- 🔳 copy image
- 👣 copy path
- 💬 copy image text
- 🐶 Gimp
- 🎨 Krita
- 🎩 convert format
- 📜 print
- 🔬 search by image
- 📎 send (generic)
- 💌 send (image)
- Æ▫ steg
- 😎 filter
- ✅ Done')"
- operation="${operation:-"✅ Done"}"
- case "$operation" in
- *" quick edit" ) ksnip --edit "$*" ;;
- *" Gimp" ) gimp -- "$*" ;;
- *" Krita" ) krita -- "$*" ;;
- *" copy image" ) copyq write image/png - -- < "$*" ;;
- *" copy path" ) xsel --primary <<< "$*"; xsel --clipboard <<< "$*" ;;
- *" copy image text") ocr_pic "$*" ;;
- *" convert format" ) ~/.local/bin/scripts/fmenu-pics-convert "$*" ;;
- *" print" ) ~/.local/bin/scripts/fmenu-quickprint "$*" ;;
- *" send (generic)" ) ~/.local/bin/scripts/fmenu-send-regular "$*" ;;
- *" filter" ) ~/.local/bin/scripts/fmenu-pics-filter "$*" ;;
- *" search by image") google_image_search "$*" ;;
- *" Done" ) finished=true ;;
- esac; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement