Dmenu udevil fixed for Android
This commit is contained in:
parent
075e72026a
commit
2641d1b39e
|
@ -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."
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue