Dmenu udevil fixed for Android

This commit is contained in:
i.ortega 2020-04-28 14:11:51 +02:00
parent 075e72026a
commit 2641d1b39e
1 changed files with 2 additions and 2 deletions

View File

@ -70,12 +70,12 @@ mountandroid() { \
notify-send "🤖 Android Mounting" "Android device mounted to $ANDROID_MOUNTPOINT."
}
unmountandroid() { \
umountandroid() { \
chosen=$(awk '/simple-mtpfs/ {print $2}' /etc/mtab | \
dmenu -i -p "Unmount which device?")
[ -z "$chosen" ] && exit
# sudo -A umount -l "$chosen" && notify-send "🤖 Android unmounting" "$chosen unmounted."
fusermount -u "$ANDROID_MOUNTPOINT" \
fusermount -u "$chosen" \
&& notify-send "🤖 Android unmounting" "$chosen unmounted."
}