diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-09-20 00:33:13 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-09-20 00:33:13 +0200 |
commit | a7340387b8a0ebbedf975d4136d31e03606a399a (patch) | |
tree | 81bdac7365988b523dadaa818bec197b54205d96 /.local/bin/dmenuunmount | |
parent | 0e08e39f269d7ec1ead5441a2d749d746098af63 (diff) |
Update (un)mount usbs with doas
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}') |