scripts/waybar/waybar-disk.sh

8 lines
333 B
Bash
Raw Normal View History

2020-09-11 15:00:39 +00:00
#!/bin/bash
2022-06-06 17:58:30 +00:00
notify-send -t 0 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'})"