diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-12-23 12:52:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-23 12:52:58 -0500 |
| commit | f48d2992fe11b8f3758449953383fd15001ceee7 (patch) | |
| tree | f545ba2843018d20a78e91197165f6fde7187aa3 | |
| parent | 6922946855b4a3e66a5538b2f043127c5a989d5c (diff) | |
| parent | 505113640df05c22405a13c37baf2d153f91afb5 (diff) | |
| download | eibhear-f48d2992fe11b8f3758449953383fd15001ceee7.tar.gz eibhear-f48d2992fe11b8f3758449953383fd15001ceee7.tar.zst eibhear-f48d2992fe11b8f3758449953383fd15001ceee7.zip | |
Merge pull request #165 from TomJansen/master
add vfat support to dmenumount
| -rwxr-xr-x | .scripts/i3cmds/dmenumount | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.scripts/i3cmds/dmenumount b/.scripts/i3cmds/dmenumount index 431141f..661a524 100755 --- a/.scripts/i3cmds/dmenumount +++ b/.scripts/i3cmds/dmenumount @@ -19,7 +19,12 @@ mountusb() { \ chosen="$(echo "$usbdrives" | dmenu -i -p "Mount which drive?" | awk '{print $1}')" sudo -A mount "$chosen" && notify-send "$chosen mounted." && exit 0 getmount "/mnt /media /mount /home -maxdepth 5 -type d" - sudo -A mount "$chosen" "$mp" && notify-send "$chosen mounted to $mp." + partitiontype="$(lsblk -no "fstype" "$chosen")" + case "$partitiontype" in + "vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;; + *) sudo -A mount "$chosen" "$mp";; + esac + notify-send "$chosen mounted to $mp." } mountandroid() { \ |
