dotfiles/.local/scripts/0050_disk

10 lines
216 B
Bash
Executable File

#!/bin/bash
COLOR1="#00FF90"
COLOR2="#00A45D"
used=$(df -h / | sed -n '1!p' | cut -d' ' -f22)
total=$(df -h / | sed -n '1!p' | cut -d' ' -f16)
echo "^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^ $used/$total ^d^"