diff options
| author | Manuel Palenzuela <[email protected]> | 2019-08-29 13:28:46 +0200 |
|---|---|---|
| committer | Manuel Palenzuela <[email protected]> | 2019-08-29 13:28:46 +0200 |
| commit | 2b69d13fbd411fb9cca50988073874a9f45140b3 (patch) | |
| tree | f6472a000e1cb29aef614edc46d5bcab3d645002 | |
| parent | Fixed temp module (diff) | |
| download | dwm-2b69d13fbd411fb9cca50988073874a9f45140b3.tar.gz dwm-2b69d13fbd411fb9cca50988073874a9f45140b3.tar.bz2 dwm-2b69d13fbd411fb9cca50988073874a9f45140b3.zip | |
Fixed temp module part 2
| -rwxr-xr-x | scripts/dwm-status | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dwm-status b/scripts/dwm-status index 4c18374..c110dd6 100755 --- a/scripts/dwm-status +++ b/scripts/dwm-status @@ -174,8 +174,8 @@ volume(){ } temperature(){ - CPU_T=$(< /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input) - CPU_TEMP=$(expr "$CPU_T" / 1000) + CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input) + CPU_TEMP=$(expr $CPU_T / 1000) if [ "$CPU_TEMP" -ge 70 ]; then echo "🔥  $CPU_TEMP°C" |