Cleanup stuff
This commit is contained in:
8
old/x11/copy-screen-text.sh
Executable file
8
old/x11/copy-screen-text.sh
Executable 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"
|
Reference in New Issue
Block a user