diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2022-07-31 12:39:36 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2022-07-31 12:39:36 +0200 |
commit | d53ce5574b0bfd6f78394f9469a043c04866ecdc (patch) | |
tree | b31d0bb729fb2d93a2e8ad0d0db14ad589c4c7a4 /dmenuUmount.sh | |
parent | 80aa1954df73bbe0b238cd2fd254cb179dbe3b0e (diff) | |
download | scripts-d53ce5574b0bfd6f78394f9469a043c04866ecdc.tar.gz scripts-d53ce5574b0bfd6f78394f9469a043c04866ecdc.zip |
Created dmenu wrapper and made all (hopefully) scripts compatible with vanilla dmenu.
Diffstat (limited to 'dmenuUmount.sh')
-rwxr-xr-x | dmenuUmount.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dmenuUmount.sh b/dmenuUmount.sh index d2c8fb3..3464591 100755 --- a/dmenuUmount.sh +++ b/dmenuUmount.sh @@ -10,7 +10,7 @@ # | |_| | | | | | | (_) | |_| | | | | |_\__ \ # \__,_|_| |_| |_|\___/ \__,_|_| |_|\__|___/ # -# Gives a dmenu prompt to umount mounted drives. +# Gives a dmenu prompt to unmount mounted drives. # Shows mounted partitions; select one to unmount. exclusionregex="\(/boot/efi\|/home\|/\)$" @@ -30,6 +30,6 @@ do done <<< "$list" [ "$drives" = "" ] && exit lines=$(echo "$drives" | wc -l) -chosen=$(echo "$drives" | dmenu -i -l "$lines" -p "Unmount which drive?" | awk '{print $2}') +chosen=$(echo "$drives" | dmenu -l "$lines" -p "Unmount which drive?" | awk '{print $2}') [ "$chosen" = "" ] && exit sudo umount "$chosen" && pgrep -x dunst && notify-send "$chosen unmounted." |