blob: 3b59cd1084aef931c7be4e9b92c583634bcd2826 (
plain) (
blame)
1
2
3
4
5
|
#!/bin/sh
text="$(clipo | tesseract - stdout | sed '/^$/d')"
[ $? -gt 0 ] && exit 1
choice="$(printf -- "-\n%s" "$text" | dmenu -c)"
[ "$choice" ] && printf "%s" "$text" | clipp
|