1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
|
diff -Naur wmgtemp-1.2/src/wmgtemp.c wmgtemp-1.2.work/src/wmgtemp.c
--- wmgtemp-1.2/src/wmgtemp.c 2017-02-01 21:56:50.000000000 -0500
+++ wmgtemp-1.2.work/src/wmgtemp.c 2021-08-09 17:22:46.640646642 -0400
@@ -691,19 +691,19 @@
" [Default: autodetect]\n" \
" -s, --scale=SCALE Display temperatures in SCALE\n" \
" SCALE=kelvin, fahrenheit\n" \
- " [Default: celcius]\n" \
+ " [Default: celsius]\n" \
" -g, --graph=STYLE Display graph as STYLE\n" \
" STYLE=line, block\n" \
" [Default: line]\n" \
- " -H, --high=TEMP Display red warning light at TEMP degrees celcius\n" \
+ " -H, --high=TEMP Display red warning light at TEMP degrees celsius\n" \
" [Default: 50]\n" \
- " -w, --warn=TEMP Display amber warning light at TEMP degrees celcius\n" \
+ " -w, --warn=TEMP Display amber warning light at TEMP degrees celsius\n" \
" [Default: 45]\n" \
" -u, --update=SEC Update the display every SEC seconds\n" \
" [Default: 1]\n" \
- " -m, --min=TEMP Set lower bound of the graph to TEMP degrees celcius\n" \
+ " -m, --min=TEMP Set lower bound of the graph to TEMP degrees celsius\n" \
" [Default: 20]\n" \
- " -M, --max=TEMP Set upper bound of the graph to TEMP degrees celcius\n" \
+ " -M, --max=TEMP Set upper bound of the graph to TEMP degrees celsius\n" \
" [Default: 35]\n" \
" -1, --feature1=F1 Set the feature for CPU\n" \
" [Default: temp1]\n" \
@@ -711,7 +711,7 @@
" [Default: temp2]\n" \
" -c, --chip=NAME Use sensor chip matching NAME\n" \
" [Default: use any]\n" \
- " -a, --execat=TEMP Execute a command at TEMP degrees celcius\n" \
+ " -a, --execat=TEMP Execute a command at TEMP degrees celsius\n" \
" -e, --exec=COMMAND Execute COMMAND when 'execat' temperature is reached\n" \
" -t, --swap Swap CPU and SYS temps\n" \
" -q, --quiet Don't display any messages\n" \
@@ -874,6 +874,7 @@
};
p = getenv("HOME");
+ if(!p) p = ".";
strcpy(temp, p);
strcat(temp, "/.wmgtemprc");
parse_rcfile(temp, wmgtemp_keys);
@@ -992,7 +993,7 @@
}
else {
if(quiet == 0)
- printf("wmgtemp: high temp set to %d degrees celcius.\n", (int)high_temp);
+ printf("wmgtemp: high temp set to %d degrees celsius.\n", (int)high_temp);
}
}
if(rc_warn != NULL) {
@@ -1003,7 +1004,7 @@
}
else {
if(quiet == 0)
- printf("wmgtemp: warning temp set to %d degrees celcius.\n", (int)warn_temp);
+ printf("wmgtemp: warning temp set to %d degrees celsius.\n", (int)warn_temp);
}
}
if(rc_max != NULL) {
@@ -1014,7 +1015,7 @@
}
else {
if(quiet == 0)
- printf("wmgtemp: Upper range set to %d degrees celcius.\n", (int)range_upper);
+ printf("wmgtemp: Upper range set to %d degrees celsius.\n", (int)range_upper);
}
}
if(rc_min != NULL) {
@@ -1025,7 +1026,7 @@
}
else {
if(quiet == 0)
- printf("wmgtemp: Lower range set to %d degrees celcius.\n", (int)range_lower);
+ printf("wmgtemp: Lower range set to %d degrees celsius.\n", (int)range_lower);
}
}
if(rc_delay != NULL) {
@@ -1049,15 +1050,15 @@
if(rc_exec != NULL) {
if(strcmp(rc_exec, "")) {
exec_app = strdup(rc_exec);
- printf("wmgtemp: Executing \"%s\" at %d degrees celcius.\n", exec_app, (int)execat);
+ printf("wmgtemp: Executing \"%s\" at %d degrees celsius.\n", exec_app, (int)execat);
}
else {
- printf("You must supply an command to execute\n");
+ printf("You must supply a command to execute\n");
parse_ok = 0;
}
}
else {
- printf("You must supply an command to execute\n");
+ printf("You must supply a command to execute\n");
parse_ok = 0;
}
}
diff -Naur wmgtemp-1.2/wmgtemp.1 wmgtemp-1.2.work/wmgtemp.1
--- wmgtemp-1.2/wmgtemp.1 2017-02-01 21:56:50.000000000 -0500
+++ wmgtemp-1.2.work/wmgtemp.1 2021-08-09 17:24:25.928637617 -0400
@@ -21,9 +21,9 @@
display the usage information
.TP
.B \-s, \-\-scale=SCALE
-show temperatures using SCALE temperature scale. SCALE=celcius, fahrenheit or kelvin.
+show temperatures using SCALE temperature scale. SCALE=celsius, fahrenheit or kelvin. Only the first character is significant (you can just say c for celsius, etc).
.br
-\fBDefault\fP: celcius
+\fBDefault\fP: celsius
.TP
.B \-S, \-\-sensorconf=PATH
specify the PATH to the lm_sensors config
@@ -37,13 +37,13 @@
.TP
.B \-H, \-\-high=TEMP
-display red warning light at TEMP degrees celcius.
+display red warning light at TEMP degrees celsius.
.br
\fBDefault\fP: 50
.TP
.B \-w, \-\-warn=TEMP
-display amber warning light at TEMP degrees celcius.
+display amber warning light at TEMP degrees celsius.
.br
\fBDefault\fP: 45
@@ -55,13 +55,13 @@
.TP
.B \-m, \-\-min=TEMP
-set the lower bound of the graph to TEMP degrees celcius.
+set the lower bound of the graph to TEMP degrees celsius.
.br
\fBDefault\fP: 20
.TP
.B \-M, \-\-max=TEMP
-set the upper bound of the graph to TEMP degrees celcius.
+set the upper bound of the graph to TEMP degrees celsius.
.br
\fBDefault\fP: 35
@@ -85,7 +85,7 @@
.TP
.B \-a, \-\-execat=TEMP
-execute a command at TEMP degrees celcius.
+execute a command at TEMP degrees celsius.
.br
\fBDefault\fP: none
@@ -111,7 +111,7 @@
.nf
.IP
# wmgtemp example config
-scale:celcius
+scale:celsius
graph:line
high:50
warn:45
@@ -130,24 +130,19 @@
You can cycle through the graph types by clicking on the graph display area.
.PP
.SS High Temperature Toggle
-You can toggle the displaying of high temperatures by click on the temperature for the corrosponding temperature. The viewing of high temperatures is indicated by an amber arrow to the left of the temperature. The current temperatures will continue to be displayed on the graph.
+You can toggle the displaying of high temperatures by click on the temperature for the corresponding temperature. The viewing of high temperatures is indicated by an amber arrow to the left of the temperature. The current temperatures will continue to be displayed on the graph.
.PP
.SH
.SS Temperature display TOGGLE
-You may toggle the displaying of a temperature on the graph by clicking on the corrosponding type. e.g To toggle the display of the CPU temperature click on CPU. The type indicator (CPU or SYS) will disappear and the temperature will not be displayed on the graph, although the temperature value will continue to be displayed.
+You may toggle the displaying of a temperature on the graph by clicking on the corresponding type. E.g. to toggle the display of the CPU temperature, click on CPU. The type indicator (CPU or SYS) will disappear and the temperature will not be displayed on the graph, although the temperature value will continue to be displayed.
.PP
.SH
.SS Temperature Scale Cycling
You may change the scale the temperatures are displayed in by clicking on either of the CPU or SYS scale indicators. The cycle order is \fBC\fP -> \fBK\fP -> \fBF\fP
.PP
-.SH BUGS
-Blank lines in the config file cause a Segmentation Fault.
-.PP
.SH SEE ALSO
.BR sensors.conf (5),
.BR libsensors (3),
.BR wmaker (1x)
.SH AUTHOR
wmgtemp was written by Roger Dunce <kronos@fluxcode.net>
-
-
|