diff options
author | NeodarZ <neodarz@neodarz.ovh> | 2016-11-22 09:22:54 +0100 |
---|---|---|
committer | NeodarZ <neodarz@neodarz.ovh> | 2016-11-22 09:22:54 +0100 |
commit | 73f3c5561a418bc0730afe15c23c8d1ba03e25d8 (patch) | |
tree | de6bef726cd69d3225e4204bf60e88a889f35209 /conky/test.sh | |
parent | e2c27186535345ea89556f06691fedd9bdc16bdc (diff) | |
download | dotfiles-73f3c5561a418bc0730afe15c23c8d1ba03e25d8.tar.xz dotfiles-73f3c5561a418bc0730afe15c23c8d1ba03e25d8.zip |
update
Diffstat (limited to 'conky/test.sh')
-rwxr-xr-x | conky/test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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}" |