Fixed broken notifications
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user