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

34 рядки
1.4 KiB

  1. /* See LICENSE file for copyright and license details. */
  2. /* alsa sound */
  3. static const char channel[] = "Master";
  4. /* battery */
  5. static const char batterypath[] = "/sys/class/power_supply/";
  6. static const char batterynow[] = "energy_now";
  7. static const char batteryfull[] = "energy_full_design";
  8. /* bar update interval in seconds (smallest value = 1) */
  9. static unsigned int update_interval = 1;
  10. /* statusbar
  11. - battery_perc (battery percentage) [argument: battery name]
  12. - cpu_perc (cpu usage in percent) [argument: NULL]
  13. - datetime (date and time) [argument: format]
  14. - disk_perc (disk usage in percent) [argument: mountpoint]
  15. - ram_perc (ram usage in percent) [argument: NULL]
  16. - temp (temperature in degrees) [argument: temperature file]
  17. - vol_perc (alsa volume and mute status in percent) [argument: soundcard]
  18. - wifi_perc (wifi signal in percent) [argument: wifi card interface name] */
  19. static const struct arg args[] = {
  20. /* function format argument */
  21. { wifi_perc, "wifi %4s | ", "wlp3s0" },
  22. { battery_perc, "bat %4s | ", "BAT0" },
  23. { cpu_perc, "cpu %4s ", NULL },
  24. { temp, "%3s | ", "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input" },
  25. { ram_perc, "ram %3s | ", NULL },
  26. { vol_perc, "vol %4s | ", "default" },
  27. { disk_perc, "ssd %3s | ", "/" },
  28. { datetime, "%s", "%y-%m-%d %H:%M:%S" },
  29. };