8 lines
328 B
Bash
Executable File
8 lines
328 B
Bash
Executable File
#!/bin/bash
|
|
|
|
notify-send Disks \
|
|
"$(lsblk -o NAME,SIZE,FSUSE%,MOUNTPOINT | grep -vP '^loop' | \
|
|
sed 's/MOUNTPOINT/MOUNT/' | sed -e 's/│ └─/+---/' | \
|
|
sed -e 's/ └─/+---/' | sed -e 's/├─/+-/' | sed -e 's/└─/+-/' | \
|
|
awk {'printf "%-20s %-7s %- 6s %-7s\n", $1, $2, $3, $4'})"
|