From 23a0a8ebaf06315d774fd94de5ed69abc8dce24b Mon Sep 17 00:00:00 2001 From: tiyn Date: Sat, 14 Oct 2023 02:50:21 +0200 Subject: [PATCH] statusbar: changed cpu temp script to work with amd and intel --- .local/bin/tools/statusbar/cpu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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