Update dmenumount

This commit is contained in:
Lawrence Steele 2018-11-05 02:09:28 -05:00 committed by GitHub
parent cb3c609ffa
commit a7bf33c764
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ getmount() { \
mountusb() { \
chosen="$(echo "$usbdrives" | dmenu -i -p "Mount which drive?" | awk '{print $2}')"
sudo -A mount "$chosen" && exit 0
getmount "/mnt /media /mount -maxdepth 3 -type d"
getmount "/mnt /media /mount /home -maxdepth 5 -type d"
sudo -A mount "$chosen" "$mp" && pgrep -x dunst && notify-send "$chosen mounted to $mp."
}