statusbar: changed cpu temp script to work with amd and intel

master
tiyn 1 year ago
parent 75cac1a09b
commit 23a0a8ebaf

@ -1,3 +1,7 @@
#!/bin/sh #!/bin/sh
if [ "$1" = "amd" ]; then
sensors | awk '/Tctl/ {print " " $2}'
elif [ "$1" = "intel" ]; then
sensors | awk '/Core 0/ {print " " $3}' sensors | awk '/Core 0/ {print " " $3}'
fi

Loading…
Cancel
Save