Disk: Print filesystem type
This commit is contained in:
parent
4cf108015c
commit
17e9fa7774
1 changed files with 6 additions and 2 deletions
8
neofetch
8
neofetch
|
@ -1550,10 +1550,14 @@ get_disk() {
|
|||
(( "${#disk_used}" == 6 )) && disk_used="${disk_used:0:1}.${disk_used:1:1}TB"
|
||||
(( "${#disk_total}" == 6 )) && disk_total="${disk_total:0:1}.${disk_total:1:1}TB"
|
||||
|
||||
disk_total_per="${disks[11]}"
|
||||
# Get the filesystem type
|
||||
disk_type="[$(awk '$2 == "/" {printf $3; exit}' /etc/fstab)]"
|
||||
|
||||
# Get the usage percentage
|
||||
disk_total_per="(${disks[11]})"
|
||||
|
||||
# Put it all together
|
||||
disk="${disk_used} / ${disk_total} (${disk_total_per})"
|
||||
disk="${disk_used} / ${disk_total} ${disk_total_per} ${disk_type}"
|
||||
|
||||
# Bar
|
||||
case "$disk_display" in
|
||||
|
|
Loading…
Reference in a new issue