Remove color markup again

This commit is contained in:
c0dev0id 2023-02-25 19:40:55 +01:00
parent be17626931
commit b84ffc913e

11
cbar.c
View File

@ -28,6 +28,7 @@ void update_volume() {
double temp = 0;
if (fd == -1) {
close(fd);
snprintf(volume,sizeof(volume), "%lc N/A", ico_vol);
return;
}
@ -120,9 +121,6 @@ void update_fan_speed() {
if (sysctl(mib, 5, &sensor, &templen, NULL, 0) != -1)
temp = sensor.value;
if(temp>4200)
snprintf(fan_speed,sizeof(fan_speed), "+@fg=1;%lc %dRPM+@fg=0;", ico_fan, temp);
else
snprintf(fan_speed,sizeof(fan_speed), "%lc %dRPM", ico_fan, temp);
}
@ -164,9 +162,6 @@ void update_cpu_temp() {
else
ico_temp = ico_low;
if(temp>70)
snprintf(cpu_temp,sizeof(battery_percent), "+@fg=1;%lc %dC+@fg=0;", ico_temp, temp);
else
snprintf(cpu_temp,sizeof(battery_percent), "%lc %dC", ico_temp, temp);
}
@ -233,10 +228,6 @@ void update_battery() {
else
ico_buf = ico_empty;
if(pi.battery_life<10)
snprintf(battery_percent,sizeof(battery_percent),
"+@fg=1;%lc%lc %d%%+@fg=0;", ico_chr_buf, ico_buf, pi.battery_life);
else
snprintf(battery_percent,sizeof(battery_percent),
"%lc%lc %d%%", ico_chr_buf, ico_buf, pi.battery_life);
}