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.
 
 
 
 

55 lines
2.7 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
  10. *
  11. * battery_perc battery percentage battery name
  12. * battery_state battery charging state battery name
  13. * cpu_perc cpu usage in percent NULL
  14. * cpu_iowait cpu iowait 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. * ipv4 IPv4 address interface name
  25. * ipv6 IPv6 address interface name
  26. * kernel_release `uname -r` NULL
  27. * keyboard_indicators caps/num lock indicators NULL
  28. * load_avg load average format string
  29. * num_files number of files in a directory path
  30. * ram_free free memory in GB NULL
  31. * ram_perc memory usage in percent NULL
  32. * ram_total total memory size in GB NULL
  33. * ram_used used memory in GB NULL
  34. * run_command custom shell command command
  35. * swap_free free swap in GB NULL
  36. * swap_perc swap usage in percent NULL
  37. * swap_total total swap size in GB NULL
  38. * swap_used used swap in GB NULL
  39. * temp temperature in degree celsius sensor file
  40. * uid UID of current user NULL
  41. * uptime system uptime NULL
  42. * username username of current user NULL
  43. * vol_perc OSS/ALSA volume in percent "/dev/mixer"
  44. * wifi_perc WiFi signal in percent interface name
  45. * wifi_essid WiFi ESSID interface name
  46. */
  47. static const struct arg args[] = {
  48. /* function format argument */
  49. { datetime, "%s", "%F %T" },
  50. };