summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmenumount
diff options
context:
space:
mode:
authormhdzli <50514359+mhdzli@users.noreply.github.com>2020-01-24 03:41:33 +0330
committerLuke Smith <luke@lukesmith.xyz>2020-01-23 19:11:33 -0500
commite32a1f5779f3626219316a57e796bfa6bf623b68 (patch)
tree5592d1c19d122fe4740b2c6ef58958a0a6eadb78 /.local/bin/dmenumount
parent858094ffd47aa40021def2d4f6545777b61e3bf4 (diff)
downloadeibhear-e32a1f5779f3626219316a57e796bfa6bf623b68.tar.gz
eibhear-e32a1f5779f3626219316a57e796bfa6bf623b68.tar.zst
eibhear-e32a1f5779f3626219316a57e796bfa6bf623b68.zip
Allow access to phone date (#462)
Sometimes android phones ask for permission to allow access to phone data
Diffstat (limited to '.local/bin/dmenumount')
-rwxr-xr-x.local/bin/dmenumount2
1 files changed, 2 insertions, 0 deletions
diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount
index 6784402..e01c7eb 100755
--- a/.local/bin/dmenumount
+++ b/.local/bin/dmenumount
@@ -31,6 +31,8 @@ mountusb() { \
mountandroid() { \
chosen=$(echo "$anddrives" | dmenu -i -p "Which Android device?" | cut -d : -f 1)
getmount "$HOME -maxdepth 3 -type d"
+ simple-mtpfs --device "$chosen" "$mp"
+ echo "OK" | dmenu -i -p "Tap Allow on your phone if it asks for permission and then press enter"
simple-mtpfs --device "$chosen" "$mp"
notify-send "🤖 Android Mounting" "Android device mounted to $mp."
}