fixes to Notifications
This commit is contained in:
@@ -17,7 +17,7 @@ grim -g "$geometry" "$dir/$file" || exit 1
|
||||
wl-copy -t image/png < "$dir/$file"
|
||||
|
||||
if command -v notify-send >/dev/null 2>&1; then
|
||||
notify-send -a Screenshot -i camera-photo "Screenshot saved" "$file"
|
||||
notify-send --app-name "Screenshot" --icon "camera-photo" -u normal "Area" "Screenshot saved $file"
|
||||
fi
|
||||
|
||||
# Open the editor if satty is available (blocks until it is closed).
|
||||
|
||||
@@ -10,5 +10,5 @@ geometry=$(slurp) || exit 1
|
||||
grim -g "$geometry" - | wl-copy -t image/png
|
||||
|
||||
if command -v notify-send >/dev/null 2>&1; then
|
||||
notify-send -a Screenshot -i camera-photo "Screenshot copied to clipboard"
|
||||
notify-send --app-name "Screenshot" --icon "camera-photo" -u normal "Area" "Screenshot copied to clipboard"
|
||||
fi
|
||||
|
||||
@@ -18,7 +18,7 @@ grim -o "$monitor" "$dir/$file" || exit 1
|
||||
wl-copy -t image/png < "$dir/$file"
|
||||
|
||||
if command -v notify-send >/dev/null 2>&1; then
|
||||
notify-send -a Screenshot -i camera-photo "Screenshot saved" "$file"
|
||||
notify-send --app-name "Screenshot" --icon "camera-photo" -u normal "Monitor" "Screenshot saved $file"
|
||||
fi
|
||||
|
||||
# Open the editor if satty is available (blocks until it is closed).
|
||||
|
||||
@@ -32,7 +32,7 @@ printf "%s" "$text" | wl-copy
|
||||
if command -v notify-send >/dev/null 2>&1; then
|
||||
# Truncate text preview for notification brevity
|
||||
preview=$(echo "$text" | head -n 3)
|
||||
notify-send -a "OCR" -i edit-select-all "Text Copied to Clipboard" "$preview"
|
||||
notify-send --app-name "Screenshot" --icon "edit-find" -u normal "OCR" "Text Copied to Clipboard:\n$preview"
|
||||
fi
|
||||
|
||||
# Install: sudo pacman -S grim slurp tesseract tesseract-data-eng wl-clipboard libnotify
|
||||
@@ -37,7 +37,7 @@ grim -g "$geometry" "$dir/$file" || exit 1
|
||||
wl-copy -t image/png < "$dir/$file"
|
||||
|
||||
if command -v notify-send >/dev/null 2>&1; then
|
||||
notify-send -a Screenshot -i camera-photo "Screenshot saved" "$file"
|
||||
notify-send --app-name "Screenshot" --icon "camera-photo" -u normal "Window" "Screenshot saved $file"
|
||||
fi
|
||||
|
||||
# Open the editor if satty is available (blocks until it is closed).
|
||||
|
||||
Reference in New Issue
Block a user