mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-12-14 09:13:40 +00:00
* optimization and refactoring
* gpu* and hddtemp now read from ext-sysmon DataEngine
Extended SystemMonitor DataEngine:
initial release 1.0:
+ add gpu source
+ add gputemp source
+ add hddtemp source
+ add install script
17 lines
351 B
Python
17 lines
351 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from util import *
|
|
|
|
|
|
|
|
class Config():
|
|
def __init__(self, applet):
|
|
self.applet = applet
|
|
self.config = self.applet.config()
|
|
|
|
def get(self, key, default = ''):
|
|
return self.config.readEntry(key, default).toString()
|
|
|
|
def set(self, key, value):
|
|
self.config.writeEntry(key, value)
|