My slstatus configuration
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

config.def.h 1.3 KiB

hace 8 años
12345678910111213141516171819202122232425262728293031323334353637
  1. /* See LICENSE file for copyright and license details. */
  2. /* alsa sound */
  3. static const char soundcard[] = "default";
  4. static const char channel[] = "Master";
  5. /* cpu temperature */
  6. static const char tempfile[] = "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input";
  7. /* wifi */
  8. static const char wificard[] = "wlp3s0";
  9. /* battery */
  10. static const char batterynowfile[] = "/sys/class/power_supply/BAT0/energy_now";
  11. static const char batteryfullfile[] = "/sys/class/power_supply/BAT0/energy_full_design";
  12. /* time */
  13. static const char timeformat[] = "%y-%m-%d %H:%M:%S";
  14. /* bar update interval in seconds (smallest value = 1) */
  15. static unsigned int update_interval = 1;
  16. /* mountpoint for diskusage */
  17. static const char mountpath[] = "/home";
  18. /* statusbar
  19. Possible arguments:
  20. - battery (battery percentage)
  21. - cpu_temperature (cpu temperature in degrees)
  22. - cpu usage (cpu usage in percent)
  23. - datetime (date and time)
  24. - diskusage (disk usage in percent)
  25. - ram_usage (ram usage in percent)
  26. - volume (alsa volume and mute status in percent)
  27. - wifi_signal (wifi signal in percent) */
  28. #define FORMATSTRING "wifi %4s | bat %4s | cpu %4s %3s | ram %3s | vol %4s | disk %4s | %3s"
  29. #define ARGUMENTS wifi_signal, battery, cpu_usage, cpu_temperature, ram_usage, volume, diskusage, datetime