commit 06204f5de7bde12dfa861a8a848dab5bc082cc56 parent 9f4137520f95465bc464563282c866218e33d5b8 Author: awy <awy@awy.one> Date: Thu, 20 Mar 2025 19:59:06 +0300 wmenu Diffstat:
M | .local/bin/dmenumountcifs | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.local/bin/dmenumountcifs b/.local/bin/dmenumountcifs @@ -1,12 +1,12 @@ #!/bin/sh -# Gives a dmenu prompt to mount unmounted local NAS shares for read/write. +# Gives a wmenu prompt to mount unmounted local NAS shares for read/write. # Requirements - "%wheel ALL=(ALL) NOPASSWD: ALL" # # Browse for mDNS/DNS-SD services using the Avahi daemon... -srvname=$(avahi-browse _smb._tcp -t | awk '{print $4}' | dmenu -i -p "Which NAS?") || exit 1 +srvname=$(avahi-browse _smb._tcp -t | awk '{print $4}' | wmenu -i -p "Which NAS?") || exit 1 notify-send "Searching for network shares..." "Please wait..." # Choose share disk... -share=$(smbclient -L "$srvname" -N | grep Disk | awk '{print $1}' | dmenu -i -p "Mount which share?") || exit 1 +share=$(smbclient -L "$srvname" -N | grep Disk | awk '{print $1}' | wmenu -i -p "Mount which share?") || exit 1 # Format URL... share2mnt=//"$srvname".local/"$share"