scripts/waybar/waybar-disk.sh

8 lines
328 B
Bash
Raw Normal View History

2020-09-11 15:00:39 +00:00
#!/bin/bash
notify-send Disks \
2020-11-23 09:35:26 +00:00
"$(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'})"