#!/bin/sh case $BLOCK_BUTTON in 1) dunstify -r $(dunstifyIDs.sh "cpu") -t 5000 "Highest CPU processes: $(ps axch -o cmd:18,%cpu --sort=-%cpu | sed 10q)" ;; esac temp=$(sensors | awk '/Package id/ {print $4}' | sed 's/+//' | sed 's/\..*//') warn="" if [ "$temp" -lt 25 ]; then color="#696eff" elif [ "$temp" -lt 45 ]; then color="#1fffaf" elif [ "$temp" -lt 65 ]; then color="#b8bb26" else color="#d1375d" warn=❗ fi printf "%s%s" "$color" "$temp" "$warn" echo ""