diff options
Diffstat (limited to 'dot_config')
-rw-r--r-- | dot_config/i3/i3blocks.conf | 4 | ||||
-rw-r--r-- | dot_config/i3/scripts/executable_temperature | 2 |
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] |
100 | label= | 100 | label= |
101 | command=~/.config/i3/scripts/temperature | 101 | command=~/.config/i3/scripts/temperature |
102 | interval=30 | 102 | interval=1 |
103 | #T_WARN=70 | 103 | #T_WARN=70 |
104 | #T_CRIT=90 | 104 | #T_CRIT=90 |
105 | #SENSOR_CHIP="" | 105 | SENSOR_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; | |||
51 | while (<SENSORS>) { | 51 | while (<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 | } |
57 | close(SENSORS); | 57 | close(SENSORS); |