diff options
Diffstat (limited to '.local/bin/dmenuunmount')
-rwxr-xr-x | .local/bin/dmenuunmount | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/dmenuunmount b/.local/bin/dmenuunmount index 5006358..9018419 100755 --- a/.local/bin/dmenuunmount +++ b/.local/bin/dmenuunmount @@ -9,7 +9,7 @@ unmountusb() { chosen="$(echo "$drives" | dmenu -i -p "Unmount which drive?")" || exit 1 chosen="$(echo "$chosen" | awk '{print $1}')" [ -z "$chosen" ] && exit - sudo -A umount "$chosen" && notify-send "💻 USB unmounting" "$chosen unmounted." + doas umount "$chosen" && notify-send "💻 USB unmounting" "$chosen unmounted." } drives=$(lsblk -nrpo "name,type,size,mountpoint,label" | awk -F':' '{gsub(/ /,":")}$4!~/\/boot|\/efi|\/home$|SWAP/&&length($4)>1{printf "%s (%s) %s\n",$4,$3,$5}') |