srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/umnt
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2025-09-24 05:01:20 +0200
committersrdusr <[email protected]>2025-09-24 05:01:20 +0200
commit553cb2204b0bf27afe13c6332f5679bbd47172a0 (patch)
tree75c86ff018122a682e0afd7a0e2a0228a63e44bd /umnt
parentb20e4e004be74884cc72c57a3128e36fd5177d7a (diff)
downloadscripts-553cb2204b0bf27afe13c6332f5679bbd47172a0.tar.gz
scripts-553cb2204b0bf27afe13c6332f5679bbd47172a0.zip
Update/Overhaul
Diffstat (limited to 'umnt')
-rwxr-xr-xumnt22
1 files changed, 0 insertions, 22 deletions
diff --git a/umnt b/umnt
deleted file mode 100755
index 6d9b788..0000000
--- a/umnt
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env bash
-# unmount disk
-set -e
-. ~/etc/colors/current
-
-lsblk -Po NAME,SIZE,MOUNTPOINT,FSTYPE,LABEL | while read -r a; do
- eval "$a"
-
- [ "$MOUNTPOINT" ] && ! grep -iq "\s$MOUNTPOINT\s" /etc/fstab &&
- printf "%-4s:%s:%s:<- %s\n" \
- "$NAME" \
- "$SIZE" \
- "${LABEL:-unnamed}" \
- "${MOUNTPOINT//$HOME/\~}"
-
- done | column -ts':' -o' ' | menu -p unmount | {
- read -r NAME _
- eval "$(lsblk -Po LABEL,MOUNTPOINT "/dev/$NAME")"
- notify-send summary "<span color='#$red'>$NAME: $LABEL</span>\n${MOUNTPOINT/$HOME/\~}"
- sudo umount "$MOUNTPOINT"
- sudo rmdir "$HOME/dev/$NAME" || :
-}