Advertisement
mrneilypops

slatus-config.h-dwmXS

Aug 10th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. /* See LICENSE file for copyright and license details. */
  2.  
  3. /* how often to update the statusbar (min value == 1) */
  4. #define UPDATE_INTERVAL 1
  5.  
  6. /* text to show if no value can be retrieved */
  7. #define UNKNOWN_STR "n/a"
  8.  
  9. /* maximum output string length */
  10. #define MAXLEN 2048
  11.  
  12. /* statusbar
  13. - battery_perc (battery percentage) [argument: battery name]
  14. - battery_power (battery power usage) [argument: battery name]
  15. - battery_state (battery charging state) [argument: battery name]
  16. - cpu_perc (cpu usage in percent) [argument: NULL]
  17. - cpu_freq (cpu frequency) [argument: NULL]
  18. - datetime (date and time) [argument: format]
  19. - disk_free (free disk space in GB) [argument: mountpoint]
  20. - disk_perc (disk usage in percent) [argument: mountpoint]
  21. - disk_total (total disk space in GB) [argument: mountpoint]
  22. - disk_used (used disk space in GB) [argument: mountpoint]
  23. - entropy (available entropy) [argument: NULL]
  24. - gid (gid of current user) [argument: NULL]
  25. - hostname [argument: NULL]
  26. - ip (ip address) [argument: interface]
  27. - kernel_release (uname -r) [argument: NULL]
  28. - keyboard_indicators (caps/num lock indicators) [agrument: NULL]
  29. - load_avg (load average) [argument: NULL]
  30. - ram_free (free ram in GB) [argument: NULL]
  31. - ram_perc (ram usage in percent) [argument: NULL]
  32. - ram_total (total ram in GB) [argument: NULL]
  33. - ram_used (used ram in GB) [argument: NULL]
  34. - run_command (run custom shell command) [argument: command]
  35. - swap_free (free swap in GB) [argument: NULL]
  36. - swap_perc (swap usage in percent) [argument: NULL]
  37. - swap_total (total swap in GB) [argument: NULL]
  38. - swap_used (used swap in GB) [argument: NULL]
  39. - temp (temperature in celsius) [argument: temperature file]
  40. - uid (uid of current user) [argument: NULL]
  41. - uptime (uptime) [argument: NULL]
  42. - username (username of current user) [argument: NULL]
  43. - vol_perc (oss/alsa volume status (see README)) [argument: /dev/mixer]
  44. - wifi_perc (wifi signal in percent) [argument: wifi card interface name]
  45. - wifi_essid (wifi essid) [argument: wifi card interface name] */
  46. static const struct arg args[] = {
  47. /* function format argument */
  48. { run_command, " %s ", "./mpd.sh" },
  49. { kernel_release, " %s ", NULL },
  50. { cpu_perc, "%2s%% ", NULL },
  51. { load_avg, "%2s " , NULL },
  52. { ram_perc, "%2s%% ", NULL },
  53. { disk_perc, "%2s%% ", "/" },
  54. { datetime, " %s ", "%H:%M" },
  55. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement