mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 22:19:45 +00:00
Fixed disksize module
This commit is contained in:
parent
f5a2b06081
commit
b09384fac8
1 changed files with 3 additions and 3 deletions
|
@ -6,9 +6,9 @@ PREFIX=' '
|
|||
|
||||
get_disk()
|
||||
{
|
||||
TOTAL_SIZE=$( df -h --total / | tail -1 | awk {'printf $2'})
|
||||
USED_SIZE=$(df -h --total / | tail -1 | awk {'printf $3'})
|
||||
PERCENTAGE=$(df -h --total / | tail -1 | awk {'printf $5'})
|
||||
TOTAL_SIZE=$( df -h --total | tail -1 | awk {'printf $2'})
|
||||
USED_SIZE=$(df -h --total | tail -1 | awk {'printf $3'})
|
||||
PERCENTAGE=$(df -h --total | tail -1 | awk {'printf $5'})
|
||||
|
||||
echo "$PREFIX$USED_SIZE/$TOTAL_SIZE ($PERCENTAGE)"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue