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. - get_battery (battery percentage) [argument: battery name]
  12. - cpu_temperature (cpu temperature in degrees) [argument: temperature file]
  13. - cpu usage (cpu usage in percent)
  14. - datetime (date and time) [argument: format]
  15. - diskusage (disk usage in percent) [argument: mountpoint]
  16. - ram_usage (ram usage in percent)
  17. - volume (alsa volume and mute status in percent) [argument: soundcard]
  18. - wifi_signal (wifi signal in percent) [argument: wifi card interface name] */
  19. static const struct arg args[] = {
  20. /* function format argument */
  21. { get_wifi_signal, "wifi %4s | ", "wlp3s0" },
  22. { get_battery, "bat %4s | ", "BAT0" },
  23. { get_cpu_usage, "cpu %4s ", NULL },
  24. { get_cpu_temperature, "%3s | ", "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input" },
  25. { get_ram_usage, "ram %3s | ", NULL },
  26. { get_volume, "vol %4s | ", "default" },
  27. { get_diskusage, "ssd %3s | ", "/" },
  28. { get_datetime, "%s", "%y-%m-%d %H:%M:%S" }
  29. };