aboutsummaryrefslogtreecommitdiff
path: root/conky/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'conky/test.sh')
-rwxr-xr-xconky/test.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/conky/test.sh b/conky/test.sh
new file mode 100755
index 0000000..9227167
--- /dev/null
+++ b/conky/test.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+# commend example
+# sudo hddtemp /dev/sda
+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}"
+ echo "\${color green}\${cpubar cpu3 5,120} \${alignr}\${color green}\${cpubar cpu4 5,120}"
+ echo "\${color white}\${freq}MHz / $amdtemp (\${cpu cpu3}%) \${alignr}\${freq}MHz / $amdtemp (\${cpu cpu4}%)"
+ echo ""
+ echo "\${color white}\${freq}MHz / $amdtemp (\${cpu cpu5}%) \${alignr}\${freq}MHz / $amdtemp (\${cpu cpu6}%)"
+ echo "\${color green}\${cpubar cpu5 5,120} \${alignr}\${color green}\${cpubar cpu6 5,120}"
+ echo "\${color green}\${cpubar cpu7 5,120} \${alignr}\${color green}\${cpubar cpu8 5,120}"
+ echo "\${color white}\${freq}MHz / $amdtemp (\${cpu cpu7}%) \${alignr}\${freq}MHz / $amdtemp (\${cpu cpu8}%)"
+else
+ echo "\${color white}\${freq}MHz / \${acpitemp} (\${cpu cpu1}%) \${alignr}\${freq}MHz / \${acpitemp} (\${cpu cpu2}%)"
+ echo "\${color green}\${cpubar cpu1 5,120} \${alignr}\${color green}\${cpubar cpu2 5,120}"
+ echo "\${color green}\${cpubar cpu3 5,120} \${alignr}\${color green}\${cpubar cpu4 5,120}"
+ echo "\${color white}\${freq}MHz / \${acpitemp} (\${cpu cpu3}%) \${alignr}\${freq}MHz / \${acpitemp} (\${cpu cpu4}%)"
+fi