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:
@@ -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}')"
|
||||
|
Reference in New Issue
Block a user