mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
fix f*cking formats again
This commit is contained in:
parent
1555b22a3b
commit
c9fd746cd0
4
PKGBUILD
4
PKGBUILD
@ -3,7 +3,7 @@
|
|||||||
pkgname=kdeplasma-applets-pytextmonitor
|
pkgname=kdeplasma-applets-pytextmonitor
|
||||||
_pkgname=pytextmonitor
|
_pkgname=pytextmonitor
|
||||||
pkgver=1.7.4
|
pkgver=1.7.4
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
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')
|
||||||
url="http://arcanis.name/projects/pytextmonitor"
|
url="http://arcanis.name/projects/pytextmonitor"
|
||||||
@ -20,7 +20,7 @@ optdepends=("amarok: for music player 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=('a820a3f9d676e1b05c13839d36df4a9d')
|
md5sums=('b7ab42465a3c1f12719883d754e86a51')
|
||||||
backup=('usr/share/config/extsysmon.conf')
|
backup=('usr/share/config/extsysmon.conf')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
@ -348,7 +348,9 @@ class pyTextWidget(plasmascript.Applet):
|
|||||||
devices.reverse()
|
devices.reverse()
|
||||||
for i in devices:
|
for i in devices:
|
||||||
if (line.split('$hdd' + str(i))[0] != line):
|
if (line.split('$hdd' + str(i))[0] != line):
|
||||||
line = line.split('$hdd' + str(i))[0] + str(self.ptm['values']['hdd'][devices[i]]) + line.split('$hdd' + str(i))[1]
|
line = line.split('$hdd' + str(i))[0] +\
|
||||||
|
str(self.ptm['values']['hdd'][self.ptm['names']['hdd'][i]]) +\
|
||||||
|
line.split('$hdd' + str(i))[1]
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
self.setText("hdd", text)
|
self.setText("hdd", text)
|
||||||
|
|
||||||
@ -360,7 +362,9 @@ class pyTextWidget(plasmascript.Applet):
|
|||||||
devices.reverse()
|
devices.reverse()
|
||||||
for i in devices:
|
for i in devices:
|
||||||
if (line.split('$hddtemp' + str(i))[0] != line):
|
if (line.split('$hddtemp' + str(i))[0] != line):
|
||||||
line = line.split('$hddtemp' + str(i))[0] + self.ptm['values']['hddtemp'][devices[i]] + line.split('$hddtemp' + str(i))[1]
|
line = line.split('$hddtemp' + str(i))[0] +\
|
||||||
|
str(self.ptm['values']['hddtemp'][self.ptm['names']['hddtemp'][i]]) +\
|
||||||
|
line.split('$hddtemp' + str(i))[1]
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
self.setText("hddtemp", text)
|
self.setText("hddtemp", text)
|
||||||
|
|
||||||
@ -427,7 +431,9 @@ class pyTextWidget(plasmascript.Applet):
|
|||||||
devices.reverse()
|
devices.reverse()
|
||||||
for i in devices:
|
for i in devices:
|
||||||
if (line.split('$temp' + str(i))[0] != line):
|
if (line.split('$temp' + str(i))[0] != line):
|
||||||
line = line.split('$temp' + str(i))[0] + self.ptm['values']['temp'][devices[i]] + line.split('$temp' + str(i))[1]
|
line = line.split('$temp' + str(i))[0] +\
|
||||||
|
str(self.ptm['values']['temp'][self.ptm['names']['temp'][i]]) +\
|
||||||
|
line.split('$temp' + str(i))[1]
|
||||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
self.setText("temp", text)
|
self.setText("temp", text)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user