aboutsummaryrefslogtreecommitdiff
path: root/dmenuMount.sh
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2022-07-31 12:39:36 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2022-07-31 12:39:36 +0200
commitd53ce5574b0bfd6f78394f9469a043c04866ecdc (patch)
treeb31d0bb729fb2d93a2e8ad0d0db14ad589c4c7a4 /dmenuMount.sh
parent80aa1954df73bbe0b238cd2fd254cb179dbe3b0e (diff)
downloadscripts-d53ce5574b0bfd6f78394f9469a043c04866ecdc.tar.gz
scripts-d53ce5574b0bfd6f78394f9469a043c04866ecdc.zip
Created dmenu wrapper and made all (hopefully) scripts compatible with vanilla dmenu.
Diffstat (limited to 'dmenuMount.sh')
-rwxr-xr-xdmenuMount.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/dmenuMount.sh b/dmenuMount.sh
index f453078..d91888a 100755
--- a/dmenuMount.sh
+++ b/dmenuMount.sh
@@ -33,7 +33,7 @@ do
done <<< "$(lsblk -lp | grep "part $" )"
[[ "$mountable" = "" ]] && exit 1
lines=$(echo "$mountable" | wc -l)
-chosen=$(echo "$mountable" | dmenu -i -l "$lines" -p "Mount which drive?" | awk '{print $2}')
+chosen=$(echo "$mountable" | dmenu -l "$lines" -p "Mount which drive?" | awk '{print $2}')
[ "$chosen" == "" ] && exit 1
sudo mount "$chosen" && pgrep -x dunst && notify-send "$chosen mounted." && exit 0
@@ -46,7 +46,7 @@ do
directories="$directories$i. $line"$'\n'
done <<< "$(find /mnt "$HOME/mounts" -type d -maxdepth 3 -empty 2>/dev/null)"
lines=$(echo "$directories" | wc -l)
-mountpoint=$(echo "$directories" | dmenu -i -l "$lines" -p "Type in mount point." | awk '{print $2}')
+mountpoint=$(echo "$directories" | dmenu -l "$lines" -p "Type in mount point." | awk '{print $2}')
[ "$mountpoint" == "" ] && exit 1
if [[ ! -d "$mountpoint" ]]; then
prompt.sh "$mountpoint does not exist. Create it?" "sudo mkdir -p $mountpoint"