dotfiles/.local/scripts/0050_5_disk

10 lines
216 B
Plaintext
Raw Normal View History

2022-08-14 02:10:53 +08:00
#!/bin/bash
2022-08-16 18:50:49 +08:00
COLOR1="#00FF90"
COLOR2="#00A45D"
2022-08-14 02:10:53 +08:00
used=$(df -h / | sed -n '1!p' | cut -d' ' -f22)
total=$(df -h / | sed -n '1!p' | cut -d' ' -f16)
2022-08-16 18:50:49 +08:00
echo "^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^ $used/$total ^d^"