Advertisement
Guest User

config.def.h

a guest
Oct 14th, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. /* See LICENSE file for copyright and license details. */
  2.  
  3. /* interval between updates (in ms) */
  4. const unsigned int interval = 1000;
  5.  
  6. /* text to show if no value can be retrieved */
  7. static const char unknown_str[] = "n/a";
  8.  
  9. /* maximum output string length */
  10. #define MAXLEN 2048
  11.  
  12. static const struct arg args[] = {
  13. /* function format argument */
  14. { disk_perc, " DSK:%s%%", "/home" },
  15. { cpu_perc, " CPU:%s%%", "NULL" },
  16. { ram_perc, " RAM:%s%%", "NULL" },
  17. { uptime, " UPT:%s", "NULL" },
  18. { battery_state, " BAT:%s", "BAT0" },
  19. { battery_perc, "%s%%", "BAT0" },
  20. { datetime, " %s", "%a %d %b %Y %H:%M" },
  21. };
  22.  
  23. /*
  24. * function description argument (example)
  25. *
  26. * battery_perc battery percentage battery name (BAT0)
  27. * NULL on OpenBSD/FreeBSD
  28. * battery_state battery charging state battery name (BAT0)
  29. * NULL on OpenBSD/FreeBSD
  30. * battery_remaining battery remaining HH:MM battery name (BAT0)
  31. * NULL on OpenBSD/FreeBSD
  32. * cpu_perc cpu usage in percent NULL
  33. * cpu_freq cpu frequency in MHz NULL
  34. * datetime date and time format string (%F %T)
  35. * disk_free free disk space in GB mountpoint path (/)
  36. * disk_perc disk usage in percent mountpoint path (/)
  37. * disk_total total disk space in GB mountpoint path (/")
  38. * disk_used used disk space in GB mountpoint path (/)
  39. * entropy available entropy NULL
  40. * gid GID of current user NULL
  41. * hostname hostname NULL
  42. * ipv4 IPv4 address interface name (eth0)
  43. * ipv6 IPv6 address interface name (eth0)
  44. * kernel_release `uname -r` NULL
  45. * keyboard_indicators caps/num lock indicators format string (c?n?)
  46. * see keyboard_indicators.c
  47. * keymap layout (variant) of current NULL
  48. * keymap
  49. * load_avg load average NULL
  50. * netspeed_rx receive network speed interface name (wlan0)
  51. * netspeed_tx transfer network speed interface name (wlan0)
  52. * num_files number of files in a directory path
  53. * (/home/foo/Inbox/cur)
  54. * ram_free free memory in GB NULL
  55. * ram_perc memory usage in percent NULL
  56. * ram_total total memory size in GB NULL
  57. * ram_used used memory in GB NULL
  58. * run_command custom shell command command (echo foo)
  59. * separator string to echo NULL
  60. * swap_free free swap in GB NULL
  61. * swap_perc swap usage in percent NULL
  62. * swap_total total swap size in GB NULL
  63. * swap_used used swap in GB NULL
  64. * temp temperature in degree celsius sensor file
  65. * (/sys/class/thermal/...)
  66. * NULL on OpenBSD
  67. * thermal zone on FreeBSD
  68. * (tz0, tz1, etc.)
  69. * uid UID of current user NULL
  70. * uptime system uptime NULL
  71. * username username of current user NULL
  72. * vol_perc OSS/ALSA volume in percent mixer file (/dev/mixer)
  73. * NULL on OpenBSD
  74. * wifi_perc WiFi signal in percent interface name (wlan0)
  75. * wifi_essid WiFi ESSID interface name (wlan0)
  76. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement