File: color-patch

package info (click to toggle)
i8kutils 1.27
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 236 kB
  • ctags: 167
  • sloc: ansic: 1,212; sh: 778; makefile: 157
file content (54 lines) | stat: -rw-r--r-- 1,999 bytes parent folder | download | duplicates (3)
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
This is a small patch to the i8kmon program that I added so I can see at
a glance what the fans on my i8200 is doing.  Makes it a little more
useful as a monitor.

I removed from the patch my swicth to turn off "auto"  I want it to monitor
not do the job itself.  You never said why it you should let it do the fan
control instead of the BIOS.

Anthony Thyssen ( System Programmer )    http://www.cit.gu.edu.au/~anthony/


21a22,23
> elif command -v wish >/dev/null 2>&1; then \
>     exec wish $0 -- "$@"; \
40c42
<     timeout	5
---
>     timeout	2
601c603,604
< 	.applet.lfan config -text {} -bg $bg -activebackground $ab
---
> 	.applet.lfan config -text {} -bg $bg \
> 	               -activebackground $ab
603c606,610
< 	.applet.lfan config -text $status(lstate) -bg red -activebackground red
---
> 	.applet.lfan config -text $status(lstate) -bg red \
> 	                            -activebackground red
>     } elseif {$status(lstate) == 1} {
> 	.applet.lfan config -text $status(lstate) -bg green \
> 	                            -activebackground green
605c612,613
< 	.applet.lfan config -text $status(lstate) -bg $bg -activebackground $ab
---
> 	.applet.lfan config -text $status(lstate) -bg dodgerblue \
> 	                            -activebackground dodgerblue
616c624,625
< 	.applet.rfan config -text {} -bg $bg -activebackground $ab
---
> 	.applet.rfan config -text {} -bg $bg \
> 	               -activebackground $ab
618c627,631
< 	.applet.rfan config -text $status(rstate) -bg red -activebackground red
---
> 	.applet.rfan config -text $status(rstate) -bg red \
> 	                            -activebackground red
>     } elseif {$status(rstate) == 1} {
> 	.applet.rfan config -text $status(rstate) -bg green \
> 	                            -activebackground green
620c633,634
< 	.applet.rfan config -text $status(rstate) -bg $bg -activebackground $ab
---
> 	.applet.rfan config -text $status(rstate) -bg dodgerblue \
> 	                            -activebackground dodgerblue