main dotfiles / bin / temp
Eric Bower  ·  2026-09-13
1#!/usr/bin/env bash
2
3cpu=$(sensors coretemp-isa-0000 2>/dev/null | awk '/Package id 0/ {print $4}')
4gpu=$(sensors amdgpu-* 2>/dev/null | awk '/edge:/ {print $2}')
5hotspot=$(sensors amdgpu-* 2>/dev/null | awk '/junction:/ {print $2}')
6
7echo "CPU: ${cpu} | GPU: ${gpu} (Hotspot: ${hotspot})"
8
9# filetype: sh