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.

config.def.h 2.2 KiB

8 jaren geleden
8 jaren geleden
7 jaren geleden
8 jaren geleden
8 jaren geleden
8 jaren geleden
8 jaren geleden
8 jaren geleden
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. /* maximum output string length */
  7. #define MAXLEN 2048
  8. /* statusbar
  9. - battery_perc (battery percentage) [argument: battery name]
  10. - battery_power (battery power usage) [argument: battery name]
  11. - battery_state (battery charging state) [argument: battery name]
  12. - cpu_perc (cpu usage in percent) [argument: NULL]
  13. - cpu_freq (cpu frequency) [argument: NULL]
  14. - datetime (date and time) [argument: format]
  15. - disk_free (free disk space in GB) [argument: mountpoint]
  16. - disk_perc (disk usage in percent) [argument: mountpoint]
  17. - disk_total (total disk space in GB) [argument: mountpoint]
  18. - disk_used (used disk space in GB) [argument: mountpoint]
  19. - entropy (available entropy) [argument: NULL]
  20. - gid (gid of current user) [argument: NULL]
  21. - hostname [argument: NULL]
  22. - ip (ip address) [argument: interface]
  23. - kernel_release (uname -r) [argument: NULL]
  24. - keyboard_indicators (caps/num lock indicators) [agrument: NULL]
  25. - load_avg (load average) [argument: NULL]
  26. - num_files (number of files in a directory - hint: maildir) [argument: path]
  27. - ram_free (free ram in GB) [argument: NULL]
  28. - ram_perc (ram usage in percent) [argument: NULL]
  29. - ram_total (total ram in GB) [argument: NULL]
  30. - ram_used (used ram in GB) [argument: NULL]
  31. - run_command (run custom shell command) [argument: command]
  32. - swap_free (free swap in GB) [argument: NULL]
  33. - swap_perc (swap usage in percent) [argument: NULL]
  34. - swap_total (total swap in GB) [argument: NULL]
  35. - swap_used (used swap in GB) [argument: NULL]
  36. - temp (temperature in celsius) [argument: temperature file]
  37. - uid (uid of current user) [argument: NULL]
  38. - uptime (uptime) [argument: NULL]
  39. - username (username of current user) [argument: NULL]
  40. - vol_perc (oss/alsa volume status (see README)) [argument: /dev/mixer]
  41. - wifi_perc (wifi signal in percent) [argument: wifi card interface name]
  42. - wifi_essid (wifi essid) [argument: wifi card interface name] */
  43. static const struct arg args[] = {
  44. /* function format argument */
  45. { cpu_perc, "[CPU %3s%%] ", NULL },
  46. { ram_perc, "[RAM %2s%%] ", NULL },
  47. { datetime, "[ %s ]", "%F %T" },
  48. };