From 21afb5a8f835a3b6607615f7bb14c3270269b2da Mon Sep 17 00:00:00 2001 From: Daniel Walter Date: Fri, 11 Mar 2016 12:18:23 +0100 Subject: Add diskusage support add support to show used disk for a given mountpoint --- config.def.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index a752f10..5f1d4db 100644 --- a/config.def.h +++ b/config.def.h @@ -20,14 +20,18 @@ static const char timeformat[] = "%y-%m-%d %H:%M:%S"; /* bar update interval in seconds (smallest value = 1) */ static unsigned int update_interval = 1; +/* mountpoint for diskusage */ +static const char mountpath[] = "/home"; + /* statusbar Possible arguments: - battery (battery percentage) - cpu_temperature (cpu temperature in degrees) - cpu usage (cpu usage in percent) - datetime (date and time) +- diskusage (disk usage in percent) - ram_usage (ram usage in percent) - volume (alsa volume and mute status in percent) - wifi_signal (wifi signal in percent) */ -#define FORMATSTRING "wifi %4s | bat %4s | cpu %4s %3s | ram %3s | vol %4s | %3s" -#define ARGUMENTS wifi_signal, battery, cpu_usage, cpu_temperature, ram_usage, volume, datetime +#define FORMATSTRING "wifi %4s | bat %4s | cpu %4s %3s | ram %3s | vol %4s | disk %4s | %3s" +#define ARGUMENTS wifi_signal, battery, cpu_usage, cpu_temperature, ram_usage, volume, diskusage, datetime -- cgit v1.2.3