Fixed broken notifications

This commit is contained in:
edwark43
2025-03-17 20:09:32 -04:00
parent 69da425885
commit dd6bae7680
4 changed files with 8 additions and 8 deletions

View File

@@ -9,9 +9,9 @@ filename="$dir/ss-${timestamp}.png"
show_notification() {
if [[ -e "$filename" ]]; then
dunstify --replace=699 -i "$filename" "Screenshot" "Screenshot saved and copied to clipboard"
notify-send -r 699 -i "$filename" "Screenshot" "Screenshot saved and copied to clipboard"
else
dunstify --replace=699 -i custom-trash-bin "Screenshot" "Screenshot Canceled"
notify-send -r 699 -i user-trash "Screenshot" "Screenshot Canceled"
fi
}
@@ -23,7 +23,7 @@ take_screenshot() {
countdown() {
for sec in $(seq "$1" -1 1); do
dunstify -t 1000 --replace=699 -i ~/.local/misc/share/assets/screenshot.svg "Taking screenshot in : $sec"
notify-send -t 1000 -r 699 -i ~/.local/misc/share/assets/screenshot.svg "Taking screenshot in : $sec"
sleep 1
done
}