Add disk usage module

This commit is contained in:
Emily Daemon 2022-04-09 12:35:11 +03:00
parent e124a5182b
commit cf7dabe5ee
2 changed files with 5 additions and 0 deletions

View File

@ -15,4 +15,5 @@
#module_kernel "Kernel: " " | "
#module_loadavg "Load Avg.: " " | "
#module_weather "Weather: " " | "
#module_du "Disk Usage: " " | "
module_date "Date: " ""

View File

@ -37,3 +37,7 @@ module_loadavg() {
module_weather() {
export bar="${bar}${1}$(curl -s 'wttr.in/?format=1' | sed 's/.* //')${2}"
}
module_du() {
export bar="${bar}${1}$(df -T / | awk '{if (NR!=1) {print $6}}')${2}"
}