config.def.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* See LICENSE file for copyright and license details. */
  2. /* interval between updates (in ms) */
  3. static const int interval = 1000;
  4. /* text to show if no value can be retrieved */
  5. static const char unknown_str[] = "n/a";
  6. /* maximum output string length */
  7. #define MAXLEN 2048
  8. /*
  9. * function description argument
  10. *
  11. * battery_perc battery percentage battery name
  12. * battery_power battery power usage battery name
  13. * battery_state battery charging state battery name
  14. * cpu_perc cpu usage in percent NULL
  15. * cpu_freq cpu frequency in MHz NULL
  16. * datetime date and time format string
  17. * disk_free free disk space in GB mountpoint path
  18. * disk_perc disk usage in percent mountpoint path
  19. * disk_total total disk space in GB mountpoint path
  20. * disk_used used disk space in GB mountpoint path
  21. * entropy available entropy NULL
  22. * gid GID of current user NULL
  23. * hostname hostname NULL
  24. * ip IPv4 address interface name
  25. * kernel_release `uname -r` NULL
  26. * keyboard_indicators caps/num lock indicators NULL
  27. * load_avg load average NULL
  28. * num_files number of files in a directory path
  29. * ram_free free memory in GB NULL
  30. * ram_perc memory usage in percent NULL
  31. * ram_total total memory size in GB NULL
  32. * ram_used used memory in GB NULL
  33. * run_command custom shell command command
  34. * swap_free free swap in GB NULL
  35. * swap_perc swap usage in percent NULL
  36. * swap_total total swap size in GB NULL
  37. * swap_used used swap in GB NULL
  38. * temp temperature in degree celsius sensor file
  39. * uid UID of current user NULL
  40. * uptime system uptime NULL
  41. * username username of current user NULL
  42. * vol_perc OSS/ALSA volume in percent "/dev/mixer"
  43. * wifi_perc WiFi signal in percent interface name
  44. * wifi_essid WiFi ESSID interface name
  45. */
  46. static const struct arg args[] = {
  47. /* function format argument */
  48. { cpu_perc, "[CPU %3s%%] ", NULL },
  49. { ram_perc, "[RAM %2s%%] ", NULL },
  50. { datetime, "[ %s ]", "%F %T" },
  51. };