My slstatus configuration
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

40 рядки
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. - cpu_perc (cpu usage in percent) [argument: NULL]
  9. - datetime (date and time) [argument: format]
  10. - disk_free (disk usage in percent) [argument: mountpoint]
  11. - disk_perc (disk usage in percent) [argument: mountpoint]
  12. - disk_total (disk usage in percent) [argument: mountpoint]
  13. - disk_used (disk usage in percent) [argument: mountpoint]
  14. - entropy (available entropy) [argument: NULL]
  15. - gid (gid of current user) [argument: NULL]
  16. - hostname [argument: NULL]
  17. - ip (ip address) [argument: interface]
  18. - load_avg (load average) [argument: NULL]
  19. - ram_free (ram usage in percent) [argument: NULL]
  20. - ram_perc (ram usage in percent) [argument: NULL]
  21. - ram_total (ram usage in percent) [argument: NULL]
  22. - ram_used (ram usage in percent) [argument: NULL]
  23. - run_command (run custom shell command) [argument: command]
  24. - temp (temperature in degrees) [argument: temperature file]
  25. - uid (uid of current user) [argument: NULL]
  26. - uptime (uptime) [argument: NULL]
  27. - username (username of current user) [argument: NULL]
  28. - vol_perc (alsa volume and mute status in percent) [argument: soundcard]
  29. - wifi_perc (wifi signal in percent) [argument: wifi card interface name]
  30. - wifi_essid (wifi essid) [argument: wifi card interface name] */
  31. static const struct arg args[] = {
  32. /* function format argument */
  33. { cpu_perc, "[ CPU %4s ]", NULL },
  34. { ram_perc, "[ Mem %3s ]", NULL },
  35. { datetime, "[ %s ]", "%F %T" },
  36. };