mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-21 17:49:57 +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:
|
Ver.1.7.0:
|
||||||
+ added support of several tags in temperature label
|
+ added support of several tags in temperature label
|
||||||
+ added tags $cpuN, $cpuclN, $hddN, $tempN, $hddtempN, $up, $down
|
+ added tags $cpuN, $cpuclN, $hddN, $tempN, $hddtempN, $up, $down
|
||||||
|
4
PKGBUILD
4
PKGBUILD
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
pkgname=kdeplasma-applets-pytextmonitor
|
pkgname=kdeplasma-applets-pytextmonitor
|
||||||
_pkgname=pytextmonitor
|
_pkgname=pytextmonitor
|
||||||
pkgver=1.7.0
|
pkgver=1.7.1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm"
|
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
@ -19,7 +19,7 @@ optdepends=("hddtemp: for HDD temperature monitor"
|
|||||||
makedepends=('automoc4' 'cmake')
|
makedepends=('automoc4' 'cmake')
|
||||||
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
|
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
|
||||||
install=${pkgname}.install
|
install=${pkgname}.install
|
||||||
md5sums=('bedeb6f30641b718c5020b1c16673ba2')
|
md5sums=('bdc5020484c0d5cf9404cdedfb51b341')
|
||||||
backup=('usr/share/config/extsysmon.conf')
|
backup=('usr/share/config/extsysmon.conf')
|
||||||
|
|
||||||
build () {
|
build () {
|
||||||
|
@ -8,7 +8,7 @@ cmake_policy (SET CMP0015 NEW)
|
|||||||
project (pytextmonitor)
|
project (pytextmonitor)
|
||||||
set (PROJECT_VERSION_MAJOR 1)
|
set (PROJECT_VERSION_MAJOR 1)
|
||||||
set (PROJECT_VERSION_MINOR 7)
|
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})
|
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
|
||||||
|
|
||||||
message (STATUS "Version: ${PROJECT_VERSION}")
|
message (STATUS "Version: ${PROJECT_VERSION}")
|
||||||
|
@ -171,9 +171,6 @@ class pyTextWidget(plasmascript.Applet):
|
|||||||
self.tooltip.setSubText('')
|
self.tooltip.setSubText('')
|
||||||
except Exception as strerror:
|
except Exception as strerror:
|
||||||
self.tooltip.setSubText(str(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
|
return
|
||||||
|
|
||||||
|
|
||||||
|
@ -48,6 +48,9 @@ class Tooltip():
|
|||||||
bound[0] = value
|
bound[0] = value
|
||||||
elif (value > bound[1]):
|
elif (value > bound[1]):
|
||||||
bound[1] = value
|
bound[1] = value
|
||||||
|
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]))]
|
norm = [maxOne[0] / len(values[type]), maxOne[1] / (1.5*(bound[1] - bound[0]))]
|
||||||
pen.setColor(QColor(colors[type]))
|
pen.setColor(QColor(colors[type]))
|
||||||
if (down):
|
if (down):
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>575</width>
|
<width>575</width>
|
||||||
<height>500</height>
|
<height>593</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
|
Reference in New Issue
Block a user