aboutsummaryrefslogtreecommitdiff
path: root/.config/swayrbar/scripts/temp-status
diff options
context:
space:
mode:
Diffstat (limited to '.config/swayrbar/scripts/temp-status')
-rwxr-xr-x.config/swayrbar/scripts/temp-status6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/swayrbar/scripts/temp-status b/.config/swayrbar/scripts/temp-status
new file mode 100755
index 0000000..60220d2
--- /dev/null
+++ b/.config/swayrbar/scripts/temp-status
@@ -0,0 +1,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