aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2018-12-09 18:07:26 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2018-12-09 18:07:26 +0100
commitf28a3b624f84828a90524ccc7236678b4f4ddecc (patch)
treeaa550512676d3e318784128d2498b53a3ade8d45
parent9967d1555e65cc7fc75b540e55c40909440da7a8 (diff)
downloadscripts-f28a3b624f84828a90524ccc7236678b4f4ddecc.tar.gz
scripts-f28a3b624f84828a90524ccc7236678b4f4ddecc.zip
Fixed mounts notifications.
-rwxr-xr-xdmenuMount.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/dmenuMount.sh b/dmenuMount.sh
index 1e39427..7793aaa 100755
--- a/dmenuMount.sh
+++ b/dmenuMount.sh
@@ -1,15 +1,15 @@
#!/bin/bash
-# _
-# __| |_ __ ___ ___ _ __ _ _
+# _
+# __| |_ __ ___ ___ _ __ _ _
# / _` | '_ ` _ \ / _ \ '_ \| | | |
# | (_| | | | | | | __/ | | | |_| |
# \__,_|_| |_| |_|\___|_| |_|\__,_|
-# _
-# _ __ ___ ___ _ _ _ __ | |_ ___
+# _
+# _ __ ___ ___ _ _ _ __ | |_ ___
# | '_ ` _ \ / _ \| | | | '_ \| __/ __|
# | | | | | | (_) | |_| | | | | |_\__ \
# |_| |_| |_|\___/ \__,_|_| |_|\__|___/
-#
+#
#
# Gives a dmenu prompt to mount unmounted drives.
# If they're in /etc/fstab, they'll be mounted automatically.
@@ -30,7 +30,7 @@ done <<< "$(lsblk -lp | grep "part $" )"
lines=$(echo "$mountable" | wc -l)
chosen=$(echo "$mountable" | dmenu -i -l $lines -p "Mount which drive?" | awk '{print $2}')
[[ "$chosen" = "" ]] && exit 1
-mount "$chosen" && notify-send "$chosen mounted" && exit 0
+mount "$chosen" && pgrep -x dunst && notify-send "$chosen mounted" && exit 0
# Select mount point
directories=""