Pre-release 1.3.3b:

+ added select temperature device
This commit is contained in:
arcan1s
2013-05-29 18:00:20 +04:00
parent cbc475d38b
commit 98458dfcf3
10 changed files with 54 additions and 6 deletions

View File

@ -84,9 +84,6 @@ class pyTextWidget(plasmascript.Applet):
# setup number of cores
commandOut = commands.getoutput("grep -c '^processor' /proc/cpuinfo")
self.numCores = int(commandOut)
# setup temperature device
commandOut = commands.getoutput("sensors | grep adapter -B1 -A1 | grep °C -B2")
self.tempdev = "lmsensors/" + commandOut.split("\n")[0] + "/" + '_'.join(commandOut.split("\n")[2].split(":")[0].split())
# create dictionaries
self.dict_orders = {'6':'bat', '1':'cpu', '7':'cpuclock', '9':'gpu', 'a':'gputemp',