commit adf08e119caba9414cc6659fb33f51753ccb18e3 parent 2604b36b427a93e92e018ace8ac4d1edccec9518 Author: awy <awy@awy.one> Date: Sun, 21 Dec 2025 04:52:21 +0300 centered Diffstat:
| M | .local/bin/mounter | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.local/bin/mounter b/.local/bin/mounter @@ -50,14 +50,14 @@ set -e test -n "$alldrives" # Feed all found drives to mew and get user choice. -chosen="$(echo "$alldrives" | mew -p "Mount which drive?" -i)" +chosen="$(echo "$alldrives" | mew -c -l 10 -p "Mount which drive?" -i)" # Function for prompting user for a mountpoint. getmount() { - mp="$(find /mnt /media /mount /home -maxdepth 1 -type d 2>/dev/null | mew -i -p "Mount this drive where?")" + mp="$(find /mnt /media /mount /home -maxdepth 1 -type d 2>/dev/null | mew -c -l 10 -i -p "Mount this drive where?")" test -n "$mp" if [ ! -d "$mp" ]; then - mkdiryn=$(printf "No\\nYes" | mew -i -p "$mp does not exist. Create it?") + mkdiryn=$(printf "No\\nYes" | mew -c -l 2 -i -p "$mp does not exist. Create it?") [ "$mkdiryn" = "Yes" ] && (mkdir -p "$mp" || doas_askpass mkdir -p "$mp") fi }