diff --git a/.local/bin/tools/statusbar/cpu b/.local/bin/tools/statusbar/cpu index fd6bde4..cced088 100755 --- a/.local/bin/tools/statusbar/cpu +++ b/.local/bin/tools/statusbar/cpu @@ -1,3 +1,7 @@ #!/bin/sh -sensors | awk '/Core 0/ {print " " $3}' +if [ "$1" = "amd" ]; then + sensors | awk '/Tctl/ {print " " $2}' +elif [ "$1" = "intel" ]; then + sensors | awk '/Core 0/ {print " " $3}' +fi