dotfiles/.config/eww/mybar/scripts/temperature_info
2022-09-17 02:09:55 +09:00

5 lines
149 B
Bash

#!/bin/sh
temp=$(sensors | grep 'Package id 0:\|Tdie' | grep ':[ ]*+[0-9]*.[0-9]*°C' -o | grep '[0-9]*.[0-9]*°C' -o)
temp=${temp::-4}
echo "$temp"