mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-09 20:05:51 +00:00
New release 1.3.3:
edited reading temperature device rename
This commit is contained in:
@ -85,8 +85,8 @@ class pyTextWidget(plasmascript.Applet):
|
||||
commandOut = commands.getoutput("grep -c '^processor' /proc/cpuinfo")
|
||||
self.numCores = int(commandOut)
|
||||
# setup temperature device
|
||||
commandOut = commands.getoutput("sensors | grep Physical -B2")
|
||||
self.tempdev = "lmsensors/"+commandOut.split("\n")[0]+"/"+'_'.join(commandOut.split("\n")[2].split(":")[0].split())
|
||||
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',
|
||||
|
Reference in New Issue
Block a user