Gather some system information and show it in this statusbar program, not tied to any Window Manager, terminal multiplexer, etc. - https://gitlab.com/void0/pinky-bar
Last edited:
Thanks for being inclusive of FreeBSD with your tool.Gather some system information and show it in this statusbar program, not tied to any Window Manager, terminal multiplexer, etc. - https://github.com/wifiextender/pinky-bar
./configure
. You may wish to consider submitting a port for it. The Contributing to ports article and Porter's Handbook should point you in the right direction.You could use libstatgrab (https://www.i-scream.org/libstatgrab/)
dev.cpu.3.temperature: 51.0C
dev.cpu.3.coretemp.throttle_log: 0
dev.cpu.3.coretemp.tjmax: 105.0C
dev.cpu.3.coretemp.resolution: 1
dev.cpu.3.coretemp.delta: 54
dev.cpu.2.temperature: 51.0C
dev.cpu.2.coretemp.throttle_log: 0
dev.cpu.2.coretemp.tjmax: 105.0C
dev.cpu.2.coretemp.resolution: 1
dev.cpu.2.coretemp.delta: 54
dev.cpu.1.temperature: 54.0C
dev.cpu.1.coretemp.throttle_log: 0
dev.cpu.1.coretemp.tjmax: 105.0C
dev.cpu.1.coretemp.resolution: 1
dev.cpu.1.coretemp.delta: 51
dev.cpu.0.temperature: 54.0C
dev.cpu.0.coretemp.throttle_log: 0
dev.cpu.0.coretemp.tjmax: 105.0C
dev.cpu.0.coretemp.resolution: 1
dev.cpu.0.coretemp.delta: 51
# &B - Blue , &M - Magenta , &Y - Yellow
while true; do echo "&BOh &Mhello &Ydear";sleep 1;done | ./pinky_curses
hw.acpi.thermal.tz9.temperature: 0.0C
...
hw.acpi.thermal.tz0.temperature: 33.0C
struct sensordev dev;
struct sensor sens;
int mib[] = { CTL_HW, HW_SENSORS, 0, SENSOR_VOLTS_DC, 0 };
memset(&dev, 0, sizeof(struct sensordev));
memset(&sens, 0, sizeof(struct sensor));
size_t dev_len = sizeof(dev), sens_len = sizeof(sens);
if (0 != (sysctl(mib, 3, &dev, &dev_len, NULL, 0))) {
return -1;
}
for (mib[4] = 0; mib[4] < dev.maxnumt[SENSOR_VOLTS_DC]; mib[4]++) {
if (0 != (sysctl(mib, 5, &sens, &sens_len, NULL, 0))) {
return -1;
}
if (!(sens.flags & SENSOR_FINVALID)) {
printf("%.2f\n", (float)sens.value / 1000000.0f);
}
}
dev.acpi_tz.5.%location: handle=\_TZ_.BATZ
hw.acpi.thermal.tz5.temperature: 27.4C