Merge pull request #183 from TomJansen/dmenuumount

Android unmount fix
This commit is contained in:
Luke Smith 2019-02-02 13:10:52 -05:00 committed by GitHub
commit 6147810f18

View file

@ -13,7 +13,7 @@ unmountusb() {
unmountandroid() { \ unmountandroid() { \
chosen=$(awk '/simple-mtpfs/ {print $2}' /etc/mtab | dmenu -i -p "Unmount which device?") chosen=$(awk '/simple-mtpfs/ {print $2}' /etc/mtab | dmenu -i -p "Unmount which device?")
[ -z "$chosen" ] && exit [ -z "$chosen" ] && exit
fusermount -u "$chosen" && pgrep -x dunst && notify-send -i "$PIX/android.svg" "$chosen unmounted." sudo -A umount -l "$chosen" && pgrep -x dunst && notify-send -i "$PIX/android.svg" "$chosen unmounted."
} }
asktype() { \ asktype() { \