Minimal i3 setup

This commit is contained in:
Fabio Scotto di Santolo
2026-03-15 22:00:35 +01:00
parent f8b6d4c502
commit 31c17c95c1
33 changed files with 1034 additions and 52 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/sh
t=$(cat /sys/class/thermal/thermal_zone0/temp 2>/dev/null)
[ -n "$t" ] || exit 0
temp=$((t / 1000))
if [ "$temp" -ge 85 ]; then
color="#c7162b"
elif [ "$temp" -ge 70 ]; then
color="#e95420"
else
color="#d0d0d0"
fi
echo "CPU ${temp}°C"
echo "CPU ${temp}°C"
echo "$color"