Change dunstify to notidy-send
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user