aboutsummaryrefslogtreecommitdiff
path: root/dmenuUmount.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dmenuUmount.sh')
-rw-r--r--dmenuUmount.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/dmenuUmount.sh b/dmenuUmount.sh
index ecc5160..99e60db 100644
--- a/dmenuUmount.sh
+++ b/dmenuUmount.sh
@@ -21,10 +21,8 @@ do
i=$((i+1))
drives="$drives$i. $( echo "$line" | awk '{print $1, "(" $4 ")", "on", $7}' )"$'\n'
done <<< "$(lsblk -lp | grep "part /" | grep -v "$exclusionregex" )"
-
[[ "$drives" = "" ]] && exit
lines=$(echo "$drives" | wc -l)
chosen=$(echo "$drives" | dmenu -i -l $lines -p "Unmount which drive?" | awk '{print $2}')
[[ "$chosen" = "" ]] && exit
umount $chosen && pgrep -x dunst && notify-send "$chosen unmounted."
-#umount $chosen && notify-send "$chosen unmounted."