1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

black and white it is

This commit is contained in:
TiynGER
2020-05-29 18:31:15 +02:00
parent 3bef227e83
commit 9991393c8e
7 changed files with 15 additions and 14 deletions

View File

@@ -5,9 +5,10 @@
# $2 is optional icon, otherwise mountpoint will displayed
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
[ -z "$1" ] && exit
disk="/"
[ ! -z "$1" ] && disk="$1"
icon="$2"
[ -z "$2" ] && icon="$1"
[ -z "$2" ] && icon="$disk"
printf "%s: %s\n" "$icon" "$(df -h "$1" | awk ' /[0-9]/ {print $3 "/" $2}')"
printf "%s %s\n" "$icon" "$(df -h "$disk" | awk ' /[0-9]/ {print $3 "/" $2}')"