dotfiles/system-specific/cheems/polybar/system-cpu-temppercore.sh

4 lines
126 B
Bash

#!/bin/sh
sensors | grep Core | awk '{print substr($3, 2, length($3)-5)}' | tr "\\n" " " | sed 's/ /°C /g' | sed 's/ $//'