Dotfiles for different machines on different branches.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
221 B

  1. #!/usr/bin/env sh
  2. # Status bar module for disk space
  3. # $1 should be drive mountpoint
  4. disk="/"
  5. [ ! -z "$1" ] && disk="$1"
  6. icon="$disk"
  7. printf " %s %s\n" "$icon" "$(df -h "$disk" | awk ' /[0-9]/ {print $3 "/" $2}')"