Add disk usage module
This commit is contained in:
parent
e124a5182b
commit
cf7dabe5ee
@ -15,4 +15,5 @@
|
|||||||
#module_kernel "Kernel: " " | "
|
#module_kernel "Kernel: " " | "
|
||||||
#module_loadavg "Load Avg.: " " | "
|
#module_loadavg "Load Avg.: " " | "
|
||||||
#module_weather "Weather: " " | "
|
#module_weather "Weather: " " | "
|
||||||
|
#module_du "Disk Usage: " " | "
|
||||||
module_date "Date: " ""
|
module_date "Date: " ""
|
||||||
|
@ -37,3 +37,7 @@ module_loadavg() {
|
|||||||
module_weather() {
|
module_weather() {
|
||||||
export bar="${bar}${1}$(curl -s 'wttr.in/?format=1' | sed 's/.* //')${2}"
|
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}"
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user