aboutsummaryrefslogtreecommitdiff
path: root/mnt
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-09-24 05:01:20 +0200
committersrdusr <trevorgray@srdusr.com>2025-09-24 05:01:20 +0200
commit553cb2204b0bf27afe13c6332f5679bbd47172a0 (patch)
tree75c86ff018122a682e0afd7a0e2a0228a63e44bd /mnt
parentb20e4e004be74884cc72c57a3128e36fd5177d7a (diff)
downloaddotfiles-553cb2204b0bf27afe13c6332f5679bbd47172a0.tar.gz
dotfiles-553cb2204b0bf27afe13c6332f5679bbd47172a0.zip
Update/Overhaul
Diffstat (limited to 'mnt')
-rwxr-xr-xmnt27
1 files changed, 0 insertions, 27 deletions
diff --git a/mnt b/mnt
deleted file mode 100755
index dc19ca9..0000000
--- a/mnt
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env bash
-# mount disk
-set -e
-. ~/etc/colors/current
-
-d() case $LABEL in
-Windows) echo "/win" ;;
-*) echo "${1:-$HOME}/dev/$NAME" ;;
-esac
-
-lsblk -Po NAME,SIZE,MOUNTPOINT,FSTYPE,LABEL | while read -r a; do
- eval "$a"
-
- [ "$FSTYPE" ] && [ ! "$MOUNTPOINT" ] &&
- printf "%-4s:%s:%s:-> %s\n" \
- "$NAME" \
- "$SIZE" \
- "${LABEL:-unnamed}" \
- "$(d \~)"
-
-done | column -ts':' -o' ' | menu -p mount | {
- read -r NAME _
- eval "$(lsblk -Polabel "/dev/$NAME")"
- mkdir -p "$(d)"
- sudo mount -o "umask=000" "/dev/$NAME" "$(d)"
- notify-send summary "<span color='#$green'>$NAME: $LABEL</span>\n$(d \~)"
-}