My slstatus configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

57 lines
2.9 KiB

  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 (example)
  10. *
  11. * battery_perc battery percentage battery name (BAT0)
  12. * battery_state battery charging state battery name (BAT0)
  13. * cpu_perc cpu usage in percent NULL
  14. * cpu_freq cpu frequency in MHz NULL
  15. * datetime date and time format string (%F %T)
  16. * disk_free free disk space in GB mountpoint path (/)
  17. * disk_perc disk usage in percent mountpoint path (/)
  18. * disk_total total disk space in GB mountpoint path (/")
  19. * disk_used used disk space in GB mountpoint path (/)
  20. * entropy available entropy NULL
  21. * gid GID of current user NULL
  22. * hostname hostname NULL
  23. * ipv4 IPv4 address interface name (eth0)
  24. * ipv6 IPv6 address interface name (eth0)
  25. * kernel_release `uname -r` NULL
  26. * keyboard_indicators caps/num lock indicators NULL
  27. * load_avg load average format string
  28. * (%.2f %.2f %.2f)
  29. * num_files number of files in a directory path
  30. * (/home/foo/Inbox/cur)
  31. * ram_free free memory in GB NULL
  32. * ram_perc memory usage in percent NULL
  33. * ram_total total memory size in GB NULL
  34. * ram_used used memory in GB NULL
  35. * run_command custom shell command command (echo foo)
  36. * swap_free free swap in GB NULL
  37. * swap_perc swap usage in percent NULL
  38. * swap_total total swap size in GB NULL
  39. * swap_used used swap in GB NULL
  40. * temp temperature in degree celsius sensor file
  41. * (/sys/class/thermal/...)
  42. * uid UID of current user NULL
  43. * uptime system uptime NULL
  44. * username username of current user NULL
  45. * vol_perc OSS/ALSA volume in percent mixer file (/dev/mixer)
  46. * wifi_perc WiFi signal in percent interface name (wlan0)
  47. * wifi_essid WiFi ESSID interface name (wlan0)
  48. */
  49. static const struct arg args[] = {
  50. /* function format argument */
  51. { datetime, "%s", "%F %T" },
  52. };