summaryrefslogtreecommitdiffstats
path: root/.scripts/i3cmds/dmenumount
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-12-23 13:14:05 -0500
committerLuke Smith <luke@lukesmith.xyz>2018-12-23 13:14:05 -0500
commitcf59e11ac49b3bd69503a1cd24150efa933f8537 (patch)
tree5423cadc1f63129d5add76d7faa5c1b475a6a0ae /.scripts/i3cmds/dmenumount
parent6922946855b4a3e66a5538b2f043127c5a989d5c (diff)
parent07576a0106cb269d620cf3691703caf3a0149386 (diff)
downloadeibhear-cf59e11ac49b3bd69503a1cd24150efa933f8537.tar.gz
eibhear-cf59e11ac49b3bd69503a1cd24150efa933f8537.tar.zst
eibhear-cf59e11ac49b3bd69503a1cd24150efa933f8537.zip
screen mirror ability
Diffstat (limited to '.scripts/i3cmds/dmenumount')
-rwxr-xr-x.scripts/i3cmds/dmenumount7
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() { \