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.
 
 
 
 

41 linhas
1.7 KiB

  1. /* See LICENSE file for copyright and license details. */
  2. /* how often to update the statusbar (min value == 1) */
  3. #define UPDATE_INTERVAL 1
  4. /* text to show if no value can be retrieved */
  5. #define UNKNOWN_STR "n/a"
  6. /* statusbar
  7. - battery_perc (battery percentage) [argument: battery name]
  8. - battery_state (battery charging state) [argument: battery name]
  9. - cpu_perc (cpu usage in percent) [argument: NULL]
  10. - datetime (date and time) [argument: format]
  11. - disk_free (disk usage in percent) [argument: mountpoint]
  12. - disk_perc (disk usage in percent) [argument: mountpoint]
  13. - disk_total (disk usage in percent) [argument: mountpoint]
  14. - disk_used (disk usage in percent) [argument: mountpoint]
  15. - entropy (available entropy) [argument: NULL]
  16. - gid (gid of current user) [argument: NULL]
  17. - hostname [argument: NULL]
  18. - ip (ip address) [argument: interface]
  19. - load_avg (load average) [argument: NULL]
  20. - ram_free (ram usage in percent) [argument: NULL]
  21. - ram_perc (ram usage in percent) [argument: NULL]
  22. - ram_total (ram usage in percent) [argument: NULL]
  23. - ram_used (ram usage in percent) [argument: NULL]
  24. - run_command (run custom shell command) [argument: command]
  25. - temp (temperature in degrees) [argument: temperature file]
  26. - uid (uid of current user) [argument: NULL]
  27. - uptime (uptime) [argument: NULL]
  28. - username (username of current user) [argument: NULL]
  29. - vol_perc (alsa volume and mute status in percent) [argument: soundcard]
  30. - wifi_perc (wifi signal in percent) [argument: wifi card interface name]
  31. - wifi_essid (wifi essid) [argument: wifi card interface name] */
  32. static const struct arg args[] = {
  33. /* function format argument */
  34. { cpu_perc, "[ CPU %4s ]", NULL },
  35. { ram_perc, "[ Mem %3s ]", NULL },
  36. { datetime, "[ %s ]", "%F %T" },
  37. };