feat: added desktop notification to flameshot script

pull/243/head
Josh Moore 1 year ago
parent b95ef137cf
commit b9f2b40a86

@ -2,7 +2,7 @@
## * ass & cheek flameshot script * ## ## * ass & cheek flameshot script * ##
# #
# Required packages: flameshot, curl, xclip # Required packages: flameshot, curl, xclip, libnotify
# #
# Authors: # Authors:
# - ToxicAven (https://github.com/ToxicAven) # - ToxicAven (https://github.com/ToxicAven)
@ -60,6 +60,7 @@ if [ -f "$FILE" ]; then
# Copy the URL to clipboard (using printf instead of echo to avoid a newline) # Copy the URL to clipboard (using printf instead of echo to avoid a newline)
printf "%s" "$URL" | xclip -sel clip printf "%s" "$URL" | xclip -sel clip
echo "URL copied: $URL" echo "URL copied: $URL"
notify-send -a $(get_mode) -t 2000 "URL copied to clipboard" "<a href=\"$URL\">View in browser</a>"
# Delete local file # Delete local file
rm "$FILE" rm "$FILE"

Loading…
Cancel
Save