FollieHiyuki-dotfiles/home/.local/bin/info/tempamd
2021-02-13 19:28:59 +03:00

6 lines
154 B
Bash
Executable File

#!/bin/sh
# Replace default temperature module (on AMD CPU)
temp=$(sensors | grep "Tdie" | sed "s/Tdie: *+//;s/°C *//" | cut -d'.' -f1)
echo "$temp"°C