mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2025-09-06 11:31:38 +02:00
move some files around
This commit is contained in:
parent
df402becef
commit
5bc1b7fc2b
29 changed files with 197 additions and 247 deletions
26
other/scripts/desktop/ocr-screenshot.sh
Normal file
26
other/scripts/desktop/ocr-screenshot.sh
Normal file
|
@ -0,0 +1,26 @@
|
|||
langs="eng deu spa osd"
|
||||
langs=$(tesseract --list-langs | tail +2)
|
||||
first_menu="$langs exit"
|
||||
selection_menu1=$(echo $first_menu | rofi -sep " " -dmenu)
|
||||
|
||||
tmp_img=`mktemp`
|
||||
trap "rm $tmp_img*" EXIT
|
||||
|
||||
|
||||
echo $selection_menu1
|
||||
|
||||
case $selection_menu1 in
|
||||
"eng"|"deu"|"spa"|"osd"|"fra")
|
||||
tesseract_lang=$selection_menu1
|
||||
flameshot gui -p $tmp_img.png -d 100
|
||||
mogrify -modulate 100,0 -resize 400% $tmp_img.png
|
||||
;;
|
||||
"exit")
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
|
||||
tesseract $tmp_img.png $tmp_img &> /dev/null
|
||||
xclip -i $tmp_img.txt -selection clipboard
|
||||
exit
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue