summaryrefslogtreecommitdiff
path: root/widgets/temperatures/temperatures.default
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-11-17 19:27:30 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-11-17 19:27:30 +0100
commitf71077e871218abd105027d1eb6b9b4033fbe131 (patch)
tree8cb2a9e20e21c97c2742716a634e632d0764ca9f /widgets/temperatures/temperatures.default
parentf997e3c12313a74339ffa81e7488217f2ec6c06d (diff)
downloadskin-flatplus-f71077e871218abd105027d1eb6b9b4033fbe131.tar.gz
skin-flatplus-f71077e871218abd105027d1eb6b9b4033fbe131.tar.bz2
update widgets files; add weather widget font size
Diffstat (limited to 'widgets/temperatures/temperatures.default')
-rwxr-xr-xwidgets/temperatures/temperatures.default25
1 files changed, 25 insertions, 0 deletions
diff --git a/widgets/temperatures/temperatures.default b/widgets/temperatures/temperatures.default
new file mode 100755
index 00000000..be764be0
--- /dev/null
+++ b/widgets/temperatures/temperatures.default
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+# please update this script to fit your needs
+# this script is call every time the widget will be drawn, so keep it short and fast ;)
+
+# if the script is executed from system_information script set the locale back for "°C"
+LANG=de_DE.UTF-8
+
+# there can be 4 files, cpu, gpu, pccase, motherboard
+
+rm -f ./cpu ./pccase ./gpu ./motherboard
+
+# intel core-i cpu temp
+sensors -A coretemp-isa-0000 | grep "Core 0" | awk '{print $3}' | tr -d "+" > ./cpu
+
+# pc case temp
+#sensors -A acpitz-virtual-0 | grep "temp1" | awk '{print $2}' | tr -d "+" > ./pccase
+
+# motherboard temp
+sensors -A acpitz-virtual-0 | grep "temp1" | awk '{print $2}' | tr -d "+" > ./motherboard
+
+# nvidia gpu temp
+# nvidia-settings must be run as the user of the x server
+GPU=`nvidia-settings -c :0 -t -query GPUCoreTemp | head -n 1`
+echo "${GPU}°C" > ./gpu