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.

преди 8 години
преди 8 години
преди 8 години
преди 8 години
преди 8 години
123456789101112131415161718192021222324252627282930313233
  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. { 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. };