Add CPU temp to slstatus

This commit is contained in:
2024-06-22 20:28:39 +01:00
parent 08ca65ee06
commit 194bc4c6c6
4 changed files with 14 additions and 13 deletions

View File

@@ -69,15 +69,16 @@ static const char unknown_str[] = "";
static const struct arg args[] = {
/* function format argument */
{ wifi_essid, "[ %s", "wlan0" },
{ wifi_essid, "[ %s", "wlan0" },
{ wifi_essid, "%s", "wlo1" },
{ wifi_perc, " %s", "wlan0" },
{ wifi_perc, "%s%%] ", "wlo1" },
{ battery_perc, "[󰂉 %s", "BAT0" },
{ battery_perc, "[󰂉 %s", "BAT0" },
{ battery_perc, "%s%%] ", "cw2015-battery" },
{ run_command, "[ %s%%] ", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -c 11-" },
{ cpu_perc, "[ %s%%] ", NULL },
{ run_command, "[ %s%%] ", "wpctl get-volume @DEFAULT_AUDIO_SINK@ | cut -c 11-" },
{ cpu_perc, "[ %s%%", NULL },
{ temp, " %sC] ", "/sys/class/thermal/thermal_zone0/temp" },
{ ram_used, "[ %s", NULL },
{ ram_perc, " %s%%] ", NULL },
{ datetime, "[ %s]", "%d/%m/%y %l:%M %p" },
{ ram_perc, " %s%%] ", NULL },
{ datetime, "[ %s]", "%d/%m/%y %l:%M %p" },
};