mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-04 01:15:52 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
d7cc354432 | |||
aab456924f | |||
20c2a4eb6b | |||
d63b33903a |
@ -1,3 +1,7 @@
|
||||
Ver.1.7.1:
|
||||
- removed error label
|
||||
* fix bug with zero values in tooltip
|
||||
|
||||
Ver.1.7.0:
|
||||
+ added support of several tags in temperature label
|
||||
+ added tags $cpuN, $cpuclN, $hddN, $tempN, $hddtempN, $up, $down
|
||||
|
4
PKGBUILD
4
PKGBUILD
@ -3,7 +3,7 @@
|
||||
|
||||
pkgname=kdeplasma-applets-pytextmonitor
|
||||
_pkgname=pytextmonitor
|
||||
pkgver=1.7.0
|
||||
pkgver=1.7.1
|
||||
pkgrel=1
|
||||
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm"
|
||||
arch=('i686' 'x86_64')
|
||||
@ -19,7 +19,7 @@ optdepends=("hddtemp: for HDD temperature monitor"
|
||||
makedepends=('automoc4' 'cmake')
|
||||
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
|
||||
install=${pkgname}.install
|
||||
md5sums=('bedeb6f30641b718c5020b1c16673ba2')
|
||||
md5sums=('bdc5020484c0d5cf9404cdedfb51b341')
|
||||
backup=('usr/share/config/extsysmon.conf')
|
||||
|
||||
build () {
|
||||
|
@ -8,7 +8,7 @@ cmake_policy (SET CMP0015 NEW)
|
||||
project (pytextmonitor)
|
||||
set (PROJECT_VERSION_MAJOR 1)
|
||||
set (PROJECT_VERSION_MINOR 7)
|
||||
set (PROJECT_VERSION_PATCH 0)
|
||||
set (PROJECT_VERSION_PATCH 1)
|
||||
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
|
||||
|
||||
message (STATUS "Version: ${PROJECT_VERSION}")
|
||||
|
@ -171,9 +171,6 @@ class pyTextWidget(plasmascript.Applet):
|
||||
self.tooltip.setSubText('')
|
||||
except Exception as strerror:
|
||||
self.tooltip.setSubText(str(strerror))
|
||||
self.label_error = Plasma.Label(self.applet)
|
||||
self.label_error.setText('<font color="red">ERROR</font>')
|
||||
self.layout.addItem(self.label_error)
|
||||
return
|
||||
|
||||
|
||||
|
@ -48,7 +48,10 @@ class Tooltip():
|
||||
bound[0] = value
|
||||
elif (value > bound[1]):
|
||||
bound[1] = value
|
||||
norm = [maxOne[0] / len(values[type]), maxOne[1] / (1.5*(bound[1] - bound[0]))]
|
||||
if ((bound[0] == 0.0) and (bound[0] == 0.0)):
|
||||
norm = [maxOne[0] / len(values[type]), maxOne[1] / 1.5]
|
||||
else:
|
||||
norm = [maxOne[0] / len(values[type]), maxOne[1] / (1.5*(bound[1] - bound[0]))]
|
||||
pen.setColor(QColor(colors[type]))
|
||||
if (down):
|
||||
shift = (types.index(type) - 1) * maxOne[0]
|
||||
|
@ -19,7 +19,7 @@
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>575</width>
|
||||
<height>500</height>
|
||||
<height>593</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
|
Reference in New Issue
Block a user