Update to dotfiles

This commit is contained in:
2025-11-12 14:23:45 +01:00
parent 73d5a0d548
commit d7b760d93e
13 changed files with 106 additions and 5 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
usage=$(mpstat 1 1 | awk '/Average/ {print 100 - $NF}')
temp=$(sensors | awk '/^Tctl:/ {gsub(/[+°]C/, "", $2); print $2; exit}')
temp=${temp#+}
text="${usage}% ${temp}°C"
echo "$text"
echo "$text"
if [ "$(printf "%.0f" "$usage")" -ge 90 ]; then
echo "#ffcc66"
else
echo "#ffffff"
fi