Is there any way to use the xscreensaver gltext to monitor system information?
Posted
by Shane
on Super User
See other posts from Super User
or by Shane
Published on 2010-05-26T02:20:38Z
Indexed on
2010/05/26
2:21 UTC
Read the original article
Hit count: 411
I am trying to get the X screensaver gltext to monitor my system temp and maybe some other stats. Writing a script that puts together the stats periodically is no problem, but the main thing I'm running into is that gltext doesn't refresh - whatever text I feed it stays there.
So, for example, I run this command:
$ /usr/lib/xscreensaver/gltext -text "`cat /proc/acpi/thermal_zone/THRM/temperature`"
and get a gltext window showing:
temperature: 60 C
I can manipulate it and format it as necessary, but as my CPU heats up and cools down, it doesn't update, even if I include time variables that do.
I have a script that feeds gltext the time as the first line and the temp as the second line - and although the time updates continuously as the time changes, the temperature value remains the same as whenever the screensaver started.
Is it possible to do what I want, which is change the text every 60 seconds if the temperature changes?
© Super User or respective owner