Change dunstify to notidy-send

This commit is contained in:
2022-02-06 21:45:41 +01:00
parent 2c108d1682
commit b1de90b743
9 changed files with 69 additions and 73 deletions

View File

@@ -48,13 +48,13 @@ drive=$(echo -e 'ESRF\nNAS' | rofi -dmenu -no-custom -p 'Drive:' -l 20);
if grep -qs "/home/thomas/mnt/$drive" /proc/mounts; then
umount "/home/thomas/mnt/$drive" && \
dunstify --replace=58249 "$drive" 'Successfully unmounted' || \
dunstify --replace=58249 --urgency=critical "$drive" 'Error while unmounted'
notify-send "$drive" 'Successfully unmounted' || \
notify-send --urgency=critical "$drive" 'Error while unmounted'
else
echo "It's not mounted."
mount "/home/thomas/mnt/$drive" && \
dunstify --replace=58249 "$drive" 'Successfully mounted' || \
dunstify --replace=58249 --urgency=critical "$drive" 'Error while mounted'
notify-send "$drive" 'Successfully mounted' || \
notify-send --urgency=critical "$drive" 'Error while mounted'
fi
#+end_src