aboutsummaryrefslogtreecommitdiff
path: root/.config/swayrbar/scripts/temp-status
blob: 60220d2625c6e4f38dd20f6d4d6898e0559f874e (plain) (blame)
1
2
3
4
5
6
#!/usr/bin/env sh

temps="$(cat /sys/class/hwmon/hwmon*/temp*_input)"
temp=$(echo \("$(echo -n "$temps" | tr '\n' '+')) / $(echo "$temps" | wc -l) / 1000" | bc)

echo -n "$temp" °C