Commit: ac5f999aec07961b39c0c3061882c1082ced0821 Parent: eeed60ece9b4f53bbf872b1836d402c4daded9f6 Author: Randy Palamar Date: Tue, 24 Oct 2023 10:13:38 -0600 bin: replace sx4 with selx upstream renamed sx4 to selx Diffstat:
M | bin/ocr | | | 4 | ++-- |
M | bin/screenshot | | | 8 | ++++---- |
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/bin/ocr b/bin/ocr @@ -1,7 +1,7 @@ #!/bin/sh # copy text from an image to the clipboard -# deps: tesseract sxot sx4 xclip +# deps: tesseract sxot selx xclip # you probably want the jpn.traineddata or jpn_vert.traineddata from here: # https://github.com/tesseract-ocr/tessdata # or the capture2text one here: @@ -26,7 +26,7 @@ done lang=${lang:-jpn} dpi=${dpi:-96} -sxot -g "$(sx4)" | +sxot -g "$(selx)" | tesseract stdin stdout \ --dpi $dpi -l $lang \ --tessdata-dir "$TESS_DATA" | diff --git a/bin/screenshot b/bin/screenshot @@ -16,15 +16,15 @@ OCR" case $(echo "$options" | dmenu -i -l 7 -p "Screenshot: ") in "area (copy)") - sxot -g "$(sx4)" | optipng-pipe | ${clip_cmd} ;; + sxot -g "$(selx)" | optipng-pipe | ${clip_cmd} ;; "current window (copy)") - sxot -g "$(sx4 -w "$(xdotool getactivewindow)")" | optipng-pipe | ${clip_cmd} ;; + sxot -g "$(selx -w "$(xdotool getactivewindow)")" | optipng-pipe | ${clip_cmd} ;; "full screen (copy)") sxot | optipng-pipe | ${clip_cmd} ;; "area") - sxot -g "$(sx4)" | optipng-pipe > "sel-${output}" ;; + sxot -g "$(selx)" | optipng-pipe > "sel-${output}" ;; "current window") - sxot -g "$(sx4 -w "$(xdotool getactivewindow)")" | optipng-pipe > "win-${output}" ;; + sxot -g "$(selx -w "$(xdotool getactivewindow)")" | optipng-pipe > "win-${output}" ;; "full screen") sxot | optipng-pipe > "full-${output}" ;; "OCR")