aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/dmenumountcifs
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/dmenumountcifs')
-rwxr-xr-x.local/bin/dmenumountcifs6
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/dmenumountcifs b/.local/bin/dmenumountcifs
index 4832213..4b0590b 100755
--- a/.local/bin/dmenumountcifs
+++ b/.local/bin/dmenumountcifs
@@ -1,12 +1,12 @@
#!/bin/sh
-# Gives a mew prompt to mount unmounted local NAS shares for read/write.
+# Gives a rofi -dmenu 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}' | mew -i -p "Which NAS?") || exit 1
+srvname=$(avahi-browse _smb._tcp -t | awk '{print $4}' | rofi -dmenu -i -p "Which NAS?") || exit 1
notify-send "Searching for network shares..." "Please wait..."
# Choose share disk...
-share=$(smbclient -L "$srvname" -N | rg Disk | awk '{print $1}' | mew -i -p "Mount which share?") || exit 1
+share=$(smbclient -L "$srvname" -N | rg Disk | awk '{print $1}' | rofi -dmenu -i -p "Mount which share?") || exit 1
# Format URL...
share2mnt=//"$srvname".local/"$share"