aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/dmenumountcifs
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-07-30 20:30:23 +0300
committerawy <awy@awy.one>2025-07-30 20:30:23 +0300
commit6a42018cf2d55f9a8e8f9809415556cd50028590 (patch)
tree93e6871b100832b6fd0942e4586729c7580270a3 /.local/bin/dmenumountcifs
parentbd77fbce81efc16fc91dd7cc9d9807e27d70d064 (diff)
downloadhyprdots-6a42018cf2d55f9a8e8f9809415556cd50028590.tar.gz
rofi
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"