]> git.pld-linux.org Git - packages/fvwm-crystal.git/blob - fvwm-crystal-temperature.patch
- update to 3.2.3-1 release
[packages/fvwm-crystal.git] / fvwm-crystal-temperature.patch
1 --- fvwm-crystal-3.1.12/fvwm/components/scripts/FvwmScript-CpuTemp~     2013-05-05 16:57:11.000000000 +0200
2 +++ fvwm-crystal-3.1.12/fvwm/components/scripts/FvwmScript-CpuTemp      2013-05-08 16:33:06.954366535 +0200
3 @@ -10,7 +10,7 @@
4  Init
5  Begin
6    Set $temp_prev = 1
7 -  Set $temp = (GetOutput {sed 's:...$::' </sys/class/hwmon/hwmon0/temp1_input} 1 1)
8 +  Set $temp = (GetOutput {cat /sys/class/hwmon/hwmon0/temp1_input /sys/class/hwmon/hwmon0/device/temp?_input 2>/dev/null| sed 's:...$::' | sort -rn | head -n1} 1 1)
9    Set $tmp = $temp °C
10    ChangeTitle 1 $tmp
11  End
12 @@ -19,7 +19,7 @@
13  Begin 
14   If (RemainderOfDiv (GetTime) 2)==0 Then
15   Begin
16 -  Set $temp = (GetOutput {sed 's:...$::' </sys/class/hwmon/hwmon0/temp1_input} 1 1) 
17 +  Set $temp = (GetOutput {cat /sys/class/hwmon/hwmon0/temp1_input /sys/class/hwmon/hwmon0/device/temp?_input 2>/dev/null| sed 's:...$::' | sort -rn | head -n1} 1 1) 
18    Set $tmp = $temp °C
19  
20    If $temp==$temp_prev Then
This page took 0.069322 seconds and 3 git commands to generate.