Files
nix-config/.config/polybar/cpu-wattage.sh
2024-11-18 22:57:33 +01:00

9 lines
165 B
Bash
Executable File

#!/usr/bin/env bash
wattage=$(sensors zenpower-pci-00c3 | grep SVI2_P_Core | sed "s/SVI2_P_Core: //g")
if [ -z "$wattage" ]; then
wattage=""
fi
echo "$wattage"