mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-10-15 00:59:55 +00:00
Pre-release 1.3.3b:
+ added select temperature device
This commit is contained in:
@ -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',
|
||||
|
Reference in New Issue
Block a user