mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 14:19:43 +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
|
#!/bin/bash
|
||||||
|
|
||||||
# What modules, in what order
|
# 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
|
# Modules that require an active internet connection
|
||||||
ONLINE_MODULES="weather internet"
|
ONLINE_MODULES="weather internet"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Gets temperature of the CPU
|
# Gets temperature of the CPU
|
||||||
# Dependencies: lm_sensors
|
# Dependencies: lm_sensors
|
||||||
|
|
||||||
get_temperature()
|
get_cputemp()
|
||||||
{
|
{
|
||||||
# CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input)
|
# CPU_T=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon?/temp2_input)
|
||||||
# CPU_TEMP=$(expr $CPU_T / 1000)
|
# CPU_TEMP=$(expr $CPU_T / 1000)
|
||||||
|
@ -18,4 +18,4 @@ get_temperature()
|
||||||
echo " $CPU_TEMP"
|
echo " $CPU_TEMP"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_temperature
|
get_cputemp
|
|
@ -7,7 +7,7 @@ PREFIX=' '
|
||||||
|
|
||||||
get_fan_speed()
|
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
|
get_fan_speed
|
||||||
|
|
Loading…
Reference in a new issue