My slstatus configuration
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

config.def.h 3.6 KiB

há 8 anos
há 8 anos
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* See LICENSE file for copyright and license details. */
  2. /* interval between updates (in ms) */
  3. const unsigned 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. * backlight_perc backlight percentage device name
  12. * (intel_backlight)
  13. * battery_perc battery percentage battery name (BAT0)
  14. * NULL on OpenBSD
  15. * battery_state battery charging state battery name (BAT0)
  16. * NULL on OpenBSD
  17. * battery_remaining battery remaining HH:MM battery name (BAT0)
  18. * NULL on OpenBSD
  19. * cpu_perc cpu usage in percent NULL
  20. * cpu_freq cpu frequency in MHz NULL
  21. * datetime date and time format string (%F %T)
  22. * disk_free free disk space in GB mountpoint path (/)
  23. * disk_perc disk usage in percent mountpoint path (/)
  24. * disk_total total disk space in GB mountpoint path (/")
  25. * disk_used used disk space in GB mountpoint path (/)
  26. * entropy available entropy NULL
  27. * gid GID of current user NULL
  28. * hostname hostname NULL
  29. * ipv4 IPv4 address interface name (eth0)
  30. * ipv6 IPv6 address interface name (eth0)
  31. * kernel_release `uname -r` NULL
  32. * keyboard_indicators caps/num lock indicators NULL
  33. * keymap layout (variant) of current NULL
  34. * keymap
  35. * load_avg load average NULL
  36. * netspeed_rx receive network speed interface name (wlan0)
  37. * netspeed_tx transfer network speed interface name (wlan0)
  38. * num_files number of files in a directory path
  39. * (/home/foo/Inbox/cur)
  40. * ram_free free memory in GB NULL
  41. * ram_perc memory usage in percent NULL
  42. * ram_total total memory size in GB NULL
  43. * ram_used used memory in GB NULL
  44. * run_command custom shell command command (echo foo)
  45. * swap_free free swap in GB NULL
  46. * swap_perc swap usage in percent NULL
  47. * swap_total total swap size in GB NULL
  48. * swap_used used swap in GB NULL
  49. * temp temperature in degree celsius sensor file
  50. * (/sys/class/thermal/...)
  51. * NULL on OpenBSD
  52. * uid UID of current user NULL
  53. * uptime system uptime NULL
  54. * username username of current user NULL
  55. * vol_perc OSS/ALSA volume in percent mixer file (/dev/mixer)
  56. * wifi_perc WiFi signal in percent interface name (wlan0)
  57. * wifi_essid WiFi ESSID interface name (wlan0)
  58. */
  59. static const struct arg args[] = {
  60. /* function format argument */
  61. { datetime, "%s", "%F %T" },
  62. };