2020 09 15 automount an android device
found a sh script from youtuber Brodie Robertson
it’s automounting an android device
it’s need dmenu mtpfs
and it’s based on Arch Wiki MTP
#!/bin/sh Dir=$HOME/cell/ # Make the cell directory if it doesn't exist if [ ! -d "$Dir" ]; then mkdir "$Dir" fi # Select device Devices=$(simple-mtpfs -l) if [ ! -n "$Devices" ]; then notify-send "No devices found" exit else Device=$(echo "$Devices" | dmenu -p "Select device:" || notify-send "No device selected") Id=${Device%%:*} Name=${Device##*: } if [ !