Cleanup stuff

This commit is contained in:
2023-11-14 20:54:20 -08:00
parent a502b72299
commit 5d80c98c1f
12 changed files with 24 additions and 10 deletions

8
old/x11/copy-screen-text.sh Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env zsh
local text="$(maim -k -s -f png | tesseract stdin stdout -l eng 2>/dev/null)"
let char_count="$(printf '%s' "${text}" | wc -c)"
printf '%s' "${text}" | xclip -selection clipboard
notify-send -t 5000 "Coppied Text" "Coppied ${char_count} characters"