From 73f3c5561a418bc0730afe15c23c8d1ba03e25d8 Mon Sep 17 00:00:00 2001 From: NeodarZ Date: Tue, 22 Nov 2016 09:22:54 +0100 Subject: update --- conky/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conky/test.sh') diff --git a/conky/test.sh b/conky/test.sh index 9227167..7108e59 100755 --- a/conky/test.sh +++ b/conky/test.sh @@ -1,7 +1,7 @@ #!/bin/bash # commend example # sudo hddtemp /dev/sda -if [ $(sensors | grep -P "k10temp-pci-00c3") == "k10temp-pci-00c3" ];then +if [[ $(sensors | grep -P "k10temp-pci-00c3") == "k10temp-pci-00c3" ]];then amdtemp=$(sensors | grep temp1 | grep "(high" | awk -F' ' '{print $2}' | cut -d+ -f2) echo "\${color white}\${freq}MHz / $amdtemp (\${cpu cpu1}%) \${alignr}\${freq}MHz / $amdtemp (\${cpu cpu2}%)" echo "\${color green}\${cpubar cpu1 5,120} \${alignr}\${color green}\${cpubar cpu2 5,120}" -- cgit v1.2.1