mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 07:57:19 +00:00
Added todo (wish) list
This commit is contained in:
parent
7aabdf9485
commit
c729d6573d
14
TODO
Normal file
14
TODO
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
1. Notification on left click (system information):
|
||||||
|
a) uptime - uptime, kernel information
|
||||||
|
b) cpu, cpuclock, temp - cpu, cpuclock, temp, processor information
|
||||||
|
c) gpu, gputemp - gpu, gpu temp, gpu information
|
||||||
|
d) memory, swap - memory, swap, memory information
|
||||||
|
e) hdd, hddtemp - hdd, hddtemp, disk information
|
||||||
|
f) network - speed, network information
|
||||||
|
g) battery - battery, ac, acpi information
|
||||||
|
2. Tooltip (graphical information):
|
||||||
|
a) cpu, %
|
||||||
|
b) cpuclock, mhz
|
||||||
|
c) memory, %
|
||||||
|
d) swap, %
|
||||||
|
f) network, %
|
20
sources/contents/code/ptmnotify.py
Normal file
20
sources/contents/code/ptmnotify.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from gi.repository import Notify
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class PTMNotify:
|
||||||
|
def __init__(self, parent):
|
||||||
|
"""class definition"""
|
||||||
|
self.parent = parent
|
||||||
|
|
||||||
|
|
||||||
|
def exampleNotify(self):
|
||||||
|
Notify.init ("Hello world")
|
||||||
|
Hello=Notify.Notification.new ("Hello world","This is an example notification.","dialog-information")
|
||||||
|
Hello.show ()
|
||||||
|
|
||||||
|
def createNotification(self):
|
||||||
|
"""function to create notification for label"""
|
||||||
|
|
@ -1,6 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from PyQt4.QtCore import *
|
from PyQt4.QtCore import *
|
||||||
|
from PyQt4.QtGui import *
|
||||||
from PyKDE4.plasma import Plasma
|
from PyKDE4.plasma import Plasma
|
||||||
import config
|
import config
|
||||||
|
|
||||||
@ -26,22 +27,9 @@ class Reinit():
|
|||||||
self.parent.label_order = str(settings.get('label_order', '1345'))
|
self.parent.label_order = str(settings.get('label_order', '1345'))
|
||||||
for label in self.parent.dict_orders.values():
|
for label in self.parent.dict_orders.values():
|
||||||
if ((label == 'cpu') or (label == 'mem') or (label == 'swap') or (label == 'net')):
|
if ((label == 'cpu') or (label == 'mem') or (label == 'swap') or (label == 'net')):
|
||||||
exec ('self.parent.' + label + 'Bool = int(settings.get("' + label + 'Bool", 1))')
|
exec ('self.parent.' + label + 'Bool = int(settings.get("' + label + 'Bool", 2))')
|
||||||
else:
|
else:
|
||||||
exec ('self.parent.' + label + 'Bool = int(settings.get("' + label + 'Bool", 0))')
|
exec ('self.parent.' + label + 'Bool = int(settings.get("' + label + 'Bool", 0))')
|
||||||
# small function for update if errors exist
|
|
||||||
# summ = 0
|
|
||||||
# for label in self.parent.dict_orders.values():
|
|
||||||
# exec ('summ += self.parent.' + label + 'Bool')
|
|
||||||
# if (len(self.parent.label_order) != summ):
|
|
||||||
# for label in self.parent.dict_orders.values():
|
|
||||||
# if ((label == 'cpu') or (label == 'mem') or (label == 'swap') or (label == 'net')):
|
|
||||||
# exec ('self.parent.' + label + 'Bool = 1')
|
|
||||||
# else:
|
|
||||||
# exec ('self.parent.' + label + 'Bool = 0')
|
|
||||||
# exec ('settings.set("' + label + 'Bool", self.parent.' + label + 'Bool)')
|
|
||||||
# self.parent.label_order = '1345'
|
|
||||||
# settings.set('label_order', self.parent.label_order)
|
|
||||||
|
|
||||||
for order in self.parent.label_order:
|
for order in self.parent.label_order:
|
||||||
if (order == "1"):
|
if (order == "1"):
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ToolTip:
|
|
||||||
def __init__(self, parent):
|
|
||||||
"""class definition"""
|
|
||||||
self.parent = parent
|
|
||||||
|
|
||||||
|
|
||||||
def createToolTip(self):
|
|
||||||
"""function to create tool tip for label"""
|
|
@ -58,9 +58,6 @@
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="tristate">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -113,9 +110,6 @@
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="tristate">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -172,9 +166,6 @@ $ccpu - load CPU for each core, %</string>
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="tristate">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -231,9 +222,6 @@ $ccpucl - CPU clock for each core, MHz</string>
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="tristate">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -302,9 +290,6 @@ $ccpucl - CPU clock for each core, MHz</string>
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="tristate">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -360,9 +345,6 @@ $ccpucl - CPU clock for each core, MHz</string>
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="tristate">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -418,9 +400,6 @@ $ccpucl - CPU clock for each core, MHz</string>
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="tristate">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -477,9 +456,6 @@ $memmb - RAM usage, MB</string>
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="tristate">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -536,9 +512,6 @@ $swapmb - swap usage, MB</string>
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="tristate">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -594,9 +567,6 @@ $swapmb - swap usage, MB</string>
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="tristate">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -652,9 +622,6 @@ $swapmb - swap usage, MB</string>
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="tristate">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -712,9 +679,6 @@ $netdev - current network device
|
|||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="tristate">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
Loading…
Reference in New Issue
Block a user