.config/.local/bin/statusbar/dwm_cpu_temp

7 lines
173 B
Bash

#!/bin/bash
icon=""
temp=$(echo "scale=0; $(sort -nr /sys/class/thermal/thermal_zone*/temp | head -n1) / 1000" | bc)
printf "$icon ^c#f7ca88^$((temp))^c#d75f5f^°C^d^"