mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-21 18:12:53 +00:00
Updated lm-sensors modules
This commit is contained in:
parent
6c38051d94
commit
6d8e2aa54f
3 changed files with 4 additions and 4 deletions
2
config
2
config
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# What modules, in what order
|
||||
MODULES="weather volumebar wifi internet cpuload temperature date time"
|
||||
MODULES="weather volumebar wifi internet cpuload cputemp date time"
|
||||
|
||||
# Modules that require an active internet connection
|
||||
ONLINE_MODULES="weather internet"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Gets temperature of the CPU
|
||||
# Dependencies: lm_sensors
|
||||
|
||||
get_temperature()
|
||||
get_cputemp()
|
||||
{
|
||||
# CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input)
|
||||
# CPU_TEMP=$(expr $CPU_T / 1000)
|
||||
|
@ -18,4 +18,4 @@ get_temperature()
|
|||
echo " $CPU_TEMP"
|
||||
}
|
||||
|
||||
get_temperature
|
||||
get_cputemp
|
|
@ -7,7 +7,7 @@ PREFIX=' '
|
|||
|
||||
get_fan_speed()
|
||||
{
|
||||
echo "$PREFIX$(sensors | grep fan1 | cut -d " " -f 9) RPM"
|
||||
echo "$PREFIX$(sensors | grep fan1 | awk 'NR==1{print $2}') RPM"
|
||||
}
|
||||
|
||||
get_fan_speed
|
||||
|
|
Loading…
Reference in a new issue