aboutsummaryrefslogtreecommitdiff
path: root/dmenuUmount.sh
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2018-11-25 21:41:10 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2018-11-25 21:41:10 +0100
commit061c5efe58ab33deef712f7b8199efa7a3083352 (patch)
tree7f9581c6ad7dd891c4126f6f313505cc5e25fb18 /dmenuUmount.sh
parent02500565fa852dba828e9de91f34559cc0e41b1c (diff)
downloadscripts-061c5efe58ab33deef712f7b8199efa7a3083352.tar.gz
scripts-061c5efe58ab33deef712f7b8199efa7a3083352.zip
Cleaned mount scripts
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."