From d7a21e259b80010ce7368e8aaa0863886a947085 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Thu, 11 Jul 2024 19:53:42 +0200
Subject: swayrbar: add config

---
 .config/swayrbar/scripts/temp-status | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100755 .config/swayrbar/scripts/temp-status

(limited to '.config/swayrbar/scripts/temp-status')

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
-- 
cgit v1.2.3