From acd552d5f37ec4882f624baf8cb860c001cfdd89 Mon Sep 17 00:00:00 2001 From: louis Date: Tue, 6 Jan 2015 06:07:48 +0100 Subject: added skin blackhole --- scripts/temperatures.default | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 scripts/temperatures.default (limited to 'scripts/temperatures.default') diff --git a/scripts/temperatures.default b/scripts/temperatures.default new file mode 100644 index 0000000..e942434 --- /dev/null +++ b/scripts/temperatures.default @@ -0,0 +1,28 @@ +#!/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 ;) + +OUTPUTFLDR="/tmp/skindesigner/" +mkdir -p ${OUTPUTFLDR} + +# 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 ${OUTPUTFLDR}/cpu ${OUTPUTFLDR}/pccase ${OUTPUTFLDR}/gpu ${OUTPUTFLDR}/motherboard + +# intel core-i cpu temp +sensors -A coretemp-isa-0000 | grep "Core 0" | awk '{print $3}' | tr -d "+" > ${OUTPUTFLDR}/cpu + +# pc case temp +#sensors -A acpitz-virtual-0 | grep "temp1" | awk '{print $2}' | tr -d "+" > ${OUTPUTFLDR}/pccase + +# motherboard temp +sensors -A acpitz-virtual-0 | grep "temp1" | awk '{print $2}' | tr -d "+" > ${OUTPUTFLDR}/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" > ${OUTPUTFLDR}/gpu -- cgit v1.2.3