Add notifications to some scripts

This commit is contained in:
2023-05-18 01:19:56 -07:00
parent d2a2c0fd58
commit 27fa2aa9db
2 changed files with 13 additions and 4 deletions
+7 -1
View File
@@ -1,2 +1,8 @@
#!/usr/bin/env zsh
maim -k -s -f png | tesseract stdin stdout -l eng | xclip -selection clipboard
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"