8 lines
333 B
Bash
Executable File
8 lines
333 B
Bash
Executable File
#!/bin/bash
|
|
|
|
notify-send -t 0 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'})"
|