aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2022-12-19 12:32:21 -0800
committerclarkzjw <[email protected]>2022-12-19 12:32:21 -0800
commit697c2c26dcbe58cd40ed776b282429e407465a77 (patch)
tree247fb6fa2c6b35444edc6f66df157617c011d553 /dot_config
parentbca177c49574987e34f426f6ba73fb0a609a41a7 (diff)
downloaddotfiles-697c2c26dcbe58cd40ed776b282429e407465a77.tar.gz
temperature: fix cpu temperature reading
Diffstat (limited to 'dot_config')
-rw-r--r--dot_config/i3/i3blocks.conf4
-rw-r--r--dot_config/i3/scripts/executable_temperature2
2 files changed, 3 insertions, 3 deletions
diff --git a/dot_config/i3/i3blocks.conf b/dot_config/i3/i3blocks.conf
index dd9f5ac..2787340 100644
--- a/dot_config/i3/i3blocks.conf
+++ b/dot_config/i3/i3blocks.conf
@@ -99,10 +99,10 @@ markup=pango
99[CPU-temperature] 99[CPU-temperature]
100label= 100label=
101command=~/.config/i3/scripts/temperature 101command=~/.config/i3/scripts/temperature
102interval=30 102interval=1
103#T_WARN=70 103#T_WARN=70
104#T_CRIT=90 104#T_CRIT=90
105#SENSOR_CHIP="" 105SENSOR_CHIP="coretemp-isa-0000"
106# where SENSOR_CHIP can be find with sensors output 106# where SENSOR_CHIP can be find with sensors output
107# can be used also for GPU temperature or other temperature sensors lm-sensors detects. 107# can be used also for GPU temperature or other temperature sensors lm-sensors detects.
108 108
diff --git a/dot_config/i3/scripts/executable_temperature b/dot_config/i3/scripts/executable_temperature
index 4e31610..a4d5f9e 100644
--- a/dot_config/i3/scripts/executable_temperature
+++ b/dot_config/i3/scripts/executable_temperature
@@ -51,7 +51,7 @@ open (SENSORS, "sensors -u $chip |") or die;
51while (<SENSORS>) { 51while (<SENSORS>) {
52 if (/^\s+temp1_input:\s+[\+]*([\-]*\d+\.\d)/) { 52 if (/^\s+temp1_input:\s+[\+]*([\-]*\d+\.\d)/) {
53 $temperature = $1; 53 $temperature = $1;
54 last; 54 last;
55 } 55 }
56} 56}
57close(SENSORS); 57close(SENSORS);
Powered by cgit v1.2.3 (git 2.41.0)