Compare commits

...

16 Commits

Author SHA1 Message Date
d7cc354432 edited changelog. Release 1.7.1 2014-04-02 23:50:09 +04:00
aab456924f update archives 2014-04-02 23:49:22 +04:00
20c2a4eb6b release 1.7.1
* fix bug with zero values in tooltip
- removed error label
2014-04-02 23:48:44 +04:00
d63b33903a fix configuration window size 2014-04-02 23:30:55 +04:00
fe77fcb2fd small fix 2014-04-02 23:10:07 +04:00
d226629b45 prepare to release 1.7.0
Commit before merging
2014-04-02 23:00:54 +04:00
413dbb2134 removed net-tools from dep list 2014-04-02 01:47:41 +04:00
b11b4d2462 yae 2014-04-02 00:39:52 +04:00
62dd94a294 edited readme 2014-04-02 00:38:54 +04:00
12d506a16d Merge pull request #11 from arcan1s/experimental
Experimental
2014-04-02 00:37:49 +04:00
363c4327ee commit before merging 2014-04-02 00:35:47 +04:00
a716269e79 edited translations 2014-04-01 23:48:53 +04:00
c66b255e8b fix bugs that were found 2014-04-01 23:35:31 +04:00
decf714e74 commit before testing 2014-04-01 22:39:32 +04:00
405dda5144 start work on V.1.7.0
edited ui
2014-04-01 09:59:44 +04:00
0f8b9dc627 updated screenshots 2014-04-01 08:07:40 +04:00
30 changed files with 2690 additions and 1085 deletions

View File

@ -1,3 +1,17 @@
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
+ added label with custom command
+ added tooltips for CPU, CPU clock, memory, swap and network labels
- removed tags @@...@@, $temp, $ccpu, $ccpucl, $net
* changes in settings
* ptm now does not require net-tools
* refactoring
Ver.1.6.1: Ver.1.6.1:
+ added support of several devices in hddtemp label + added support of several devices in hddtemp label
- fixed #6 - fixed #6

View File

@ -3,13 +3,13 @@
pkgname=kdeplasma-applets-pytextmonitor pkgname=kdeplasma-applets-pytextmonitor
_pkgname=pytextmonitor _pkgname=pytextmonitor
pkgver=1.6.1 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')
url="http://arcanis.name/projects/pytextmonitor" url="http://arcanis.name/projects/pytextmonitor"
license=('GPLv3') license=('GPLv3')
depends=('kdebase-workspace' 'kdebindings-python2' 'lm_sensors' 'net-tools' 'sysstat') depends=('kdebase-workspace' 'kdebindings-python2' 'lm_sensors' 'sysstat')
optdepends=("hddtemp: for HDD temperature monitor" optdepends=("hddtemp: for HDD temperature monitor"
"catalyst: for GPU monitor" "catalyst: for GPU monitor"
"nvidia-utils: for GPU monitor" "nvidia-utils: for GPU monitor"
@ -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=('aa6c5f00b33c073f3732bd921171a557') md5sums=('bdc5020484c0d5cf9404cdedfb51b341')
backup=('usr/share/config/extsysmon.conf') backup=('usr/share/config/extsysmon.conf')
build () { build () {

122
README.md
View File

@ -14,68 +14,111 @@ For edited output you must open Settings window and setup output format in lines
* label `$isotime` - time in iso format * label `$isotime` - time in iso format
* label `$shorttime` - time in short locale format * label `$shorttime` - time in short locale format
* label `$longtime` - time in long locale format * label `$longtime` - time in long locale format
* label `$custom` - will enable custom time format * label `$custom` - custom time format
* label `$dddd` - weekday in long format (required `$custom` flag)
* label `$ddd` - weekday in short format (required `$custom` flag)
* label `$dd` - day (required `$custom` flag)
* label `$d` - day without zero (required `$custom` flag)
* label `$MMMM` - month in long format (required `$custom` flag)
* label `$MMM` - month in short format (required `$custom` flag)
* label `$MM` - month (required `$custom` flag)
* label `$M` - month without zero (required `$custom` flag)
* label `$yyyy` - year (required `$custom` flag)
* label `$yy` - year in short format (required `$custom` flag)
* label `$hh` - hours (required `$custom` flag)
* label `$h` - hours without zero (required `$custom` flag)
* label `$mm` - minutes (required `$custom` flag)
* label `$m` - minutes without zero (required `$custom` flag)
* label `$ss` - seconds (required `$custom` flag)
* label `$s` - seconds without zero (required `$custom` flag)
* label `$uptime` - uptime, <i>---d--h--m</i> * label `$uptime` - uptime, <i>---d--h--m</i>
* label `$custom` - will enable custom uptime format * label `$custom` - custom uptime format
* label `$ds` - uptime days (required `$custom` flag)
* label `$hs` - uptime hours (required `$custom` flag)
* label `$ms` - uptime minutes (required `$custom` flag)
* label `$cpu` - total load cpu, <i>%</i> * label `$cpu` - total load cpu, <i>%</i>
* label `$ccpu` - load CPU for each core, <i>%</i> * label `$cpuN` - load CPU for core N, <i>%</i>. N should be in range 0 to 8
* label `$cpucl` - average cpu clock, <i>MHz</i> * label `$cpucl` - average cpu clock, <i>MHz</i>
* label `$ccpucl` - cpu clock for each core, <i>MHz</i> * label `$cpuclN` - cpu clock for core N, <i>MHz</i>. N should be in range 0 to 8
* label `$temp` - average temperature in system * label `$tempN` - temperature for device N. For example, `$temp0`
* label `$gpu` - GPU usage, <i>%</i>. `aticonfig` or `nvidia-smi` must be installed * label `$gpu` - GPU usage, <i>%</i>. `aticonfig` or `nvidia-smi` must be installed
* label `$gputemp` - GPU temperature. `aticonfig` or `nvidia-smi` must be installed * label `$gputemp` - GPU temperature. `aticonfig` or `nvidia-smi` must be installed
* label `$mem` - usage memory, <i>%</i> * label `$mem` - usage memory, <i>%</i>
* label `$memmb` - usage memory, <i>MB</i> * label `$memmb` - usage memory, <i>MB</i>
* label `$swap` - swap, <i>%</i> * label `$swap` - swap, <i>%</i>
* label `$swapmb` - swap, <i>MB</i> * label `$swapmb` - swap, <i>MB</i>
* label `@@/@@` (in hdd label) - mount point (`/` in example) usage, <i>%</i>. Separator for mount points list is `;`, for example `@@/;/home;/mnt/global@@` * label `$hddN` - usage for mount point N, <i>%</i>. For example, `$hdd0`
* label `@@/dev/sda@@` (in hddtemp label) - HDD (`/dev/sda` in example) temperature. Separator for device list is `;`, for example `@@/dev/sda;/dev/sdb@@`. `hddtemp` must be installed * label `$hddtempN` - temperature for HDD N. For example, `$hddtemp0`
* label `$net` - download and upload speed, <i>KB/s</i>. You may specify network device: something like `@@eth0@@` * label `$down` - download speed, <i>KB/s</i>
* label `$up` - upload speed, <i>KB/s</i>
* label `$netdev` - current network device * label `$netdev` - current network device
* label `$bat` - battery charge, <i>%</i>. Battery device may be set below. File (`/sys/class/power_supply/BAT0/capacity` by default) must contain only battery charge in percent * label `$bat` - battery charge, <i>%</i>
* label `$ac` - status AC device. Return <i>(*)</i> if AC device is online or <i>( )</i> if offline. AC device may be set below. FIle (`/sys/class/power_supply/AC/online` by default) must contain `1` if AC is online * label `$ac` - status AC device. Return <i>(*)</i> if AC device is online or <i>( )</i> if offline
* label `$artist` - current song artist. One of supported music players must be installed
* label `$album` - current song album. One of supported music players must be installed * label `$album` - current song album. One of supported music players must be installed
* label `$artist` - current song artist. One of supported music players must be installed
* label `$progress` - current song progress. One of supported music players must be installed (mpd does not support yet) * label `$progress` - current song progress. One of supported music players must be installed (mpd does not support yet)
* label `$time` - current song duration. One of supported music players must be installed * label `$time` - current song duration. One of supported music players must be installed
* label `$title` - current song title. One of supported music players must be installed * label `$title` - current song title. One of supported music players must be installed
* label `$custom` - returns output for custom command
Label order will changed if you change slider position. HTML tags in label work normally. Label order will changed if you change slider position. HTML tags in label work normally.
**NOTE** you don't may set to show $cpu in swap label for example. <b>$cpu will work only in cpu label</b>. **NOTE** you don't may set to show $cpu in swap label for example. <b>$cpu will work only in cpu label</b>.
Advanced settings
-----------------
**Custom time**
* label `$dddd` - weekday in long format
* label `$ddd` - weekday in short format
* label `$dd` - day
* label `$d` - day without zero
* label `$MMMM` - month in long format
* label `$MMM` - month in short format
* label `$MM` - month
* label `$M` - month without zero
* label `$yyyy` - year
* label `$yy` - year in short format
* label `$hh` - hours
* label `$h` - hours without zero
* label `$mm` - minutes
* label `$m` - minutes without zero
* label `$ss` - seconds
* label `$s` - seconds without zero
**Custom uptime**
* label `$ds` - uptime days
* label `$hs` - uptime hours
* label `$ms` - uptime minutes
**Temperature devices**
List of devices, which will be observed in temp label (combo box items come from `sensors`). List widget is editable, delete key will remove current item.
**Mount points**
List of mount points, which will be observed in hdd label (combo box items come from `mount`). List widget is editable, delete key will remove current item.
**HDD**
List of hard disk devices, which will be observed in hddtem label (combo box items come from `find`). List widget is editable, delete key will remove current item.
**Network directory**
Path to directory, which contains network devices information. Default is `/sys/class/net`. Required for auto select network device.
**Network device**
Use specified device as active. Combo box items come from **network directory**. Will disable auto select network device.
**Battery device**
File with battery information. File (`/sys/class/power_supply/BAT0/capacity` by default) should contain only battery charge in percent.
**AC device**
File with AC information. File (`/sys/class/power_supply/AC/online` by default) must contain `1` if AC is online.
**Music player**
Select one of supported music playes for player label.
**Custom command**
*NOTE* This can cause the computer freeze.
A command, which will be run for custom label.
Tooltip settings
----------------
Since version 1.7.0 CPU, CPU clock, memory, swap and network labels support graphical tooltip. To enable them just make the needed checkboxes a fully checked. The number of stored values can be set in the tab. Colors of graphs are configurable too.
DataEngine configuration DataEngine configuration
------------------------ ------------------------
You may edit DataEngine configuration. It is `/usr/share/config/extsysmon.conf` or `$HOME/share/config/extsysmon.conf` depending on the type of installation. Uncomment needed line and edit it. You may edit DataEngine configuration. It is `/usr/share/config/extsysmon.conf` or `$HOME/share/config/extsysmon.conf` depending on the type of installation. Uncomment needed line and edit it.
TODO (wish) list
----------------
Tooltip (graphical information):
* cpu, %
* cpuclock, mhz
* memory, %
* swap, %
* network, %
Instruction Instruction
=========== ===========
@ -84,7 +127,6 @@ Dependencies
* kdebase-workspace * kdebase-workspace
* kdebindings-python2 * kdebindings-python2
* lm_sensors (for definition temperature device) * lm_sensors (for definition temperature device)
* net-tools (for definition network device)
* sysstat (for notification) * sysstat (for notification)
Optional dependencies Optional dependencies

Binary file not shown.

Before

Width:  |  Height:  |  Size: 175 KiB

BIN
screenshots/dataengine.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 45 KiB

BIN
screenshots/panel_01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
screenshots/panel_02.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
screenshots/panel_03.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 189 KiB

View File

@ -7,7 +7,7 @@ cmake_policy (SET CMP0015 NEW)
project (pytextmonitor) project (pytextmonitor)
set (PROJECT_VERSION_MAJOR 1) set (PROJECT_VERSION_MAJOR 1)
set (PROJECT_VERSION_MINOR 6) set (PROJECT_VERSION_MINOR 7)
set (PROJECT_VERSION_PATCH 1) 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})

View File

@ -1,4 +1,4 @@
# Configuration file for Extended Systemmonitor DataEngine (v.1.6) # Configuration file for Extended Systemmonitor DataEngine
# Uncomment needed lines # Uncomment needed lines
# Set GPU device # Set GPU device

View File

@ -1,20 +1,22 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright 2012 Alex Oleshkevich <alex.oleshkevich@gmail.com> ############################################################################
# # Copyright 2012 Alex Oleshkevich <alex.oleshkevich@gmail.com> #
# This program is free software; you can redistribute it and/or modify # #
# it under the terms of the GNU General Public License as published by # This program is free software; you can redistribute it and/or modify #
# the Free Software Foundation; either version 2 of the License, or # it under the terms of the GNU General Public License as published by #
# (at your option) any later version. # the Free Software Foundation; either version 2 of the License, or #
# # (at your option) any later version. #
# This program is distributed in the hope that it will be useful, # #
# but WITHOUT ANY WARRANTY; without even the implied warranty of # This program is distributed in the hope that it will be useful, #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # but WITHOUT ANY WARRANTY; without even the implied warranty of #
# GNU General Public License for more details. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# # GNU General Public License for more details. #
# You should have received a copy of the GNU General Public License along # #
# with this program; if not, write to the Free Software Foundation, Inc., # You should have received a copy of the GNU General Public License along #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # with this program; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #
############################################################################
from util import * from util import *

View File

@ -17,6 +17,7 @@
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ # # along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
############################################################################ ############################################################################
from PyQt4.QtCore import *
from PyQt4.QtGui import * from PyQt4.QtGui import *
from PyKDE4.kdecore import * from PyKDE4.kdecore import *
from PyKDE4.kdeui import * from PyKDE4.kdeui import *
@ -53,6 +54,39 @@ class ConfigDefinition:
self.parent.font_weight = self.configpage.ui.spinBox_weight.value() self.parent.font_weight = self.configpage.ui.spinBox_weight.value()
settings.set('font_weight', self.parent.font_weight) settings.set('font_weight', self.parent.font_weight)
self.parent.custom_time = str(self.configpage.ui.lineEdit_timeFormat.text())
settings.set('custom_time', self.parent.custom_time)
self.parent.custom_uptime = str(self.configpage.ui.lineEdit_uptimeFormat.text())
settings.set('custom_uptime', self.parent.custom_uptime)
# temp and mount below
self.parent.hddNames = []
self.parent.hdd = {}
for i in range(self.configpage.ui.listWidget_hddDevice.count()):
item = self.configpage.ui.listWidget_hddDevice.item(i).text()
self.parent.hddNames.append(str(item))
self.parent.hdd[str(item)] =" 0.0"
settings.set('hdd', '@@'.join(self.parent.hddNames))
self.parent.netdir = str(self.configpage.ui.lineEdit_netdir.text())
settings.set('netdir', self.parent.netdir)
self.parent.netdevBool = str(self.configpage.ui.checkBox_netdev.checkState())
settings.set('netdevBool', self.parent.netdevBool)
self.parent.custom_netdev = str(self.configpage.ui.comboBox_netdev.currentText())
settings.set('custom_netdev', self.parent.custom_netdev)
self.parent.battery_device = str(self.configpage.ui.lineEdit_batdev.text())
settings.set('battery_device', self.parent.battery_device)
self.parent.ac_device = str(self.configpage.ui.lineEdit_acdev.text())
settings.set('ac_device', self.parent.ac_device)
self.parent.player_name = self.configpage.ui.comboBox_playerSelect.currentIndex()
settings.set('player_name', self.parent.player_name)
self.parent.custom_command = str(self.configpage.ui.lineEdit_customCommand.text())
settings.set('custom_command', self.parent.custom_command)
self.parent.tooltipNum = self.configpage.ui.spinBox_tooltipNum.value()
settings.set('tooltip_num', self.parent.tooltipNum)
for label in ['cpu', 'cpuclock', 'mem', 'swap', 'down', 'up']:
exec ('self.parent.tooltipColors["' + label + '"] = str(self.configpage.kcolorcombo_' + label + '.color().name())')
exec ('settings.set("' + label + '_color", self.parent.tooltipColors["' + label + '"])')
# disconnecting from source and clear layout # disconnecting from source and clear layout
if (self.parent.uptimeBool > 0): if (self.parent.uptimeBool > 0):
self.parent.systemmonitor.disconnectSource("system/uptime", self.parent) self.parent.systemmonitor.disconnectSource("system/uptime", self.parent)
@ -60,36 +94,28 @@ class ConfigDefinition:
self.parent.layout.removeItem(self.parent.label_uptime) self.parent.layout.removeItem(self.parent.label_uptime)
if (self.parent.cpuBool > 0): if (self.parent.cpuBool > 0):
self.parent.systemmonitor.disconnectSource("cpu/system/TotalLoad", self.parent) self.parent.systemmonitor.disconnectSource("cpu/system/TotalLoad", self.parent)
if (self.parent.cpuFormat.split('$ccpu')[0] != self.parent.cpuFormat): for core in self.parent.cpuCore.keys():
self.parent.label_cpu.setText('')
self.parent.layout.removeItem(self.parent.label_cpu)
self.parent.label_cpu1.setText('')
self.parent.layout.removeItem(self.parent.label_cpu1)
for core in range(self.parent.numCores):
self.parent.systemmonitor.disconnectSource("cpu/cpu"+str(core)+"/TotalLoad", self.parent) self.parent.systemmonitor.disconnectSource("cpu/cpu"+str(core)+"/TotalLoad", self.parent)
exec ("self.parent.label_coreCpu" + str(core) + ".setText('')")
exec ("self.parent.layout.removeItem(self.parent.label_coreCpu" + str(core) + ")")
else:
self.parent.label_cpu.setText('') self.parent.label_cpu.setText('')
self.parent.layout.removeItem(self.parent.label_cpu) self.parent.layout.removeItem(self.parent.label_cpu)
if (self.parent.cpuclockBool > 0): if (self.parent.cpuclockBool > 0):
self.parent.systemmonitor.disconnectSource("cpu/system/AverageClock", self.parent) self.parent.systemmonitor.disconnectSource("cpu/system/AverageClock", self.parent)
if (self.parent.cpuclockFormat.split('$ccpu')[0] != self.parent.cpuclockFormat): for core in self.parent.cpuClockCore.keys():
self.parent.label_cpuclock.setText('')
self.parent.layout.removeItem(self.parent.label_cpuclock)
self.parent.label_cpuclock1.setText('')
self.parent.layout.removeItem(self.parent.label_cpuclock1)
for core in range(self.parent.numCores):
self.parent.systemmonitor.disconnectSource("cpu/cpu"+str(core)+"/clock", self.parent) self.parent.systemmonitor.disconnectSource("cpu/cpu"+str(core)+"/clock", self.parent)
exec ("self.parent.label_coreCpuclock" + str(core) + ".setText('')")
exec ("self.parent.layout.removeItem(self.parent.label_coreCpuclock" + str(core) + ")")
else:
self.parent.label_cpuclock.setText('') self.parent.label_cpuclock.setText('')
self.parent.layout.removeItem(self.parent.label_cpuclock) self.parent.layout.removeItem(self.parent.label_cpuclock)
if (self.parent.tempBool > 0): if (self.parent.tempBool > 0):
self.parent.systemmonitor.disconnectSource(self.parent.tempdev, self.parent) for item in self.parent.temp:
self.parent.systemmonitor.disconnectSource(item, self.parent)
self.parent.label_temp.setText('') self.parent.label_temp.setText('')
self.parent.layout.removeItem(self.parent.label_temp) self.parent.layout.removeItem(self.parent.label_temp)
self.parent.tempNames = []
self.parent.temp = {}
for i in range(self.configpage.ui.listWidget_tempDevice.count()):
item = self.configpage.ui.listWidget_tempDevice.item(i).text()
self.parent.tempNames.append(str(item))
self.parent.temp[str(item)] =" 0.0"
settings.set('temp_device', '@@'.join(self.parent.tempNames))
if (self.parent.gpuBool > 0): if (self.parent.gpuBool > 0):
self.parent.extsysmon.disconnectSource("gpu", self.parent) self.parent.extsysmon.disconnectSource("gpu", self.parent)
self.parent.label_gpu.setText('') self.parent.label_gpu.setText('')
@ -112,14 +138,17 @@ class ConfigDefinition:
self.parent.label_swap.setText('') self.parent.label_swap.setText('')
self.parent.layout.removeItem(self.parent.label_swap) self.parent.layout.removeItem(self.parent.label_swap)
if (self.parent.hddBool > 0): if (self.parent.hddBool > 0):
for mount in self.parent.mountPoints: for item in self.parent.mount:
self.parent.systemmonitor.disconnectSource("partitions" + mount + "/filllevel", self.parent) self.parent.systemmonitor.disconnectSource("partitions" + item + "/filllevel", self.parent)
exec ('self.parent.label_hdd_' + ''.join(mount.split('/')) + '.setText("")') self.parent.label_hdd.setText('')
exec ("self.parent.layout.removeItem(self.parent.label_hdd_" + ''.join(mount.split('/')) + ")") self.parent.layout.removeItem(self.parent.label_hdd)
self.parent.label_hdd0.setText('') self.parent.mountNames = []
self.parent.label_hdd1.setText('') self.parent.mount = {}
self.parent.layout.removeItem(self.parent.label_hdd0) for i in range(self.configpage.ui.listWidget_mount.count()):
self.parent.layout.removeItem(self.parent.label_hdd1) item = self.configpage.ui.listWidget_mount.item(i).text()
self.parent.mountNames.append(str(item))
self.parent.mount[str(item)] =" 0.0"
settings.set('mount', '@@'.join(self.parent.mountNames))
if (self.parent.hddtempBool > 0): if (self.parent.hddtempBool > 0):
self.parent.extsysmon.disconnectSource("hddtemp", self.parent) self.parent.extsysmon.disconnectSource("hddtemp", self.parent)
self.parent.label_hddtemp.setText('') self.parent.label_hddtemp.setText('')
@ -127,10 +156,8 @@ class ConfigDefinition:
if (self.parent.netBool > 0): if (self.parent.netBool > 0):
self.parent.systemmonitor.disconnectSource("network/interfaces/"+self.parent.netdev+"/transmitter/data", self.parent) self.parent.systemmonitor.disconnectSource("network/interfaces/"+self.parent.netdev+"/transmitter/data", self.parent)
self.parent.systemmonitor.disconnectSource("network/interfaces/"+self.parent.netdev+"/receiver/data", self.parent) self.parent.systemmonitor.disconnectSource("network/interfaces/"+self.parent.netdev+"/receiver/data", self.parent)
self.parent.label_netDown.setText('') self.parent.label_net.setText('')
self.parent.label_netUp.setText('') self.parent.layout.removeItem(self.parent.label_net)
self.parent.layout.removeItem(self.parent.label_netUp)
self.parent.layout.removeItem(self.parent.label_netDown)
if (self.parent.batBool > 0): if (self.parent.batBool > 0):
self.parent.label_bat.setText('') self.parent.label_bat.setText('')
self.parent.layout.removeItem(self.parent.label_bat) self.parent.layout.removeItem(self.parent.label_bat)
@ -142,8 +169,11 @@ class ConfigDefinition:
self.parent.timemon.disconnectSource("Local", self.parent) self.parent.timemon.disconnectSource("Local", self.parent)
self.parent.label_time.setText('') self.parent.label_time.setText('')
self.parent.layout.removeItem(self.parent.label_time) self.parent.layout.removeItem(self.parent.label_time)
if (self.parent.customBool > 0):
self.parent.label_custom.setText('')
self.parent.layout.removeItem(self.parent.label_custom)
self.parent.label_order = "--------------" self.parent.label_order = "---------------"
for label in self.parent.dict_orders.keys(): for label in self.parent.dict_orders.keys():
exec ('self.parent.' + self.parent.dict_orders[label] + 'Bool = ' + str(self.configpage.checkboxes[self.parent.dict_orders[label]].checkState())) exec ('self.parent.' + self.parent.dict_orders[label] + 'Bool = ' + str(self.configpage.checkboxes[self.parent.dict_orders[label]].checkState()))
@ -157,18 +187,6 @@ class ConfigDefinition:
exec ('self.parent.' + self.parent.dict_orders[label] + 'Format = str(self.configpage.lineedits[self.parent.dict_orders[label]].text())') exec ('self.parent.' + self.parent.dict_orders[label] + 'Format = str(self.configpage.lineedits[self.parent.dict_orders[label]].text())')
exec ('settings.set("' + self.parent.dict_orders[label] + 'Format", self.parent.' + self.parent.dict_orders[label] + 'Format)') exec ('settings.set("' + self.parent.dict_orders[label] + 'Format", self.parent.' + self.parent.dict_orders[label] + 'Format)')
exec ('settings.set("' + self.parent.dict_orders[label] + 'Bool", self.parent.' + self.parent.dict_orders[label] + 'Bool)') exec ('settings.set("' + self.parent.dict_orders[label] + 'Bool", self.parent.' + self.parent.dict_orders[label] + 'Bool)')
if (self.parent.dict_orders[label] == 'bat'):
self.parent.battery_device = str(self.configpage.ui.lineEdit_batdev.text())
self.parent.ac_device = str(self.configpage.ui.lineEdit_acdev.text())
settings.set('battery_device', self.parent.battery_device)
settings.set('ac_device', self.parent.ac_device)
elif (self.parent.dict_orders[label] == 'temp'):
self.parent.tempdev = str(self.configpage.ui.comboBox_temp.currentText())
settings.set('temp_device', self.parent.tempdev)
elif (self.parent.dict_orders[label] == 'player'):
self.parent.player_name = self.configpage.ui.comboBox_player.currentIndex()
settings.set('player_name', self.parent.player_name)
self.parent.label_order = ''.join(self.parent.label_order.split('-')) self.parent.label_order = ''.join(self.parent.label_order.split('-'))
settings.set('label_order', self.parent.label_order) settings.set('label_order', self.parent.label_order)
@ -191,6 +209,60 @@ class ConfigDefinition:
else: else:
self.configpage.ui.comboBox_style.setCurrentIndex(1) self.configpage.ui.comboBox_style.setCurrentIndex(1)
self.configpage.ui.spinBox_weight.setValue(settings.get('font_weight', 400).toInt()[0]) self.configpage.ui.spinBox_weight.setValue(settings.get('font_weight', 400).toInt()[0])
self.configpage.ui.lineEdit_timeFormat.setText(str(settings.get('custom_time', '$hh:$mm')))
self.configpage.ui.lineEdit_uptimeFormat.setText(str(settings.get('custom_uptime', '$ds,$hs,$ms')))
commandOut = commands.getoutput("sensors")
for item in commandOut.split("\n\n"):
for device in item.split("\n"):
if (device.find('\xc2\xb0C') > -1):
try:
tempdev = 'lmsensors/' + item.split("\n")[0] + '/' + '_'.join(device.split(":")[0].split())
self.configpage.ui.comboBox_tempDevice.addItem(tempdev)
except:
pass
self.configpage.ui.listWidget_tempDevice.clear()
for item in str(settings.get('temp_device', '')).split('@@'):
if (len(item) > 0):
self.configpage.ui.listWidget_tempDevice.addItem(item)
commandOut = commands.getoutput("mount")
for item in commandOut.split("\n"):
try:
mount = item.split(' on ')[1].split(' type ')[0]
self.configpage.ui.comboBox_mount.addItem(mount)
except:
pass
self.configpage.ui.listWidget_mount.clear()
for item in str(settings.get('mount', '/')).split('@@'):
self.configpage.ui.listWidget_mount.addItem(item)
commandOut = commands.getoutput("find /dev -name '[hs]d[a-z]'")
for item in commandOut.split("\n"):
try:
self.configpage.ui.comboBox_hddDevice.addItem(item)
except:
pass
self.configpage.ui.listWidget_hddDevice.clear()
for item in str(settings.get('hdd', '/dev/sda')).split('@@'):
self.configpage.ui.listWidget_hddDevice.addItem(item)
self.configpage.ui.lineEdit_netdir.setText(str(settings.get('netdir', '/sys/class/net')))
self.configpage.ui.checkBox_netdev.setCheckState(settings.get('netdevBool', 0).toInt()[0])
for item in QDir.entryList(QDir(str(settings.get('netdir', '/sys/class/net'))), QDir.Dirs | QDir.NoDotAndDotDot):
self.configpage.ui.comboBox_netdev.addItem(item)
index = self.configpage.ui.comboBox_netdev.findText(str(settings.get('custom_netdev', 'lo')))
self.configpage.ui.comboBox_netdev.setCurrentIndex(index)
self.configpage.ui.lineEdit_batdev.setText(str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity')))
self.configpage.ui.lineEdit_acdev.setText(str(settings.get('ac_device', '/sys/class/power_supply/AC/online')))
self.configpage.ui.comboBox_playerSelect.setCurrentIndex(settings.get('player_name', 0).toInt()[0])
self.configpage.ui.lineEdit_customCommand.setText(str(settings.get('custom_command', 'wget -qO- http://ifconfig.me/ip')))
self.configpage.ui.spinBox_tooltipNum.setValue(settings.get('tooltip_num', 100).toInt()[0])
self.configpage.ui.kcolorcombo_cpu.setColor(QColor(str(settings.get('cpu_color', '#ff0000'))))
self.configpage.ui.kcolorcombo_cpuclock.setColor(QColor(str(settings.get('cpuclock_color', '#00ff00'))))
self.configpage.ui.kcolorcombo_mem.setColor(QColor(str(settings.get('mem_color', '#0000ff'))))
self.configpage.ui.kcolorcombo_swap.setColor(QColor(str(settings.get('swap_color', '#ffff00'))))
self.configpage.ui.kcolorcombo_down.setColor(QColor(str(settings.get('down_color', '#00ffff'))))
self.configpage.ui.kcolorcombo_up.setColor(QColor(str(settings.get('up_color', '#ff00ff'))))
for label in self.parent.dict_orders.keys(): for label in self.parent.dict_orders.keys():
exec ('bool = self.parent.' + self.parent.dict_orders[label] + 'Bool') exec ('bool = self.parent.' + self.parent.dict_orders[label] + 'Bool')
self.configpage.checkboxes[self.parent.dict_orders[label]].setCheckState(bool) self.configpage.checkboxes[self.parent.dict_orders[label]].setCheckState(bool)
@ -200,22 +272,6 @@ class ConfigDefinition:
self.configpage.lineedits[self.parent.dict_orders[label]].setText(str(settings.get(self.parent.dict_orders[label] + 'NonFormat', self.parent.dict_defFormat[self.parent.dict_orders[label]]))) self.configpage.lineedits[self.parent.dict_orders[label]].setText(str(settings.get(self.parent.dict_orders[label] + 'NonFormat', self.parent.dict_defFormat[self.parent.dict_orders[label]])))
else: else:
self.configpage.lineedits[self.parent.dict_orders[label]].setText(str(settings.get(self.parent.dict_orders[label] + 'Format', self.parent.dict_defFormat[self.parent.dict_orders[label]]))) self.configpage.lineedits[self.parent.dict_orders[label]].setText(str(settings.get(self.parent.dict_orders[label] + 'Format', self.parent.dict_defFormat[self.parent.dict_orders[label]])))
if (self.parent.dict_orders[label] == 'bat'):
self.configpage.ui.lineEdit_batdev.setText(str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity')))
self.configpage.ui.lineEdit_acdev.setText(str(settings.get('ac_device', '/sys/class/power_supply/AC/online')))
elif (self.parent.dict_orders[label] == 'temp'):
self.configpage.ui.comboBox_temp.addItem(str(settings.get('temp_device', '<select device>')))
commandOut = commands.getoutput("sensors")
for adapter in commandOut.split("\n\n"):
for device in adapter.split("\n"):
if (device.find('\xc2\xb0C') > -1):
try:
tempdev = 'lmsensors/' + adapter.split('\n')[0] + '/' + '_'.join(device.split(":")[0].split())
self.configpage.ui.comboBox_temp.addItem(tempdev)
except:
pass
elif (self.parent.dict_orders[label] == 'player'):
self.configpage.ui.comboBox_player.setCurrentIndex(int(settings.get('player_name', 0)))
# add config page # add config page
page = parent.addPage(self.configpage, i18n(self.parent.name())) page = parent.addPage(self.configpage, i18n(self.parent.name()))

View File

@ -37,42 +37,108 @@ class ConfigWindow(QWidget):
'hddtemp':self.ui.checkBox_hddTemp, 'mem':self.ui.checkBox_mem, 'hddtemp':self.ui.checkBox_hddTemp, 'mem':self.ui.checkBox_mem,
'net':self.ui.checkBox_net, 'swap':self.ui.checkBox_swap, 'net':self.ui.checkBox_net, 'swap':self.ui.checkBox_swap,
'temp':self.ui.checkBox_temp, 'uptime':self.ui.checkBox_uptime, 'temp':self.ui.checkBox_temp, 'uptime':self.ui.checkBox_uptime,
'player':self.ui.checkBox_player, 'time':self.ui.checkBox_time} 'player':self.ui.checkBox_player, 'time':self.ui.checkBox_time,
self.sliders = {'bat':self.ui.slider_bat, 'cpu':self.ui.slider_cpu, 'custom':self.ui.checkBox_custom}
'cpuclock':self.ui.slider_cpuclock, 'gpu':self.ui.slider_gpu,
'gputemp':self.ui.slider_gpuTemp, 'hdd':self.ui.slider_hdd,
'hddtemp':self.ui.slider_hddTemp, 'mem':self.ui.slider_mem,
'net':self.ui.slider_net, 'swap':self.ui.slider_swap,
'temp':self.ui.slider_temp, 'uptime':self.ui.slider_uptime,
'player':self.ui.slider_player, 'time':self.ui.slider_time}
self.lineedits = {'bat':self.ui.lineEdit_bat, 'cpu':self.ui.lineEdit_cpu, self.lineedits = {'bat':self.ui.lineEdit_bat, 'cpu':self.ui.lineEdit_cpu,
'cpuclock':self.ui.lineEdit_cpuclock, 'gpu':self.ui.lineEdit_gpu, 'cpuclock':self.ui.lineEdit_cpuclock, 'gpu':self.ui.lineEdit_gpu,
'gputemp':self.ui.lineEdit_gpuTemp, 'hdd':self.ui.lineEdit_hdd, 'gputemp':self.ui.lineEdit_gpuTemp, 'hdd':self.ui.lineEdit_hdd,
'hddtemp':self.ui.lineEdit_hddTemp, 'mem':self.ui.lineEdit_mem, 'hddtemp':self.ui.lineEdit_hddTemp, 'mem':self.ui.lineEdit_mem,
'net':self.ui.lineEdit_net, 'swap':self.ui.lineEdit_swap, 'net':self.ui.lineEdit_net, 'swap':self.ui.lineEdit_swap,
'temp':self.ui.lineEdit_temp, 'uptime':self.ui.lineEdit_uptime, 'temp':self.ui.lineEdit_temp, 'uptime':self.ui.lineEdit_uptime,
'player':self.ui.lineEdit_player, 'time':self.ui.lineEdit_time} 'player':self.ui.lineEdit_player, 'time':self.ui.lineEdit_time,
'custom':self.ui.lineEdit_custom}
self.sliders = {'bat':self.ui.slider_bat, 'cpu':self.ui.slider_cpu,
'cpuclock':self.ui.slider_cpuclock, 'gpu':self.ui.slider_gpu,
'gputemp':self.ui.slider_gpuTemp, 'hdd':self.ui.slider_hdd,
'hddtemp':self.ui.slider_hddTemp, 'mem':self.ui.slider_mem,
'net':self.ui.slider_net, 'swap':self.ui.slider_swap,
'temp':self.ui.slider_temp, 'uptime':self.ui.slider_uptime,
'player':self.ui.slider_player, 'time':self.ui.slider_time,
'custom':self.ui.slider_custom}
for item in self.checkboxes.values(): QObject.connect(self.ui.checkBox_netdev, SIGNAL("stateChanged(int)"), self.setNetdevEnabled)
QObject.connect(item, SIGNAL("stateChanged(int)"), self.setStatus) QObject.connect(self.ui.pushButton_hddDevice, SIGNAL("clicked()"), self.addHddDevice)
QObject.connect(self.ui.pushButton_mount, SIGNAL("clicked()"), self.addMount)
QObject.connect(self.ui.pushButton_tempDevice, SIGNAL("clicked()"), self.addTempDevice)
QObject.connect(self.ui.listWidget_hddDevice, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_hddDevice.openPersistentEditor)
QObject.connect(self.ui.listWidget_mount, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_mount.openPersistentEditor)
QObject.connect(self.ui.listWidget_tempDevice, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_tempDevice.openPersistentEditor)
for item in self.sliders.values(): for item in self.sliders.values():
QObject.connect(item, SIGNAL("valueChanged(int)"), self.setSlider) QObject.connect(item, SIGNAL("valueChanged(int)"), self.setSlider)
for item in self.checkboxes.values():
QObject.connect(item, SIGNAL("stateChanged(int)"), self.setStatus)
def keyPressEvent(self, event):
"""delete events"""
if (event.key() == Qt.Key_Delete):
if (self.ui.listWidget_hddDevice.hasFocus() and
(self.ui.listWidget_hddDevice.currentRow() > -1)):
self.ui.listWidget_hddDevice.takeItem(self.ui.listWidget_hddDevice.currentRow())
elif (self.ui.listWidget_mount.hasFocus() and
(self.ui.listWidget_mount.currentRow() > -1)):
self.ui.listWidget_mount.takeItem(self.ui.listWidget_mount.currentRow())
elif (self.ui.listWidget_tempDevice.hasFocus() and
(self.ui.listWidget_tempDevice.currentRow() > -1)):
self.ui.listWidget_tempDevice.takeItem(self.ui.listWidget_tempDevice.currentRow())
def addHddDevice(self):
"""function to add mount points"""
self.ui.listWidget_hddDevice.clearSelection()
if (self.ui.listWidget_hddDevice.count() > 9):
self.ui.listWidget_hddDevice.takeItem(0)
self.ui.listWidget_hddDevice.addItem(self.ui.comboBox_hddDevice.currentText())
def addMount(self):
"""function to add mount points"""
self.ui.listWidget_mount.clearSelection()
if (self.ui.listWidget_mount.count() > 9):
self.ui.listWidget_mount.takeItem(0)
self.ui.listWidget_mount.addItem(self.ui.comboBox_mount.currentText())
def addTempDevice(self):
"""function to add temperature device"""
self.ui.listWidget_tempDevice.clearSelection()
if (self.ui.listWidget_tempDevice.count() > 9):
self.ui.listWidget_tempDevice.takeItem(0)
self.ui.listWidget_tempDevice.addItem(self.ui.comboBox_tempDevice.currentText())
def setNetdevEnabled(self):
"""function to set enabled netdev"""
if (self.ui.checkBox_netdev.checkState() == 0):
self.ui.comboBox_netdev.setDisabled(True)
else:
self.ui.comboBox_netdev.setEnabled(True)
def setSlider(self):
"""function to set sliders"""
if (self.sender().isEnabled() == True):
second_slider = self.sender()
order = []
for slider in self.sliders.values():
if (slider.isEnabled() == True):
order.append(slider.value())
if ((slider.value() == self.sender().value()) and (slider != self.sender())):
second_slider = slider
if (second_slider == self.sender()):
return
for value in range(len(order)):
if (order.count(value+1) == 0):
new_value = value + 1
second_slider.setValue(new_value)
def setStatus(self): def setStatus(self):
"""function to enable label""" """function to enable label"""
count = self.sliders['bat'].maximum()
for label in self.checkboxes.keys(): for label in self.checkboxes.keys():
if ((self.checkboxes[label].checkState() > 0) and (self.sliders[label].isEnabled() == False)): if ((self.checkboxes[label].checkState() > 0) and (self.sliders[label].isEnabled() == False)):
self.lineedits[label].setEnabled(True) self.lineedits[label].setEnabled(True)
self.sliders[label].setEnabled(True) self.sliders[label].setEnabled(True)
if (label == 'bat'):
self.ui.lineEdit_acdev.setEnabled(True)
self.ui.lineEdit_batdev.setEnabled(True)
elif (label == 'temp'):
self.ui.comboBox_temp.setEnabled(True)
elif (label == 'player'):
self.ui.comboBox_player.setEnabled(True)
slider_label = 0 slider_label = 0
for slider in self.sliders.values(): for slider in self.sliders.values():
if (slider.isEnabled() == True): if (slider.isEnabled() == True):
@ -86,13 +152,6 @@ class ConfigWindow(QWidget):
elif ((self.checkboxes[label].checkState() == 0) and (self.sliders[label].isEnabled() == True)): elif ((self.checkboxes[label].checkState() == 0) and (self.sliders[label].isEnabled() == True)):
self.lineedits[label].setDisabled(True) self.lineedits[label].setDisabled(True)
self.sliders[label].setDisabled(True) self.sliders[label].setDisabled(True)
if (label == 'bat'):
self.ui.lineEdit_acdev.setDisabled(True)
self.ui.lineEdit_batdev.setDisabled(True)
elif (label == 'temp'):
self.ui.comboBox_temp.setDisabled(True)
elif (label == 'player'):
self.ui.comboBox_player.setDisabled(True)
for slider in self.sliders.values(): for slider in self.sliders.values():
if ((slider.value() == slider.maximum()) and (slider != self.sliders[label])): if ((slider.value() == slider.maximum()) and (slider != self.sliders[label])):
slider.setValue(self.sliders[label].value()) slider.setValue(self.sliders[label].value())
@ -106,23 +165,3 @@ class ConfigWindow(QWidget):
else: else:
slider.setMaximum(1) slider.setMaximum(1)
self.sliders[label].setValue(1) self.sliders[label].setValue(1)
def setSlider(self):
"""function to set sliders"""
if (self.sender().isEnabled() == True):
second_slider = self.sender()
order = []
for slider in self.sliders.values():
if (slider.isEnabled() == True):
order.append(slider.value())
if ((slider.value() == self.sender().value()) and (slider != self.sender())):
second_slider = slider
if (second_slider == self.sender()):
return
for value in range(len(order)):
if (order.count(value+1) == 0):
new_value = value + 1
second_slider.setValue(new_value)

View File

@ -29,6 +29,7 @@ timeLetters = ['dddd', 'ddd', 'dd', 'd', \
'hh', 'h', 'mm', 'm', 'ss', 's'] 'hh', 'h', 'mm', 'm', 'ss', 's']
class DataEngine: class DataEngine:
def __init__(self, parent): def __init__(self, parent):
"""class definition""" """class definition"""
@ -48,16 +49,17 @@ class DataEngine:
self.parent.systemmonitor.connectSource("system/uptime", self.parent, self.parent.interval) self.parent.systemmonitor.connectSource("system/uptime", self.parent, self.parent.interval)
if (self.parent.cpuBool > 0): if (self.parent.cpuBool > 0):
self.parent.systemmonitor.connectSource("cpu/system/TotalLoad", self.parent, self.parent.interval) self.parent.systemmonitor.connectSource("cpu/system/TotalLoad", self.parent, self.parent.interval)
if (self.parent.cpuFormat.split('$ccpu')[0] != self.parent.cpuFormat): for core in self.parent.cpuCore.keys():
for core in range(self.parent.numCores): if (core > -1):
self.parent.systemmonitor.connectSource("cpu/cpu"+str(core)+"/TotalLoad", self.parent, self.parent.interval) self.parent.systemmonitor.connectSource("cpu/cpu"+str(core)+"/TotalLoad", self.parent, self.parent.interval)
if (self.parent.cpuclockBool > 0): if (self.parent.cpuclockBool > 0):
self.parent.systemmonitor.connectSource("cpu/system/AverageClock", self.parent, self.parent.interval) self.parent.systemmonitor.connectSource("cpu/system/AverageClock", self.parent, self.parent.interval)
if (self.parent.cpuclockFormat.split('$ccpucl')[0] != self.parent.cpuclockFormat): for core in self.parent.cpuClockCore.keys():
for core in range(self.parent.numCores): if (core > -1):
self.parent.systemmonitor.connectSource("cpu/cpu"+str(core)+"/clock", self.parent, self.parent.interval) self.parent.systemmonitor.connectSource("cpu/cpu"+str(core)+"/clock", self.parent, self.parent.interval)
if (self.parent.tempBool > 0): if (self.parent.tempBool > 0):
self.parent.systemmonitor.connectSource(self.parent.tempdev, self.parent, self.parent.interval) for item in self.parent.tempNames:
self.parent.systemmonitor.connectSource(item, self.parent, self.parent.interval)
if (self.parent.gpuBool > 0): if (self.parent.gpuBool > 0):
self.parent.extsysmon.connectSource("gpu", self.parent, self.parent.interval) self.parent.extsysmon.connectSource("gpu", self.parent, self.parent.interval)
if (self.parent.gputempBool > 0): if (self.parent.gputempBool > 0):
@ -76,8 +78,8 @@ class DataEngine:
self.parent.systemmonitor.connectSource("mem/swap/free", self.parent, int(self.parent.interval*0.5)) self.parent.systemmonitor.connectSource("mem/swap/free", self.parent, int(self.parent.interval*0.5))
self.parent.systemmonitor.connectSource("mem/swap/used", self.parent, int(self.parent.interval*0.5)) self.parent.systemmonitor.connectSource("mem/swap/used", self.parent, int(self.parent.interval*0.5))
if (self.parent.hddBool > 0): if (self.parent.hddBool > 0):
for mount in self.parent.mountPoints: for item in self.parent.mountNames:
self.parent.systemmonitor.connectSource("partitions" + mount + "/filllevel", self.parent, self.parent.interval) self.parent.systemmonitor.connectSource("partitions" + item + "/filllevel", self.parent, self.parent.interval)
if (self.parent.hddtempBool > 0): if (self.parent.hddtempBool > 0):
self.parent.extsysmon.connectSource("hddtemp", self.parent, self.parent.interval) self.parent.extsysmon.connectSource("hddtemp", self.parent, self.parent.interval)
if (self.parent.netBool > 0): if (self.parent.netBool > 0):
@ -100,89 +102,42 @@ class DataEngine:
uptimeText = "%3id%2ih%2im" % (days, hours, minutes) uptimeText = "%3id%2ih%2im" % (days, hours, minutes)
line = line.split('$uptime')[0] + uptimeText + line.split('$uptime')[1] line = line.split('$uptime')[0] + uptimeText + line.split('$uptime')[1]
elif (line.split('$custom')[0] != line): elif (line.split('$custom')[0] != line):
line = ''.join(line.split('$custom')) uptimeText = self.parent.custom_uptime
if (line.split('$ds')[0] != line): if (uptimeText.split('$ds')[0] != uptimeText):
line = "%s%3i%s" % (line.split('$ds')[0], days, line.split('$ds')[1]) uptimeText = "%s%3i%s" % (uptimeText.split('$ds')[0], days, uptimeText.split('$ds')[1])
if (line.split('$hs')[0] != line): if (uptimeText.split('$hs')[0] != uptimeText):
line = "%s%2i%s" % (line.split('$hs')[0], hours, line.split('$hs')[1]) uptimeText = "%s%2i%s" % (uptimeText.split('$hs')[0], hours, uptimeText.split('$hs')[1])
if (line.split('$ms')[0] != line): if (uptimeText.split('$ms')[0] != uptimeText):
line = "%s%2i%s" % (line.split('$ms')[0], minutes, line.split('$ms')[1]) uptimeText = "%s%2i%s" % (uptimeText.split('$ms')[0], minutes, uptimeText.split('$ms')[1])
line = line.split('$custom')[0] + uptimeText + line.split('$custom')[1]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_uptime.setText(text) self.parent.label_uptime.setText(text)
elif (sourceName == "cpu/system/TotalLoad"): elif (sourceName == "cpu/system/TotalLoad"):
value = str(round(float(data[QString(u'value')]), 1)) value = str(round(float(data[QString(u'value')]), 1))
cpuText = "%5s" % (value) self.parent.cpuCore[-1] = "%5s" % (value)
if (self.parent.cpuFormat.split('$ccpu')[0] != self.parent.cpuFormat): if (self.parent.cpuBool == 2):
if (self.parent.cpuFormat.split('$ccpu')[0].split('$cpu')[0] != self.parent.cpuFormat.split('$ccpu')[0]): self.parent.tooltipAgent.addValue('cpu', float(value), self.parent.tooltipNum)
line = self.parent.cpuFormat.split('$ccpu')[0].split('$cpu')[0] + cpuText + self.parent.cpuFormat.split('$ccpu')[0].split('$cpu')[1]
else:
line = self.parent.cpuFormat.split('$ccpu')[0]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_cpu.setText(text)
if (self.parent.cpuFormat.split('$ccpu')[1].split('$cpu')[0] != self.parent.cpuFormat.split('$ccpu')[1]):
line = self.parent.cpuFormat.split('$ccpu')[1].split('$cpu')[0] + cpuText + self.parent.cpuFormat.split('$ccpu')[1].split('$cpu')[1]
else:
line = self.parent.cpuFormat.split('$ccpu')[1]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_cpu1.setText(text)
else:
if (self.parent.cpuFormat.split('$cpu')[0] != self.parent.cpuFormat):
line = self.parent.cpuFormat.split('$cpu')[0] + cpuText + self.parent.cpuFormat.split('$cpu')[1]
else:
line = self.parent.cpuFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_cpu.setText(text)
elif ((str(sourceName)[:7] == "cpu/cpu") and (str(sourceName).split('/')[2] == "TotalLoad")): elif ((str(sourceName)[:7] == "cpu/cpu") and (str(sourceName).split('/')[2] == "TotalLoad")):
value = str(round(float(data[QString(u'value')]), 1)) value = str(round(float(data[QString(u'value')]), 1))
cpuText = "%5s" % (value) self.parent.cpuCore[int(str(sourceName)[7])] = "%5s" % (value)
text = self.parent.formatLine.split('$LINE')[0] + cpuText + self.parent.formatLine.split('$LINE')[1]
exec ('self.parent.label_coreCpu' + str(sourceName)[7] + '.setText(text)')
elif (sourceName == "cpu/system/AverageClock"): elif (sourceName == "cpu/system/AverageClock"):
value = str(data[QString(u'value')]).split('.')[0] value = str(data[QString(u'value')]).split('.')[0]
cpuclockText = "%4s" % (value) self.parent.cpuClockCore[-1] = "%4s" % (value)
if (self.parent.cpuclockFormat.split('$ccpucl')[0] != self.parent.cpuclockFormat): if (self.parent.cpuclockBool == 2):
if (self.parent.cpuclockFormat.split('$ccpucl')[0].split('$cpucl')[0] != self.parent.cpuclockFormat.split('$ccpucl')[0]): self.parent.tooltipAgent.addValue('cpuclock', float(value), self.parent.tooltipNum)
line = self.parent.cpuclockFormat.split('$ccpucl')[0].split('$cpucl')[0] + cpuclockText + self.parent.cpuclockFormat.split('$ccpucl')[0].split('$cpucl')[1]
else:
line = self.parent.cpuclockFormat.split('$ccpucl')[0]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_cpuclock.setText(text)
if (self.parent.cpuclockFormat.split('$ccpucl')[1].split('$cpucl')[0] != self.parent.cpuclockFormat.split('$ccpucl')[1]):
line = self.parent.cpuclockFormat.split('$ccpucl')[1].split('$cpucl')[0] + cpuclockText + self.parent.cpuclockFormat.split('$ccpucl')[1].split('$cpucl')[1]
else:
line = self.parent.cpuclockFormat.split('$ccpucl')[1]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_cpuclock1.setText(text)
else:
if (self.parent.cpuclockFormat.split('$cpucl')[0] != self.parent.cpuclockFormat):
line = self.parent.cpuclockFormat.split('$cpucl')[0] + cpuclockText + self.parent.cpuclockFormat.split('$cpucl')[1]
else:
line = self.parent.cpuclockFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_cpuclock.setText(text)
elif ((str(sourceName)[:7] == "cpu/cpu") and (str(sourceName).split('/')[2] == "clock")): elif ((str(sourceName)[:7] == "cpu/cpu") and (str(sourceName).split('/')[2] == "clock")):
value = str(data[QString(u'value')]).split('.')[0] value = str(data[QString(u'value')]).split('.')[0]
cpuclockText = "%4s" % (value) self.parent.cpuClockCore[int(str(sourceName)[7])] = "%4s" % (value)
text = self.parent.formatLine.split('$LINE')[0] + cpuclockText + self.parent.formatLine.split('$LINE')[1]
exec ('self.parent.label_coreCpuclock' + str(sourceName)[7] + '.setText(text)')
elif (sourceName == "network/interfaces/"+self.parent.netdev+"/transmitter/data"): elif (sourceName == "network/interfaces/"+self.parent.netdev+"/transmitter/data"):
value = str(data[QString(u'value')]).split('.')[0] value = str(data[QString(u'value')]).split('.')[0]
up_speed = "%4s" % (value) self.parent.netSpeed["up"] = "%4s" % (value)
if (self.parent.netFormat.split('$net')[0] != self.parent.netFormat): if (self.parent.netBool == 2):
line = '/' + up_speed + self.parent.netFormat.split('$net')[1] self.parent.tooltipAgent.addValue('up', float(value), self.parent.tooltipNum)
else:
line = ''
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_netUp.setText(text)
elif (sourceName == "network/interfaces/"+self.parent.netdev+"/receiver/data"): elif (sourceName == "network/interfaces/"+self.parent.netdev+"/receiver/data"):
value = str(data[QString(u'value')]).split('.')[0] value = str(data[QString(u'value')]).split('.')[0]
down_speed = "%4s" % (value) self.parent.netSpeed["down"] = "%4s" % (value)
if (self.parent.netFormat.split('$net')[0] != self.parent.netFormat): if (self.parent.netBool == 2):
line = self.parent.netFormat.split('$net')[0] + down_speed self.parent.tooltipAgent.addValue('down', float(value), self.parent.tooltipNum)
else:
line = self.parent.netFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_netDown.setText(text)
# update network device # update network device
self.parent.updateNetdev = self.parent.updateNetdev + 1 self.parent.updateNetdev = self.parent.updateNetdev + 1
if (self.parent.updateNetdev == 100): if (self.parent.updateNetdev == 100):
@ -197,20 +152,12 @@ class DataEngine:
self.parent.netFormat = self.parent.netNonFormat.split('$netdev')[0] + self.parent.netdev + self.parent.netNonFormat.split('$netdev')[1] self.parent.netFormat = self.parent.netNonFormat.split('$netdev')[0] + self.parent.netdev + self.parent.netNonFormat.split('$netdev')[1]
else: else:
self.parent.netFormat = self.parent.netNonFormat self.parent.netFormat = self.parent.netNonFormat
elif (sourceName == self.parent.tempdev): elif (str(sourceName).split('/')[0] == "lmsensors"):
value = str(round(float(data[QString(u'value')]), 1)) value = str(round(float(data[QString(u'value')]), 1))
tempText = "%4s" % (value) self.parent.temp[str(sourceName)] = "%4s" % (value)
if (self.parent.tempFormat.split('$temp')[0] != self.parent.tempFormat):
line = self.parent.tempFormat.split('$temp')[0] + tempText + self.parent.tempFormat.split('$temp')[1]
else:
line = self.parent.tempFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_temp.setText(text)
elif (str(sourceName).split('/')[0] == "partitions"): elif (str(sourceName).split('/')[0] == "partitions"):
value = str(round(float(data[QString(u'value')]), 1)) value = str(round(float(data[QString(u'value')]), 1))
hddText = "%5s" % (value) self.parent.mount['/'+'/'.join(str(sourceName).split('/')[1:-1])] = "%5s" % (value)
text = self.parent.formatLine.split('$LINE')[0] + hddText + self.parent.formatLine.split('$LINE')[1]
exec ('self.parent.label_hdd_' + ''.join(str(sourceName).split('/')[1:-1]) + '.setText(text)')
elif (sourceName == "mem/physical/free"): elif (sourceName == "mem/physical/free"):
self.parent.mem_free = float(data[QString(u'value')]) self.parent.mem_free = float(data[QString(u'value')])
elif (sourceName == "mem/physical/used"): elif (sourceName == "mem/physical/used"):
@ -227,6 +174,8 @@ class DataEngine:
self.parent.label_mem.setText(text) self.parent.label_mem.setText(text)
else: else:
self.parent.mem_used = float(data[QString(u'value')]) self.parent.mem_used = float(data[QString(u'value')])
if (self.parent.memBool == 2):
self.parent.tooltipAgent.addValue('mem', float(data[QString(u'value')]), self.parent.tooltipNum)
elif (sourceName == "mem/swap/free"): elif (sourceName == "mem/swap/free"):
self.parent.swap_free = float(data[QString(u'value')]) self.parent.swap_free = float(data[QString(u'value')])
elif (sourceName == "mem/swap/used"): elif (sourceName == "mem/swap/used"):
@ -241,6 +190,8 @@ class DataEngine:
self.parent.label_swap.setText(text) self.parent.label_swap.setText(text)
else: else:
self.parent.swap_used = float(data[QString(u'value')]) self.parent.swap_used = float(data[QString(u'value')])
if (self.parent.swapBool == 2):
self.parent.tooltipAgent.addValue('swap', float(data[QString(u'value')]), self.parent.tooltipNum)
elif (sourceName == "gpu"): elif (sourceName == "gpu"):
value = str(data[QString(u'GPU')]) value = str(data[QString(u'GPU')])
gpuText = "%4s" % (value) gpuText = "%4s" % (value)
@ -260,15 +211,13 @@ class DataEngine:
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_gputemp.setText(text) self.parent.label_gputemp.setText(text)
elif (sourceName == "hddtemp"): elif (sourceName == "hddtemp"):
hddtempText = [] for item in self.parent.hddNames:
for device in self.parent.hddtempFormat.split('@@')[1].split(';'): value = str(data[QString(item)])
if (len(device) > 0): self.parent.hdd[item] = "%4s" % (value)
value = str(data[QString(device)])
hddtempText.append("%4s" % (value))
if (self.parent.hddtempFormat.split('@@')[0] != self.parent.hddtempFormat):
line = self.parent.hddtempFormat.split('@@')[0] + ' '.join(hddtempText) + self.parent.hddtempFormat.split('@@')[2]
else:
line = self.parent.hddtempFormat line = self.parent.hddtempFormat
for i in range(len(self.parent.hddNames)):
if (line.split('$hddtemp'+str(i))[0] != line):
line = line.split('$hddtemp'+str(i))[0] + self.parent.hdd[self.parent.hddNames[i]] + line.split('$hddtemp'+str(i))[1]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_hddtemp.setText(text) self.parent.label_hddtemp.setText(text)
elif (sourceName == "player"): elif (sourceName == "player"):
@ -318,24 +267,15 @@ class DataEngine:
elif (self.parent.timeFormat.split('$longtime')[0] != self.parent.timeFormat): elif (self.parent.timeFormat.split('$longtime')[0] != self.parent.timeFormat):
value = str(data[QString(u'DateTime')].toString(Qt.SystemLocaleLongDate).toUtf8()) value = str(data[QString(u'DateTime')].toString(Qt.SystemLocaleLongDate).toUtf8())
line = self.parent.timeFormat.split('$longtime')[0] + value.decode("utf-8") + self.parent.timeFormat.split('$longtime')[1] line = self.parent.timeFormat.split('$longtime')[0] + value.decode("utf-8") + self.parent.timeFormat.split('$longtime')[1]
elif (self.parent.timeFormat.split('$snsntime')[0] != self.parent.timeFormat):
rawDate = str(data[QString(u'DateTime')].toString(Qt.TextDate).toUtf8())
value = rawDate.split()[0] + " " + rawDate.split()[2] + " " + \
rawDate.split()[1] + " " + ':'.join(rawDate.split()[3].split(':')[0:2])
line = self.parent.timeFormat.split('$snsntime')[0] + value.decode("utf-8") + self.parent.timeFormat.split('$snsntime')[1]
elif (self.parent.timeFormat.split('$nsnstime')[0] != self.parent.timeFormat):
rawDate = str(data[QString(u'DateTime')].toString(Qt.TextDate).toUtf8())
value = ':'.join(rawDate.split()[3].split(':')[0:2]) + " " + rawDate.split()[0] + " " + \
rawDate.split()[2] + " " + rawDate.split()[1]
line = self.parent.timeFormat.split('$nsnstime')[0] + value.decode("utf-8") + self.parent.timeFormat.split('$nsnstime')[1]
elif (self.parent.timeFormat.split('$custom')[0] != self.parent.timeFormat): elif (self.parent.timeFormat.split('$custom')[0] != self.parent.timeFormat):
rawDate = data[QString(u'DateTime')] rawDate = data[QString(u'DateTime')]
line = ''.join(self.parent.timeFormat.split('$custom')) value = self.parent.custom_time
for letters in timeLetters: for letters in timeLetters:
if (line.split('$'+letters)[0] != line): if (value.split('$'+letters)[0] != value):
line = line.split('$'+letters)[0] + \ value = value.split('$'+letters)[0] + \
str(data[QString(u'DateTime')].toString(letters).toUtf8()).decode("utf-8") + \ str(data[QString(u'DateTime')].toString(letters).toUtf8()).decode("utf-8") + \
line.split('$'+letters)[1] value.split('$'+letters)[1]
line = self.parent.timeFormat.split('$custom')[0] + value + self.parent.timeFormat.split('$custom')[1]
else: else:
line = self.parent.timeFormat line = self.parent.timeFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]

View File

@ -30,6 +30,7 @@ import configdef
import configwindow import configwindow
import dataengine import dataengine
import reinit import reinit
import tooltip
from util import * from util import *
@ -43,16 +44,17 @@ class pyTextWidget(plasmascript.Applet):
def init(self): def init(self):
"""function to initializate widget""" """function to initializate widget"""
self._name = str(self.package().metadata().pluginName()) self._name = str(self.package().metadata().pluginName())
self.initTooltip()
self.layout = QGraphicsLinearLayout(Qt.Horizontal, self.applet) self.layout = QGraphicsLinearLayout(Qt.Horizontal, self.applet)
self.dataengine = dataengine.DataEngine(self) self.dataengine = dataengine.DataEngine(self)
self.reinit = reinit.Reinit(self) self.reinit = reinit.Reinit(self)
self.tooltipAgent = tooltip.Tooltip(self)
self.timer = QTimer() self.timer = QTimer()
QObject.connect(self.timer, SIGNAL("timeout()"), self.updateLabel) QObject.connect(self.timer, SIGNAL("timeout()"), self.updateLabel)
self.setupVar() self.setupVar()
self.initTooltip()
self.reinit.reinit(confAccept=False) self.reinit.reinit(confAccept=False)
self.setHasConfigurationInterface(True) self.setHasConfigurationInterface(True)
@ -84,8 +86,22 @@ class pyTextWidget(plasmascript.Applet):
self.tooltip.setMainText("PyTextMonitor") self.tooltip.setMainText("PyTextMonitor")
self.tooltip.setSubText('') self.tooltip.setSubText('')
Plasma.ToolTipManager.self().registerWidget(self.applet) Plasma.ToolTipManager.self().registerWidget(self.applet)
# graphical tooltip
self.tooltip_pixmap = QPixmap()
self.tooltip_scene = QGraphicsScene()
self.tooltip_view = QGraphicsView(self.tooltip_scene)
self.tooltip_view.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.tooltip_view.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
# show tooltip # show tooltip
#Plasma.ToolTipManager.self().setContent(self.applet, self.tooltip) Plasma.ToolTipManager.self().setContent(self.applet, self.tooltip)
def updateTooltip(self):
"""function to update tooltip"""
self.tooltip_view.resize(100.0*(len(self.tooltipReq)-self.tooltipReq.count('up')), 100.0)
self.tooltipAgent.createGraphic(self.tooltipReq, self.tooltipColors, self.tooltipValues, self.tooltip_scene)
self.tooltip.setImage(QPixmap.grabWidget(self.tooltip_view))
Plasma.ToolTipManager.self().setContent(self.applet, self.tooltip)
def mouseDoubleClickEvent(self, event): def mouseDoubleClickEvent(self, event):
@ -96,16 +112,13 @@ class pyTextWidget(plasmascript.Applet):
def setupNetdev(self): def setupNetdev(self):
"""function to setup network device""" """function to setup network device"""
netdev = "lo" netdev = "lo"
try: interfaces = QDir.entryList(QDir(self.netdir), QDir.Dirs | QDir.NoDotAndDotDot)
interfaces = []
for line in commands.getoutput("ifconfig -a -s").split("\n"):
if ((line.split()[0] != 'Iface') and (line.split()[0] != 'lo')):
interfaces.append(line.split()[0])
for device in interfaces: for device in interfaces:
if (commands.getoutput("ifconfig " + device + " | grep 'inet '") != ''): if (str(device) != "lo"):
netdev = device try:
break with open(self.netdir+"/"+str(device)+"/operstate", "r") as stateFile:
if (stateFile.readline() == "up\n"):
netdev = str(device)
except: except:
pass pass
return netdev return netdev
@ -114,23 +127,38 @@ class pyTextWidget(plasmascript.Applet):
def setupVar(self): def setupVar(self):
"""function to setup variables""" """function to setup variables"""
self.netdev = '' self.netdev = ''
# setup number of cores self.cpuCore = {-1:" 0.0"}
commandOut = commands.getoutput("grep -c '^processor' /proc/cpuinfo") self.cpuClockCore = {-1:" 0"}
self.numCores = int(commandOut) numCores = int(commands.getoutput("grep -c '^processor' /proc/cpuinfo"))
self.tempdev = "tempdevice" for i in range(numCores):
self.cpuCore[i] = str(" 0.0")
self.cpuClockCore[i] = str(" 0")
self.netSpeed = {"up":" 0", "down":" 0"}
self.tempNames = []
self.temp = {}
self.mountNames = []
self.mount = {}
self.hddNames = []
self.hdd = {}
self.tooltipColors = {}
self.tooltipNum = 100
self.tooltipReq = []
self.tooltipValues = {'cpu':[0.0, 0.01], 'cpuclock':[0.0, 0.01], 'mem':[0.0, 0.01],
'swap':[0.0, 0.01], 'up':[0.0, 0.01], 'down':[0.0, 0.01]}
# create dictionaries # create dictionaries
self.dict_orders = {'6':'bat', '1':'cpu', '7':'cpuclock', '9':'gpu', 'a':'gputemp', self.dict_orders = {'6':'bat', '1':'cpu', '7':'cpuclock', 'f':'custom', '9':'gpu',
'b':'hdd', 'c':'hddtemp', '3':'mem', '5':'net', '4':'swap', '2':'temp', '8':'uptime', 'a':'gputemp', 'b':'hdd', 'c':'hddtemp', '3':'mem', '5':'net', '4':'swap', '2':'temp',
'd':'player', 'e':'time'} '8':'uptime', 'd':'player', 'e':'time'}
self.dict_defFormat = {'bat':'[bat: $bat%$ac]', 'cpu':'[cpu: $cpu%]', self.dict_defFormat = {'bat':'[bat: $bat%$ac]', 'cpu':'[cpu: $cpu%]',
'cpuclock':'[mhz: $cpucl]', 'gpu':'[gpu: $gpu%]', 'cpuclock':'[mhz: $cpucl]', 'custom':'[$custom]', 'gpu':'[gpu: $gpu%]',
'gputemp':'[gpu temp: $gputemp&deg;C]', 'hdd':'[hdd: @@/@@%]', 'gputemp':'[gpu temp: $gputemp&deg;C]', 'hdd':'[hdd: $hdd0%]',
'hddtemp':'[hdd temp: @@/dev/sda@@&deg;C]', 'mem':'[mem: $mem%]', 'hddtemp':'[hdd temp: $hddtemp0&deg;C]', 'mem':'[mem: $mem%]',
'net':'[$netdev: $netKB/s]', 'swap':'[swap: $swap%]', 'net':'[$netdev: $down/$upKB/s]', 'swap':'[swap: $swap%]',
'temp':'[temp: $temp&deg;C]', 'uptime':'[uptime: $uptime]', 'temp':'[temp: $temp0&deg;C]', 'uptime':'[uptime: $uptime]',
'player':'[$artist - $title]', 'time':'[$time]'} 'player':'[$artist - $title]', 'time':'[$time]'}
def showConfigurationInterface(self): def showConfigurationInterface(self):
"""function to show configuration window""" """function to show configuration window"""
plasmascript.Applet.showConfigurationInterface(self) plasmascript.Applet.showConfigurationInterface(self)
@ -143,19 +171,30 @@ 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
def updateLabel(self): def updateLabel(self):
"""function to update label""" """function to update label"""
if ((self.memBool > 0) and (self.memInMb == False)):
self.memText()
if ((self.swapBool > 0) and (self.swapInMb == False)):
self.swapText()
if (self.batBool > 0): if (self.batBool > 0):
self.batText() self.batText()
if (self.cpuBool > 0):
self.cpuText()
if (self.cpuclockBool > 0):
self.cpuclockText()
if (self.customBool > 0):
self.getCustom()
if (self.hddBool > 0):
self.mountText()
if ((self.memBool > 0) and (self.memInMb == False)):
self.memText()
if (self.netBool > 0):
self.netText()
if ((self.swapBool > 0) and (self.swapInMb == False)):
self.swapText()
if (self.tempBool > 0):
self.tempText()
self.updateTooltip()
def batText(self): def batText(self):
@ -169,7 +208,6 @@ class pyTextWidget(plasmascript.Applet):
bat = 'off' bat = 'off'
bat = "%3s" % (bat) bat = "%3s" % (bat)
line = line.split('$bat')[0] + bat + line.split('$bat')[1] line = line.split('$bat')[0] + bat + line.split('$bat')[1]
if (line.split('$ac')[0] != line): if (line.split('$ac')[0] != line):
try: try:
with open (self.ac_device, 'r') as bat_file: with open (self.ac_device, 'r') as bat_file:
@ -185,6 +223,32 @@ class pyTextWidget(plasmascript.Applet):
self.label_bat.setText(text) self.label_bat.setText(text)
def cpuText(self):
"""function to set cpu text"""
line = self.cpuFormat
for core in self.cpuCore.keys():
if (core > -1):
if (line.split('$cpu'+str(core))[0] != line):
line = line.split('$cpu'+str(core))[0] + self.cpuCore[core] + line.split('$cpu'+str(core))[1]
if (line.split('$cpu')[0] != line):
line = line.split('$cpu')[0] + self.cpuCore[-1] + line.split('$cpu')[1]
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
self.label_cpu.setText(text)
def cpuclockText(self):
"""function to set cpu clock text"""
line = self.cpuclockFormat
for core in self.cpuClockCore.keys():
if (core > -1):
if (line.split('$cpucl'+str(core))[0] != line):
line = line.split('$cpucl'+str(core))[0] + self.cpuClockCore[core] + line.split('$cpucl'+str(core))[1]
if (line.split('$cpucl')[0] != line):
line = line.split('$cpucl')[0] + self.cpuClockCore[-1] + line.split('$cpucl')[1]
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
self.label_cpuclock.setText(text)
def memText(self): def memText(self):
"""function to set mem text""" """function to set mem text"""
full = self.mem_uf + self.mem_free full = self.mem_uf + self.mem_free
@ -201,6 +265,27 @@ class pyTextWidget(plasmascript.Applet):
self.label_mem.setText(text) self.label_mem.setText(text)
def mountText(self):
"""function to set mount text"""
line = self.hddFormat
for i in range(len(self.mountNames)):
if (line.split('$hdd'+str(i))[0] != line):
line = line.split('$hdd'+str(i))[0] + self.mount[self.mountNames[i]] + line.split('$hdd'+str(i))[1]
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
self.label_hdd.setText(text)
def netText(self):
"""function to set network text"""
line = self.netFormat
if (line.split('$up')[0] != line):
line = line.split('$up')[0] + self.netSpeed['up'] + line.split('$up')[1]
if (line.split('$down')[0] != line):
line = line.split('$down')[0] + self.netSpeed['down'] + line.split('$down')[1]
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
self.label_net.setText(text)
def swapText(self): def swapText(self):
"""function to set swap text""" """function to set swap text"""
full = self.swap_used + self.swap_free full = self.swap_used + self.swap_free
@ -217,6 +302,25 @@ class pyTextWidget(plasmascript.Applet):
self.label_swap.setText(text) self.label_swap.setText(text)
def tempText(self):
"""function to set temperature text"""
line = self.tempFormat
for i in range(len(self.tempNames)):
if (line.split('$temp'+str(i))[0] != line):
line = line.split('$temp'+str(i))[0] + self.temp[self.tempNames[i]] + line.split('$temp'+str(i))[1]
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
self.label_temp.setText(text)
def getCustom(self):
"""function to get output from custom command"""
commandOut = commands.getoutput(self.custom_command)
line = self.customFormat
line = line.split('$custom')[0] + commandOut + line.split('$custom')[1]
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
self.label_custom.setText(text)
@pyqtSignature("dataUpdated(const QString &, const Plasma::DataEngine::Data &)") @pyqtSignature("dataUpdated(const QString &, const Plasma::DataEngine::Data &)")
def dataUpdated(self, sourceName, data): def dataUpdated(self, sourceName, data):
"""function to update label""" """function to update label"""

View File

@ -236,7 +236,7 @@ class PTMNotify:
except: except:
pass pass
try: try:
if (sender == self.parent.parent.label_hdd0): if (sender == self.parent.parent.label_hdd):
content = self.createText("disk") content = self.createText("disk")
return content return content
except: except:
@ -248,7 +248,7 @@ class PTMNotify:
except: except:
pass pass
try: try:
if (sender == self.parent.parent.label_netDown): if (sender == self.parent.parent.label_net):
content = self.createText("network") content = self.createText("network")
return content return content
except: except:
@ -265,3 +265,9 @@ class PTMNotify:
return content return content
except: except:
pass pass
try:
if (sender == self.parent.parent.label_custom):
content = self.createText("system")
return content
except:
pass

View File

@ -59,57 +59,64 @@ class Reinit():
self.parent.formatLine = "<pre><p align=\"center\"><span style=\" font-family:'" + self.parent.font_family + "'; font-style:" + self.parent.font_style self.parent.formatLine = "<pre><p align=\"center\"><span style=\" font-family:'" + self.parent.font_family + "'; font-style:" + self.parent.font_style
self.parent.formatLine = self.parent.formatLine + "; font-size:" + str(self.parent.font_size) + "pt; font-weight:" + str(self.parent.font_weight) self.parent.formatLine = self.parent.formatLine + "; font-size:" + str(self.parent.font_size) + "pt; font-weight:" + str(self.parent.font_weight)
self.parent.formatLine = self.parent.formatLine + "; color:" + self.parent.font_color + ";\">$LINE</span></p></pre>" self.parent.formatLine = self.parent.formatLine + "; color:" + self.parent.font_color + ";\">$LINE</span></p></pre>"
self.parent.custom_time = str(settings.get('custom_time', '$hh:$mm'))
self.parent.custom_uptime = str(settings.get('custom_uptime', '$ds,$hs,$ms'))
self.parent.tempNames = []
self.parent.temp = {}
for item in str(settings.get('temp_device', '')).split('@@'):
self.parent.tempNames.append(item)
self.parent.temp[item] =" 0.0"
self.parent.mountNames = []
self.parent.mount = {}
for item in str(settings.get('mount', '/')).split('@@'):
self.parent.mountNames.append(item)
self.parent.mount[item] =" 0.0"
self.parent.hddNames = []
self.parent.hdd = {}
for item in str(settings.get('hdd', '/dev/sda')).split('@@'):
self.parent.hddNames.append(item)
self.parent.hdd[item] =" 0.0"
self.parent.netdir = str(settings.get('netdir', '/sys/class/net'))
self.parent.netdevBool = settings.get('netdevBool', 0).toInt()[0]
self.parent.custom_netdev = str(settings.get('custom_netdev', 'lo'))
self.parent.battery_device = str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity'))
self.parent.ac_device = str(settings.get('ac_device', '/sys/class/power_supply/AC/online'))
self.parent.player_name = settings.get('player_name', 0).toInt()[0]
self.parent.custom_command = str(settings.get('custom_command', 'wget -qO- http://ifconfig.me/ip'))
self.parent.tooltipNum = settings.get('tooltip_num', 100).toInt()[0]
self.parent.tooltipColors['cpu'] = str(settings.get('cpu_color', '#ff0000'))
self.parent.tooltipColors['cpuclock'] = str(settings.get('cpuclock_color', '#00ff00'))
self.parent.tooltipColors['mem'] = str(settings.get('mem_color', '#0000ff'))
self.parent.tooltipColors['swap'] = str(settings.get('swap_color', '#ffff00'))
self.parent.tooltipColors['down'] = str(settings.get('down_color', '#00ffff'))
self.parent.tooltipColors['up'] = str(settings.get('up_color', '#ff00ff'))
self.parent.tooltipReq = []
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", 2))') exec ('self.parent.' + label + 'Bool = settings.get("' + label + 'Bool", 2).toInt()[0]')
else: else:
exec ('self.parent.' + label + 'Bool = int(settings.get("' + label + 'Bool", 0))') exec ('self.parent.' + label + 'Bool = settings.get("' + label + 'Bool", 0).toInt()[0]')
# labels # labels
for order in self.parent.label_order: for order in self.parent.label_order:
if (order == "1"): if (order == "1"):
if (self.parent.cpuBool > 0): if (self.parent.cpuBool > 0):
self.parent.cpuFormat = str(settings.get('cpuFormat', '[cpu: $cpu%]')) self.parent.cpuFormat = str(settings.get('cpuFormat', '[cpu: $cpu%]'))
if (self.parent.cpuFormat.split('$ccpu')[0] != self.parent.cpuFormat):
self.parent.label_cpu = NewPlasmaLabel(self.parent.applet, self.parent) self.parent.label_cpu = NewPlasmaLabel(self.parent.applet, self.parent)
self.parent.label_cpu1 = Plasma.Label(self.parent.applet)
if (self.parent.cpuFormat.split('$ccpu')[0].split('$cpu')[0] != self.parent.cpuFormat.split('$ccpu')[0]):
line = self.parent.cpuFormat.split('$ccpu')[0].split('$cpu')[0] + '-----' + self.parent.cpuFormat.split('$ccpu')[0].split('$cpu')[1]
else:
line = self.parent.cpuFormat.split('$ccpu')[0]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_cpu.setText(text)
self.parent.layout.addItem(self.parent.label_cpu)
text = self.parent.formatLine.split('$LINE')[0] + "-----" + self.parent.formatLine.split('$LINE')[1]
for core in range(self.parent.numCores):
exec ('self.parent.label_coreCpu' + str(core) + ' = Plasma.Label(self.parent.applet)')
exec ('self.parent.label_coreCpu' + str(core) + '.setText(text)')
exec ('self.parent.layout.addItem(self.parent.label_coreCpu' + str(core) + ')')
if (self.parent.cpuFormat.split('$ccpu')[1].split('$cpu')[0] != self.parent.cpuFormat.split('$ccpu')[1]):
line = self.parent.cpuFormat.split('$ccpu')[1].split('$cpu')[0] + '-----' + self.parent.cpuFormat.split('$ccpu')[1].split('$cpu')[1]
else:
line = self.parent.cpuFormat.split('$ccpu')[1]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_cpu1.setText(text)
self.parent.layout.addItem(self.parent.label_cpu1)
else:
self.parent.label_cpu = NewPlasmaLabel(self.parent.applet, self.parent)
if (self.parent.cpuFormat.split('$cpu')[0] != self.parent.cpuFormat):
line = self.parent.cpuFormat.split('$cpu')[0] + '-----' + self.parent.cpuFormat.split('$cpu')[1]
else:
line = self.parent.cpuFormat line = self.parent.cpuFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_cpu.setText(text) self.parent.label_cpu.setText(text)
self.parent.layout.addItem(self.parent.label_cpu) self.parent.layout.addItem(self.parent.label_cpu)
if (self.parent.cpuBool == 2):
self.parent.tooltipReq.append('cpu')
elif (order == "2"): elif (order == "2"):
if (self.parent.tempBool > 0): if (self.parent.tempBool > 0):
self.parent.tempdev = str(settings.get('temp_device', '<select device>')) self.parent.tempFormat = str(settings.get('tempFormat', '[temp: $temp0&deg;C]'))
self.parent.tempFormat = str(settings.get('tempFormat', '[temp: $temp&deg;C]'))
self.parent.label_temp = NewPlasmaLabel(self.parent.applet, self.parent) self.parent.label_temp = NewPlasmaLabel(self.parent.applet, self.parent)
if (self.parent.tempFormat.split('$temp')[0] != self.parent.tempFormat):
line = self.parent.tempFormat.split('$temp')[0] + '----' + self.parent.tempFormat.split('$temp')[1]
else:
line = self.parent.tempFormat line = self.parent.tempFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_temp.setText(text) self.parent.label_temp.setText(text)
@ -117,121 +124,77 @@ class Reinit():
elif (order == "3"): elif (order == "3"):
if (self.parent.memBool > 0): if (self.parent.memBool > 0):
self.parent.memFormat = str(settings.get('memFormat', '[mem: $mem%]')) self.parent.memFormat = str(settings.get('memFormat', '[mem: $mem%]'))
self.parent.label_mem = NewPlasmaLabel(self.parent.applet, self.parent)
if (self.parent.memFormat.split('$memmb')[0] != self.parent.memFormat): if (self.parent.memFormat.split('$memmb')[0] != self.parent.memFormat):
self.parent.memInMb = True self.parent.memInMb = True
line = self.parent.memFormat.split('$memmb')[0] + '-----' + self.parent.memFormat.split('$memmb')[1]
elif (self.parent.memFormat.split('$mem')[0] != self.parent.memFormat): elif (self.parent.memFormat.split('$mem')[0] != self.parent.memFormat):
self.parent.memInMb = False self.parent.memInMb = False
self.parent.mem_used = 0.0 self.parent.mem_used = 0.0
self.parent.mem_free = 1.0 self.parent.mem_free = 1.0
self.parent.mem_uf = 0.0 self.parent.mem_uf = 0.0
line = self.parent.memFormat.split('$mem')[0] + '-----' + self.parent.memFormat.split('$mem')[1]
else:
line = self.parent.memFormat line = self.parent.memFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_mem = NewPlasmaLabel(self.parent.applet, self.parent)
self.parent.label_mem.setText(text) self.parent.label_mem.setText(text)
self.parent.layout.addItem(self.parent.label_mem) self.parent.layout.addItem(self.parent.label_mem)
if (self.parent.memBool == 2):
self.parent.tooltipReq.append('mem')
elif (order == "4"): elif (order == "4"):
if (self.parent.swapBool > 0): if (self.parent.swapBool > 0):
self.parent.swapFormat = str(settings.get('swapFormat', '[swap: $swap%]')) self.parent.swapFormat = str(settings.get('swapFormat', '[swap: $swap%]'))
self.parent.label_swap = NewPlasmaLabel(self.parent.applet, self.parent)
if (self.parent.swapFormat.split('$swapmb')[0] != self.parent.swapFormat): if (self.parent.swapFormat.split('$swapmb')[0] != self.parent.swapFormat):
self.parent.swapInMb = True self.parent.swapInMb = True
line = self.parent.swapFormat.split('$swapmb')[0] + '-----' + self.parent.swapFormat.split('$swapmb')[1]
elif (self.parent.swapFormat.split('$swap')[0] != self.parent.swapFormat): elif (self.parent.swapFormat.split('$swap')[0] != self.parent.swapFormat):
self.parent.swapInMb = False self.parent.swapInMb = False
self.parent.swap_free = 1.0 self.parent.swap_free = 1.0
self.parent.swap_used = 0.0 self.parent.swap_used = 0.0
line = self.parent.swapFormat.split('$swap')[0] + '-----' + self.parent.swapFormat.split('$swap')[1]
else:
line = self.parent.swapFormat line = self.parent.swapFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_swap = NewPlasmaLabel(self.parent.applet, self.parent)
self.parent.label_swap.setText(text) self.parent.label_swap.setText(text)
self.parent.layout.addItem(self.parent.label_swap) self.parent.layout.addItem(self.parent.label_swap)
if (self.parent.swapBool == 2):
self.parent.tooltipReq.append('swap')
elif (order == "5"): elif (order == "5"):
if (self.parent.netBool > 0): if (self.parent.netBool > 0):
self.parent.netNonFormat = str(settings.get('netNonFormat', '[net: $netKB/s]')) self.parent.netNonFormat = str(settings.get('netNonFormat', '[net: $down/$upKB/s]'))
if (self.parent.netNonFormat.split('@@')[0] != self.parent.netNonFormat): self.parent.label_net = NewPlasmaLabel(self.parent.applet, self.parent)
self.parent.netdev = self.parent.netNonFormat.split('@@')[1] if (self.parent.netdevBool > 0):
self.parent.netNonFormat = self.parent.netNonFormat.split('@@')[0] + self.parent.netNonFormat.split('@@')[2] self.parent.netdev = self.parent.custom_netdev
else: else:
self.parent.netdev = self.parent.setupNetdev() self.parent.netdev = self.parent.setupNetdev()
if (self.parent.netNonFormat.split('$netdev')[0] != self.parent.netNonFormat): if (self.parent.netNonFormat.split('$netdev')[0] != self.parent.netNonFormat):
self.parent.netFormat = self.parent.netNonFormat.split('$netdev')[0] + self.parent.netdev + self.parent.netNonFormat.split('$netdev')[1] self.parent.netFormat = self.parent.netNonFormat.split('$netdev')[0] + self.parent.netdev + self.parent.netNonFormat.split('$netdev')[1]
else: else:
self.parent.netFormat = self.parent.netNonFormat self.parent.netFormat = self.parent.netNonFormat
self.parent.label_netDown = NewPlasmaLabel(self.parent.applet, self.parent)
if (self.parent.netFormat.split('$net')[0] != self.parent.netFormat):
line = self.parent.netFormat.split('$net')[0] + '----'
else:
line = self.parent.netFormat line = self.parent.netFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_netDown.setText(text) self.parent.label_net.setText(text)
self.parent.layout.addItem(self.parent.label_netDown) self.parent.layout.addItem(self.parent.label_net)
self.parent.label_netUp = Plasma.Label(self.parent.applet) if (self.parent.netBool == 2):
if (self.parent.netFormat.split('$net')[0] != self.parent.netFormat): self.parent.tooltipReq.append('down')
line = '/----' + self.parent.netFormat.split('$net')[1] self.parent.tooltipReq.append('up')
else:
line = ''
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_netUp.setText(text)
self.parent.layout.addItem(self.parent.label_netUp)
elif (order == "6"): elif (order == "6"):
if (self.parent.batBool > 0): if (self.parent.batBool > 0):
self.parent.batFormat = str(settings.get('batFormat', '[bat: $bat%$ac]')) self.parent.batFormat = str(settings.get('batFormat', '[bat: $bat%$ac]'))
self.parent.battery_device= str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity'))
self.parent.ac_device = str(settings.get('ac_device', '/sys/class/power_supply/AC/online'))
self.parent.label_bat = NewPlasmaLabel(self.parent.applet, self.parent) self.parent.label_bat = NewPlasmaLabel(self.parent.applet, self.parent)
line = self.parent.batFormat line = self.parent.batFormat
if (line.split('$ac')[0] != line):
line = line.split('$ac')[0] + '(-)' + line.split('$ac')[1]
if (line.split('$bat')[0] != line):
line = line.split('$bat')[0] + '---' + line.split('$bat')[1]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_bat.setText(text) self.parent.label_bat.setText(text)
self.parent.layout.addItem(self.parent.label_bat) self.parent.layout.addItem(self.parent.label_bat)
elif (order == "7"): elif (order == "7"):
if (self.parent.cpuclockBool > 0): if (self.parent.cpuclockBool > 0):
self.parent.cpuclockFormat = str(settings.get('cpuclockFormat', '[mhz: $cpucl]')) self.parent.cpuclockFormat = str(settings.get('cpuclockFormat', '[mhz: $cpucl]'))
if (self.parent.cpuclockFormat.split('$ccpucl')[0] != self.parent.cpuclockFormat):
self.parent.label_cpuclock = NewPlasmaLabel(self.parent.applet, self.parent) self.parent.label_cpuclock = NewPlasmaLabel(self.parent.applet, self.parent)
self.parent.label_cpuclock1 = Plasma.Label(self.parent.applet)
if (self.parent.cpuclockFormat.split('$ccpucl')[0].split('$cpucl')[0] != self.parent.cpuclockFormat.split('$ccpucl')[0]):
line = self.parent.cpuclockFormat.split('$ccpucl')[0].split('$cpucl')[0] + '----' + self.parent.cpuclockFormat.split('$ccpucl')[0].split('$cpucl')[1]
else:
line = self.parent.cpuclockFormat.split('$ccpucl')[0]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_cpuclock.setText(text)
self.parent.layout.addItem(self.parent.label_cpuclock)
text = self.parent.formatLine.split('$LINE')[0] + "----" + self.parent.formatLine.split('$LINE')[1]
for core in range(self.parent.numCores):
exec ('self.parent.label_coreCpuclock' + str(core) + ' = Plasma.Label(self.parent.applet)')
exec ('self.parent.label_coreCpuclock' + str(core) + '.setText(text)')
exec ('self.parent.layout.addItem(self.parent.label_coreCpuclock' + str(core) + ')')
if (self.parent.cpuclockFormat.split('$ccpucl')[1].split('$cpucl')[0] != self.parent.cpuclockFormat.split('$ccpucl')[1]):
line = self.parent.cpuclockFormat.split('$ccpucl')[1].split('$cpucl')[0] + '----' + self.parent.cpuclockFormat.split('$ccpucl')[1].split('$cpucl')[1]
else:
line = self.parent.cpuclockFormat.split('$ccpucl')[1]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_cpuclock1.setText(text)
self.parent.layout.addItem(self.parent.label_cpuclock1)
else:
self.parent.label_cpuclock = NewPlasmaLabel(self.parent.applet, self.parent)
if (self.parent.cpuclockFormat.split('$cpucl')[0] != self.parent.cpuclockFormat):
line = self.parent.cpuclockFormat.split('$cpucl')[0] + '----' + self.parent.cpuclockFormat.split('$cpucl')[1]
else:
line = self.parent.cpuclockFormat line = self.parent.cpuclockFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_cpuclock.setText(text) self.parent.label_cpuclock.setText(text)
self.parent.layout.addItem(self.parent.label_cpuclock) self.parent.layout.addItem(self.parent.label_cpuclock)
if (self.parent.cpuclockBool == 2):
self.parent.tooltipReq.append('cpuclock')
elif (order == "8"): elif (order == "8"):
if (self.parent.uptimeBool > 0): if (self.parent.uptimeBool > 0):
self.parent.uptimeFormat = str(settings.get('uptimeFormat', '[uptime: $uptime]')) self.parent.uptimeFormat = str(settings.get('uptimeFormat', '[uptime: $uptime]'))
self.parent.label_uptime = NewPlasmaLabel(self.parent.applet, self.parent) self.parent.label_uptime = NewPlasmaLabel(self.parent.applet, self.parent)
if (self.parent.uptimeFormat.split('$uptime')[0] != self.parent.uptimeFormat):
line = self.parent.uptimeFormat.split('$uptime')[0] + '---d--h--m' + self.parent.uptimeFormat.split('$uptime')[1]
else:
line = self.parent.uptimeFormat line = self.parent.uptimeFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_uptime.setText(text) self.parent.label_uptime.setText(text)
@ -240,9 +203,6 @@ class Reinit():
if (self.parent.gpuBool > 0): if (self.parent.gpuBool > 0):
self.parent.gpuFormat = str(settings.get('gpuFormat', '[gpu: $gpu%]')) self.parent.gpuFormat = str(settings.get('gpuFormat', '[gpu: $gpu%]'))
self.parent.label_gpu = NewPlasmaLabel(self.parent.applet, self.parent) self.parent.label_gpu = NewPlasmaLabel(self.parent.applet, self.parent)
if (self.parent.gpuFormat.split('$gpu')[0] != self.parent.gpuFormat):
line = self.parent.gpuFormat.split('$gpu')[0] + '-----' + self.parent.gpuFormat.split('$gpu')[1]
else:
line = self.parent.gpuFormat line = self.parent.gpuFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_gpu.setText(text) self.parent.label_gpu.setText(text)
@ -251,45 +211,22 @@ class Reinit():
if (self.parent.gputempBool > 0): if (self.parent.gputempBool > 0):
self.parent.gputempFormat = str(settings.get('gputempFormat', '[gpu temp: $gputemp&deg;C]')) self.parent.gputempFormat = str(settings.get('gputempFormat', '[gpu temp: $gputemp&deg;C]'))
self.parent.label_gputemp = NewPlasmaLabel(self.parent.applet, self.parent) self.parent.label_gputemp = NewPlasmaLabel(self.parent.applet, self.parent)
if (self.parent.gputempFormat.split('$gputemp')[0] != self.parent.gputempFormat):
line = self.parent.gputempFormat.split('$gputemp')[0] + '----' + self.parent.gputempFormat.split('$gputemp')[1]
else:
line = self.parent.gputempFormat line = self.parent.gputempFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_gputemp.setText(text) self.parent.label_gputemp.setText(text)
self.parent.layout.addItem(self.parent.label_gputemp) self.parent.layout.addItem(self.parent.label_gputemp)
elif (order == "b"): elif (order == "b"):
if (self.parent.hddBool > 0): if (self.parent.hddBool > 0):
self.parent.hddFormat = str(settings.get('hddFormat', '[hdd: @@/@@%]')) self.parent.hddFormat = str(settings.get('hddFormat', '[hdd: $hdd0%]'))
if (self.parent.hddFormat.split('@@')[0] != self.parent.hddFormat): self.parent.label_hdd = NewPlasmaLabel(self.parent.applet, self.parent)
self.parent.mountPoints = self.parent.hddFormat.split('@@')[1].split(';')
line = self.parent.hddFormat.split('@@')[0]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_hdd0 = NewPlasmaLabel(self.parent.applet, self.parent)
self.parent.label_hdd0.setText(text)
self.parent.layout.addItem(self.parent.label_hdd0)
text = self.parent.formatLine.split('$LINE')[0] + "-----" + self.parent.formatLine.split('$LINE')[1]
for mount in self.parent.mountPoints:
exec ('self.parent.label_hdd_' + ''.join(mount.split('/')) + ' = Plasma.Label(self.parent.applet)')
exec ('self.parent.label_hdd_' + ''.join(mount.split('/')) + '.setText(text)')
exec ('self.parent.layout.addItem(self.parent.label_hdd_' + ''.join(mount.split('/')) + ')')
line = self.parent.hddFormat.split('@@')[2]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_hdd1 = Plasma.Label(self.parent.applet)
self.parent.label_hdd1.setText(text)
self.parent.layout.addItem(self.parent.label_hdd1)
else:
line = self.parent.hddFormat line = self.parent.hddFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_hdd0.setText(text) self.parent.label_hdd.setText(text)
self.parent.layout.addItem(self.parent.label_hdd0) self.parent.layout.addItem(self.parent.label_hdd)
elif (order == "c"): elif (order == "c"):
if (self.parent.hddtempBool > 0): if (self.parent.hddtempBool > 0):
self.parent.hddtempFormat = str(settings.get('hddtempFormat', '[hdd temp: @@/dev/sda@@&deg;C]')) self.parent.hddtempFormat = str(settings.get('hddtempFormat', '[hdd temp: $hddtemp0&deg;C]'))
self.parent.label_hddtemp = NewPlasmaLabel(self.parent.applet, self.parent) self.parent.label_hddtemp = NewPlasmaLabel(self.parent.applet, self.parent)
if (self.parent.hddtempFormat.split('@@')[0] != self.parent.hddtempFormat):
line = self.parent.hddtempFormat.split('@@')[0] + '----' + self.parent.hddtempFormat.split('@@')[2]
else:
line = self.parent.hddtempFormat line = self.parent.hddtempFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_hddtemp.setText(text) self.parent.label_hddtemp.setText(text)
@ -297,19 +234,8 @@ class Reinit():
elif (order == "d"): elif (order == "d"):
if (self.parent.playerBool > 0): if (self.parent.playerBool > 0):
self.parent.playerFormat = str(settings.get('playerFormat', '[$artist - $title]')) self.parent.playerFormat = str(settings.get('playerFormat', '[$artist - $title]'))
self.parent.player_name = settings.get('player_name', 0).toInt()[0]
self.parent.label_player = NewPlasmaLabel(self.parent.applet, self.parent) self.parent.label_player = NewPlasmaLabel(self.parent.applet, self.parent)
line = self.parent.playerFormat line = self.parent.playerFormat
if (line.split('$album')[0] != line):
line = line.split('$album')[0] + 'N\\A' + line.split('$album')[1]
if (line.split('$artist')[0] != line):
line = line.split('$artist')[0] + 'N\\A' + line.split('$artist')[1]
if (line.split('$progress')[0] != line):
line = line.split('$progress')[0] + '00:00' + line.split('$progress')[1]
if (line.split('$title')[0] != line):
line = line.split('$title')[0] + 'N\\A' + line.split('$title')[1]
if (line.split('$time')[0] != line):
line = line.split('$time')[0] + '00:00' + line.split('$time')[1]
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_player.setText(text) self.parent.label_player.setText(text)
self.parent.layout.addItem(self.parent.label_player) self.parent.layout.addItem(self.parent.label_player)
@ -317,13 +243,18 @@ class Reinit():
if (self.parent.timeBool > 0): if (self.parent.timeBool > 0):
self.parent.timeFormat = str(settings.get('timeFormat', '[$time]')) self.parent.timeFormat = str(settings.get('timeFormat', '[$time]'))
self.parent.label_time = NewPlasmaLabel(self.parent.applet, self.parent) self.parent.label_time = NewPlasmaLabel(self.parent.applet, self.parent)
if (self.parent.timeFormat.split('$time')[0] != self.parent.timeFormat):
line = self.parent.timeFormat.split('$time')[0] + '----------------------' + self.parent.timeFormat.split('$time')[1]
else:
line = self.parent.timeFormat line = self.parent.timeFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1] text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_time.setText(text) self.parent.label_time.setText(text)
self.parent.layout.addItem(self.parent.label_time) self.parent.layout.addItem(self.parent.label_time)
elif (order == "f"):
if (self.parent.customBool > 0):
self.parent.customFormat = str(settings.get('customFormat', '[$custom]'))
self.parent.label_custom = NewPlasmaLabel(self.parent.applet, self.parent)
line = self.parent.customFormat
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
self.parent.label_custom.setText(text)
self.parent.layout.addItem(self.parent.label_custom)
if not confAccept: if not confAccept:
self.parent.layout.setContentsMargins(1, 1, 1, 1) self.parent.layout.setContentsMargins(1, 1, 1, 1)
self.parent.applet.setLayout(self.parent.layout) self.parent.applet.setLayout(self.parent.layout)

View File

@ -0,0 +1,68 @@
# -*- coding: utf-8 -*-
############################################################################
# This file is part of pytextmonitor #
# #
# pytextmonitor is free software: you can redistribute it and/or #
# modify it under the terms of the GNU General Public License as #
# published by the Free Software Foundation, either version 3 of the #
# License, or (at your option) any later version. #
# #
# pytextmonitor is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
############################################################################
from PyQt4.QtCore import *
from PyQt4.QtGui import *
class Tooltip():
def __init__(self, parent):
"""class definition"""
self.parent = parent
def addValue(self, type, value=0.0, tooltipNum=100):
"""function to add value to list"""
if (len(self.parent.tooltipValues[type]) > tooltipNum):
self.parent.tooltipValues[type] = self.parent.tooltipValues[type][1:]
self.parent.tooltipValues[type].append(value)
def createGraphic(self, types, colors, values, widget):
"""function to create graph"""
widget.clear()
maxOne = [100.0, 100.0]
pen = QPen()
down = False
for type in types:
bound = [values[type][0], values[type][0]]
for value in values[type]:
if (value < bound[0]):
bound[0] = value
elif (value > bound[1]):
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]))]
pen.setColor(QColor(colors[type]))
if (down):
shift = (types.index(type) - 1) * maxOne[0]
else:
shift = types.index(type) * maxOne[0]
for i in range(len(values[type])-1):
x1 = i * norm[0] + shift
y1 = -(values[type][i] - bound[0]) * norm[1]
x2 = (i + 1) * norm[0] + shift
y2 = -(values[type][i+1] - bound[0]) * norm[1]
widget.addLine(x1, y1, x2, y2, pen)
if (type == 'down'):
down = True

View File

@ -1,20 +1,22 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright 2012 Alex Oleshkevich <alex.oleshkevich@gmail.com> ############################################################################
# # Copyright 2012 Alex Oleshkevich <alex.oleshkevich@gmail.com> #
# This program is free software; you can redistribute it and/or modify # #
# it under the terms of the GNU General Public License as published by # This program is free software; you can redistribute it and/or modify #
# the Free Software Foundation; either version 2 of the License, or # it under the terms of the GNU General Public License as published by #
# (at your option) any later version. # the Free Software Foundation; either version 2 of the License, or #
# # (at your option) any later version. #
# This program is distributed in the hope that it will be useful, # #
# but WITHOUT ANY WARRANTY; without even the implied warranty of # This program is distributed in the hope that it will be useful, #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # but WITHOUT ANY WARRANTY; without even the implied warranty of #
# GNU General Public License for more details. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# # GNU General Public License for more details. #
# You should have received a copy of the GNU General Public License along # #
# with this program; if not, write to the Free Software Foundation, Inc., # You should have received a copy of the GNU General Public License along #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # with this program; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #
############################################################################
from shutil import copyfile from shutil import copyfile
from PyKDE4.kdecore import * from PyKDE4.kdecore import *

File diff suppressed because it is too large Load Diff

View File

@ -6,8 +6,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n" "Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
"POT-Creation-Date: 2014-03-31 00:58+0400\n" "POT-Creation-Date: 2014-04-02 20:48+0400\n"
"PO-Revision-Date: 2014-03-31 01:01+0400\n" "PO-Revision-Date: 2014-04-02 20:49+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n" "Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Russian <kde-russian@lists.kde.ru>\n" "Language-Team: Russian <kde-russian@lists.kde.ru>\n"
"Language: ru\n" "Language: ru\n"
@ -40,13 +40,13 @@ msgstr ""
"Detailed information may be found on <a href=\"http://arcanis.name/projects/" "Detailed information may be found on <a href=\"http://arcanis.name/projects/"
"pytextmonitor/\">project homepage</a>" "pytextmonitor/\">project homepage</a>"
#. i18n: file: ui/configwindow.ui:66 #. i18n: file: ui/configwindow.ui:69
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
#: rc.cpp:12 #: rc.cpp:12
msgid "Time" msgid "Time"
msgstr "Time" msgstr "Time"
#. i18n: file: ui/configwindow.ui:85 #. i18n: file: ui/configwindow.ui:83
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
#: rc.cpp:15 #: rc.cpp:15
msgid "" msgid ""
@ -54,123 +54,117 @@ msgid ""
"$isotime - time in ISO format\n" "$isotime - time in ISO format\n"
"$shorttime - time in short format\n" "$shorttime - time in short format\n"
"$longtime - time in log format\n" "$longtime - time in log format\n"
"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o " "$custom - custom time format"
"zero; \n"
"\t$MMMM - long month; $MMM - short month; $MM - month; $M - month w\\o "
"zero; \n"
"\t$yyyy - year; $yy short year; \n"
"\t$hh - hours (24 only); $h - hours w\\o zero (24 only); \n"
"\t$mm - minutes; $m - minutes w\\o zero;\n"
"\t$ss - seconds; $s - seconds w\\o zero"
msgstr "" msgstr ""
"$time - time in default format\n" "$time - time in default format\n"
"$isotime - time in ISO format\n" "$isotime - time in ISO format\n"
"$shorttime - time in short format\n" "$shorttime - time in short format\n"
"$longtime - time in log format\n" "$longtime - time in log format\n"
"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o " "$custom - custom time format"
"zero; \n"
"\t$MMMM - long month; $MMM - short month; $MM - month; $M - month w\\o "
"zero; \n"
"\t$yyyy - year; $yy short year; \n"
"\t$hh - hours (24 only); $h - hours w\\o zero (24 only); \n"
"\t$mm - minutes; $m - minutes w\\o zero;\n"
"\t$ss - seconds; $s - seconds w\\o zero"
#. i18n: file: ui/configwindow.ui:130 #. i18n: file: ui/configwindow.ui:128
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
#: rc.cpp:27 #: rc.cpp:22
msgid "Uptime" msgid "Uptime"
msgstr "Uptime" msgstr "Uptime"
#. i18n: file: ui/configwindow.ui:141 #. i18n: file: ui/configwindow.ui:139
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
#: rc.cpp:30 #: rc.cpp:25
msgid "" msgid ""
"$uptime - system uptime\n" "$uptime - system uptime\n"
"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes" "$custom - custom format"
msgstr "" msgstr ""
"$uptime - system uptime\n" "$uptime - system uptime\n"
"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes" "$custom - custom format"
#. i18n: file: ui/configwindow.ui:189 #. i18n: file: ui/configwindow.ui:187
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
#: rc.cpp:34 #: rc.cpp:29
msgid "CPU" msgid "CPU"
msgstr "CPU" msgstr "CPU"
#. i18n: file: ui/configwindow.ui:200 #. i18n: file: ui/configwindow.ui:203
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
#: rc.cpp:38 #: rc.cpp:33
#, no-c-format #, no-c-format
msgid "" msgid ""
"$cpu - total load CPU, %\n" "$cpu - total load CPU, %\n"
"$ccpu - load CPU for each core, %" "$cpu0 - load CPU for core 0, %\n"
"...\n"
"$cpu7 - load CPU for core 7, %"
msgstr "" msgstr ""
"$cpu - total load CPU, %\n" "$cpu - total load CPU, %\n"
"$ccpu - load CPU for each core, %" "$cpu0 - load CPU for core 0, %\n"
"...\n"
"$cpu7 - load CPU for core 7, %"
#. i18n: file: ui/configwindow.ui:248 #. i18n: file: ui/configwindow.ui:251
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
#: rc.cpp:42 #: rc.cpp:39
msgid "CPU Clock" msgid "CPU Clock"
msgstr "CPU Clock" msgstr "CPU Clock"
#. i18n: file: ui/configwindow.ui:259 #. i18n: file: ui/configwindow.ui:267
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
#: rc.cpp:45 #: rc.cpp:42
msgid "" msgid ""
"$cpucl - average CPU clock, MHz\n" "$cpucl - average CPU clock, MHz\n"
"$ccpucl - CPU clock for each core, MHz" "$cpucl0 - CPU clock for core 0, MHz\n"
"...\n"
"$cpucl7 - CPU clock for core 7, MHz"
msgstr "" msgstr ""
"$cpucl - average CPU clock, MHz\n" "$cpucl - average CPU clock, MHz\n"
"$ccpucl - CPU clock for each core, MHz" "$cpucl0 - CPU clock for core 0, MHz\n"
"...\n"
"$cpucl7 - CPU clock for core 7, MHz"
#. i18n: file: ui/configwindow.ui:307 #. i18n: file: ui/configwindow.ui:315
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
#: rc.cpp:49 #: rc.cpp:48
msgid "Temperature" msgid "Temperature"
msgstr "Temperature" msgstr "Temperature"
#. i18n: file: ui/configwindow.ui:330 #. i18n: file: ui/configwindow.ui:325
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
#: rc.cpp:52 #: rc.cpp:51
msgid "$temp - physical temperature on CPU" msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
msgstr "$temp - physical temperature on CPU" msgstr "$tempN - physical temperature on device N (from 0). Example: $temp0"
#. i18n: file: ui/configwindow.ui:378 #. i18n: file: ui/configwindow.ui:373
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
#: rc.cpp:55 #: rc.cpp:54
msgid "GPU" msgid "GPU"
msgstr "GPU" msgstr "GPU"
#. i18n: file: ui/configwindow.ui:388 #. i18n: file: ui/configwindow.ui:383
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
#: rc.cpp:59 #: rc.cpp:58
#, no-c-format #, no-c-format
msgid "$gpu - gpu usage, %" msgid "$gpu - gpu usage, %"
msgstr "$gpu - gpu usage, %" msgstr "$gpu - gpu usage, %"
#. i18n: file: ui/configwindow.ui:436 #. i18n: file: ui/configwindow.ui:431
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
#: rc.cpp:62 #: rc.cpp:61
msgid "GPU Temp" msgid "GPU Temp"
msgstr "GPU Temp" msgstr "GPU Temp"
#. i18n: file: ui/configwindow.ui:446 #. i18n: file: ui/configwindow.ui:441
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
#: rc.cpp:65 #: rc.cpp:64
msgid "$gputemp - physical temperature on GPU" msgid "$gputemp - physical temperature on GPU"
msgstr "$gputemp - physical temperature on GPU" msgstr "$gputemp - physical temperature on GPU"
#. i18n: file: ui/configwindow.ui:494 #. i18n: file: ui/configwindow.ui:489
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
#: rc.cpp:68 #: rc.cpp:67
msgid "Memory" msgid "Memory"
msgstr "Memory" msgstr "Memory"
#. i18n: file: ui/configwindow.ui:505 #. i18n: file: ui/configwindow.ui:503
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
#: rc.cpp:72 #: rc.cpp:71
#, no-c-format #, no-c-format
msgid "" msgid ""
"$mem - RAM usage, %\n" "$mem - RAM usage, %\n"
@ -179,15 +173,15 @@ msgstr ""
"$mem - RAM usage, %\n" "$mem - RAM usage, %\n"
"$memmb - RAM usage, MB" "$memmb - RAM usage, MB"
#. i18n: file: ui/configwindow.ui:553 #. i18n: file: ui/configwindow.ui:551
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
#: rc.cpp:76 #: rc.cpp:75
msgid "Swap" msgid "Swap"
msgstr "Swap" msgstr "Swap"
#. i18n: file: ui/configwindow.ui:564 #. i18n: file: ui/configwindow.ui:565
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
#: rc.cpp:80 #: rc.cpp:79
#, no-c-format #, no-c-format
msgid "" msgid ""
"$swap - swap usage, %\n" "$swap - swap usage, %\n"
@ -196,58 +190,60 @@ msgstr ""
"$swap - swap usage, %\n" "$swap - swap usage, %\n"
"$swapmb - swap usage, MB" "$swapmb - swap usage, MB"
#. i18n: file: ui/configwindow.ui:612 #. i18n: file: ui/configwindow.ui:613
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
#: rc.cpp:84 #: rc.cpp:83
msgid "HDD" msgid "HDD"
msgstr "HDD" msgstr "HDD"
#. i18n: file: ui/configwindow.ui:622 #. i18n: file: ui/configwindow.ui:623
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
#: rc.cpp:88 #: rc.cpp:87
#, no-c-format #, no-c-format
msgid "@@/;@@ - mount point usage, %" msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
msgstr "@@/;@@ - mount point usage, %" msgstr "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
#. i18n: file: ui/configwindow.ui:670 #. i18n: file: ui/configwindow.ui:671
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
#: rc.cpp:91 #: rc.cpp:90
msgid "HDD Temp" msgid "HDD Temp"
msgstr "HDD Temp" msgstr "HDD Temp"
#. i18n: file: ui/configwindow.ui:680 #. i18n: file: ui/configwindow.ui:681
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
#: rc.cpp:94 #: rc.cpp:93
msgid "@@/dev/sda@@ - physical temperature on /dev/sda" msgid ""
msgstr "@@/dev/sda@@ - physical temperature on /dev/sda" "$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
msgstr ""
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
#. i18n: file: ui/configwindow.ui:728 #. i18n: file: ui/configwindow.ui:729
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
#: rc.cpp:97 #: rc.cpp:96
msgid "Network" msgid "Network"
msgstr "Network" msgstr "Network"
#. i18n: file: ui/configwindow.ui:740 #. i18n: file: ui/configwindow.ui:744
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
#: rc.cpp:100 #: rc.cpp:99
msgid "" msgid ""
"$net - network speed, down/up, KB/s\n" "$down - download speed, KB/s\n"
"$netdev - current network device\n" "$up - upload speed, KB/s\n"
"@@eth0@@ - disable auto select device and set specified device" "$netdev - current network device"
msgstr "" msgstr ""
"$net - network speed, down/up, KB/s\n" "$down - download speed, KB/s\n"
"$netdev - current network device\n" "$up - upload speed, KB/s\n"
"@@eth0@@ - disable auto select device and set specified device" "$netdev - current network device"
#. i18n: file: ui/configwindow.ui:788 #. i18n: file: ui/configwindow.ui:792
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
#: rc.cpp:105 #: rc.cpp:104
msgid "Battery" msgid "Battery"
msgstr "Battery" msgstr "Battery"
#. i18n: file: ui/configwindow.ui:799 #. i18n: file: ui/configwindow.ui:803
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
#: rc.cpp:109 #: rc.cpp:108
#, no-c-format #, no-c-format
msgid "" msgid ""
"$bat - battery charge, %\n" "$bat - battery charge, %\n"
@ -256,57 +252,17 @@ msgstr ""
"$bat - battery charge, %\n" "$bat - battery charge, %\n"
"$ac - AC status" "$ac - AC status"
#. i18n: file: ui/configwindow.ui:863 #. i18n: file: ui/configwindow.ui:851
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
#: rc.cpp:113
msgid "Battery device"
msgstr "Battery device"
#. i18n: file: ui/configwindow.ui:870
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
#: rc.cpp:116
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr "\"/sys/class/power_supply/BAT0/capacity\" by default"
#. i18n: file: ui/configwindow.ui:906
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
#: rc.cpp:119
msgid "AC device"
msgstr "AC device"
#. i18n: file: ui/configwindow.ui:913
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
#: rc.cpp:122
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr "\"/sys/class/power_supply/AC/online\" by default"
#. i18n: file: ui/configwindow.ui:933
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
#: rc.cpp:125 #. i18n: file: ui/configwindow.ui:1338
#. i18n: ectx: property (text), widget (QLabel, label_playerSelect)
#: rc.cpp:112 rc.cpp:214
msgid "Music player" msgid "Music player"
msgstr "Music player" msgstr "Music player"
#. i18n: file: ui/configwindow.ui:950 #. i18n: file: ui/configwindow.ui:865
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
#: rc.cpp:128
msgid "amarok"
msgstr "amarok"
#. i18n: file: ui/configwindow.ui:955
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
#: rc.cpp:131
msgid "mpd"
msgstr "mpd"
#. i18n: file: ui/configwindow.ui:960
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
#: rc.cpp:134
msgid "qmmp"
msgstr "qmmp"
#. i18n: file: ui/configwindow.ui:972
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
#: rc.cpp:137 #: rc.cpp:115
msgid "" msgid ""
"$album - song album\n" "$album - song album\n"
"$artist - song artist\n" "$artist - song artist\n"
@ -320,55 +276,331 @@ msgstr ""
"$time - song duration\n" "$time - song duration\n"
"$title - song title" "$title - song title"
#. i18n: file: ui/configwindow.ui:1026 #. i18n: file: ui/configwindow.ui:913
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_custom)
#: rc.cpp:122
msgid "Custom"
msgstr "Custom"
#. i18n: file: ui/configwindow.ui:923
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_custom)
#: rc.cpp:125
msgid "$custom - get output from custom command"
msgstr "$custom - get output from custom command"
#. i18n: file: ui/configwindow.ui:977
#. i18n: ectx: attribute (title), widget (QWidget, advanced)
#: rc.cpp:128
msgid "Advanced"
msgstr "Advanced"
#. i18n: file: ui/configwindow.ui:991
#. i18n: ectx: property (text), widget (QLabel, label_timeFormat)
#: rc.cpp:131
msgid "Custom time format"
msgstr "Custom time format"
#. i18n: file: ui/configwindow.ui:1013
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_timeFormat)
#: rc.cpp:134
msgid ""
"$dddd - long weekday\n"
"$ddd - short weekday\n"
"$dd - day\n"
"$d - day w\\o zero\n"
"$MMMM - long month\n"
"$MMM - short month\n"
"$MM - month\n"
"$M - month w\\o zero\n"
"$yyyy - year\n"
"$yy - short year\n"
"$hh - hours (24 only)\n"
"$h - hours w\\o zero (24 only)\n"
"$mm - minutes\n"
"$m - minutes w\\o zero\n"
"$ss - seconds\n"
"$s - seconds w\\o zero"
msgstr ""
"$dddd - long weekday\n"
"$ddd - short weekday\n"
"$dd - day\n"
"$d - day w\\o zero\n"
"$MMMM - long month\n"
"$MMM - short month\n"
"$MM - month\n"
"$M - month w\\o zero\n"
"$yyyy - year\n"
"$yy - short year\n"
"$hh - hours (24 only)\n"
"$h - hours w\\o zero (24 only)\n"
"$mm - minutes\n"
"$m - minutes w\\o zero\n"
"$ss - seconds\n"
"$s - seconds w\\o zero"
#. i18n: file: ui/configwindow.ui:1033
#. i18n: ectx: property (text), widget (QLabel, label_uptimeFormat)
#: rc.cpp:152
msgid "Custom uptime format"
msgstr "Custom uptime format"
#. i18n: file: ui/configwindow.ui:1042
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptimeFormat)
#: rc.cpp:155
msgid ""
"$ds - uptime days\n"
"$hs - uptime hours\n"
"$ms - uptime minutes"
msgstr ""
"$ds - uptime days\n"
"$hs - uptime hours\n"
"$ms - uptime minutes"
#. i18n: file: ui/configwindow.ui:1064
#. i18n: ectx: property (text), widget (QLabel, label_tempDevice)
#: rc.cpp:160
msgid "Temperature devices"
msgstr "Temperature devices"
#. i18n: file: ui/configwindow.ui:1090
#. i18n: ectx: property (text), widget (QPushButton, pushButton_tempDevice)
#. i18n: file: ui/configwindow.ui:1145
#. i18n: ectx: property (text), widget (QPushButton, pushButton_mount)
#. i18n: file: ui/configwindow.ui:1200
#. i18n: ectx: property (text), widget (QPushButton, pushButton_hddDevice)
#: rc.cpp:163 rc.cpp:173 rc.cpp:183
msgid "Add"
msgstr "Add"
#. i18n: file: ui/configwindow.ui:1100
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_tempDevice)
#. i18n: file: ui/configwindow.ui:1155
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_mount)
#. i18n: file: ui/configwindow.ui:1210
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_hddDevice)
#: rc.cpp:166 rc.cpp:176 rc.cpp:186
msgid ""
"Editable\n"
"del - remove item"
msgstr ""
"Editable\n"
"del - remove item"
#. i18n: file: ui/configwindow.ui:1119
#. i18n: ectx: property (text), widget (QLabel, label_mount)
#: rc.cpp:170
msgid "Mount points"
msgstr "Mount points"
#. i18n: file: ui/configwindow.ui:1174
#. i18n: ectx: property (text), widget (QLabel, label_hddDevice)
#: rc.cpp:180
msgid "HDD devices"
msgstr "HDD devices"
#. i18n: file: ui/configwindow.ui:1227
#. i18n: ectx: property (text), widget (QLabel, label_netdir)
#: rc.cpp:190
msgid "Network directory"
msgstr "Network directory"
#. i18n: file: ui/configwindow.ui:1234
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_netdir)
#: rc.cpp:193
msgid "\"/sys/class/net\" by default"
msgstr "\"/sys/class/net\" by default"
#. i18n: file: ui/configwindow.ui:1254
#. i18n: ectx: property (toolTip), widget (QCheckBox, checkBox_netdev)
#: rc.cpp:196
msgid "Disable auto select device and set specified device"
msgstr "Disable auto select device and set specified device"
#. i18n: file: ui/configwindow.ui:1257
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_netdev)
#: rc.cpp:199
msgid "Set network device"
msgstr "Set network device"
#. i18n: file: ui/configwindow.ui:1290
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
#: rc.cpp:202
msgid "Battery device"
msgstr "Battery device"
#. i18n: file: ui/configwindow.ui:1297
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
#: rc.cpp:205
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr "\"/sys/class/power_supply/BAT0/capacity\" by default"
#. i18n: file: ui/configwindow.ui:1314
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
#: rc.cpp:208
msgid "AC device"
msgstr "AC device"
#. i18n: file: ui/configwindow.ui:1321
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
#: rc.cpp:211
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr "\"/sys/class/power_supply/AC/online\" by default"
#. i18n: file: ui/configwindow.ui:1358
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_playerSelect)
#: rc.cpp:217
msgid "amarok"
msgstr "amarok"
#. i18n: file: ui/configwindow.ui:1363
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_playerSelect)
#: rc.cpp:220
msgid "mpd"
msgstr "mpd"
#. i18n: file: ui/configwindow.ui:1368
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_playerSelect)
#: rc.cpp:223
msgid "qmmp"
msgstr "qmmp"
#. i18n: file: ui/configwindow.ui:1386
#. i18n: ectx: property (text), widget (QLabel, label_customCommand)
#: rc.cpp:226
msgid "Custom command"
msgstr "Custom command"
#. i18n: file: ui/configwindow.ui:1394
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_customCommand)
#: rc.cpp:229
msgid ""
"Command to run, example:\n"
"wget -qO- http://ifconfig.me/ip - get external IP"
msgstr ""
"Command to run, example:\n"
"wget -qO- http://ifconfig.me/ip - get external IP"
#. i18n: file: ui/configwindow.ui:1417
#. i18n: ectx: attribute (title), widget (QWidget, tab)
#: rc.cpp:233
msgid "Tooltip"
msgstr "Tooltip"
#. i18n: file: ui/configwindow.ui:1423
#. i18n: ectx: property (text), widget (QLabel, label_tooltip)
#: rc.cpp:236
msgid ""
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
"To enable them just make needed checkbox fully checked."
msgstr ""
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
"To enable them just make needed checkbox fully checked."
#. i18n: file: ui/configwindow.ui:1444
#. i18n: ectx: property (text), widget (QLabel, label_tooltipNum)
#: rc.cpp:239
msgid "Number of values for tooltips"
msgstr "Number of values for tooltips"
#. i18n: file: ui/configwindow.ui:1499
#. i18n: ectx: property (text), widget (QLabel, label_cpuColor)
#: rc.cpp:242
msgid "CPU color"
msgstr "CPU color"
#. i18n: file: ui/configwindow.ui:1539
#. i18n: ectx: property (text), widget (QLabel, label_cpuclockColor)
#: rc.cpp:245
msgid "CPU clock color"
msgstr "CPU clock color"
#. i18n: file: ui/configwindow.ui:1579
#. i18n: ectx: property (text), widget (QLabel, label_memColor)
#: rc.cpp:248
msgid "Memory color"
msgstr "Memory color"
#. i18n: file: ui/configwindow.ui:1619
#. i18n: ectx: property (text), widget (QLabel, label_swapColor)
#: rc.cpp:251
msgid "Swap color"
msgstr "Swap color"
#. i18n: file: ui/configwindow.ui:1659
#. i18n: ectx: property (text), widget (QLabel, label_downColor)
#: rc.cpp:254
msgid "Download speed color"
msgstr "Download speed color"
#. i18n: file: ui/configwindow.ui:1699
#. i18n: ectx: property (text), widget (QLabel, label_upColor)
#: rc.cpp:257
msgid "Upload speed color"
msgstr "Upload speed color"
#. i18n: file: ui/configwindow.ui:1745
#. i18n: ectx: attribute (title), widget (QWidget, appearance) #. i18n: ectx: attribute (title), widget (QWidget, appearance)
#: rc.cpp:144 #: rc.cpp:260
msgid "Appearance" msgid "Appearance"
msgstr "Appearance" msgstr "Appearance"
#. i18n: file: ui/configwindow.ui:1040 #. i18n: file: ui/configwindow.ui:1759
#. i18n: ectx: property (text), widget (QLabel, label_interval) #. i18n: ectx: property (text), widget (QLabel, label_interval)
#: rc.cpp:147 #: rc.cpp:263
msgid "Time interval" msgid "Time interval"
msgstr "Time interval" msgstr "Time interval"
#. i18n: file: ui/configwindow.ui:1095 #. i18n: file: ui/configwindow.ui:1814
#. i18n: ectx: property (text), widget (QLabel, label_font) #. i18n: ectx: property (text), widget (QLabel, label_font)
#: rc.cpp:150 #: rc.cpp:266
msgid "Font" msgid "Font"
msgstr "Font" msgstr "Font"
#. i18n: file: ui/configwindow.ui:1135 #. i18n: file: ui/configwindow.ui:1854
#. i18n: ectx: property (text), widget (QLabel, label_fontSize) #. i18n: ectx: property (text), widget (QLabel, label_fontSize)
#: rc.cpp:153 #: rc.cpp:269
msgid "Font size" msgid "Font size"
msgstr "Font size" msgstr "Font size"
#. i18n: file: ui/configwindow.ui:1190 #. i18n: file: ui/configwindow.ui:1909
#. i18n: ectx: property (text), widget (QLabel, label_color) #. i18n: ectx: property (text), widget (QLabel, label_color)
#: rc.cpp:156 #: rc.cpp:272
msgid "Font color" msgid "Font color"
msgstr "Font color" msgstr "Font color"
#. i18n: file: ui/configwindow.ui:1230 #. i18n: file: ui/configwindow.ui:1949
#. i18n: ectx: property (text), widget (QLabel, label_style) #. i18n: ectx: property (text), widget (QLabel, label_style)
#: rc.cpp:159 #: rc.cpp:275
msgid "Font style" msgid "Font style"
msgstr "Font style" msgstr "Font style"
#. i18n: file: ui/configwindow.ui:1280 #. i18n: file: ui/configwindow.ui:1999
#. i18n: ectx: property (text), widget (QLabel, label_weight) #. i18n: ectx: property (text), widget (QLabel, label_weight)
#: rc.cpp:162 #: rc.cpp:278
msgid "Font weight" msgid "Font weight"
msgstr "Font weight" msgstr "Font weight"
#: rc.cpp:163 #: rc.cpp:279
msgctxt "NAME OF TRANSLATORS" msgctxt "NAME OF TRANSLATORS"
msgid "Your names" msgid "Your names"
msgstr "Evgeniy Alekseev" msgstr "Evgeniy Alekseev"
#: rc.cpp:164 #: rc.cpp:280
msgctxt "EMAIL OF TRANSLATORS" msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails" msgid "Your emails"
msgstr "esalexeev@gmail.com" msgstr "esalexeev@gmail.com"
#~ msgid "@@/;@@ - mount point usage, %"
#~ msgstr "@@/;@@ - mount point usage, %"
#~ msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
#~ msgstr "@@/dev/sda@@ - physical temperature on /dev/sda"
#~ msgid ""
#~ "$net - network speed, down/up, KB/s\n"
#~ "$netdev - current network device\n"
#~ "@@eth0@@ - disable auto select device and set specified device"
#~ msgstr ""
#~ "$net - network speed, down/up, KB/s\n"
#~ "$netdev - current network device\n"
#~ "@@eth0@@ - disable auto select device and set specified device"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n" "Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
"POT-Creation-Date: 2014-03-31 00:58+0400\n" "POT-Creation-Date: 2014-04-02 20:48+0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -37,13 +37,13 @@ msgid ""
"pytextmonitor/\">project homepage</a>" "pytextmonitor/\">project homepage</a>"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:66 #. i18n: file: ui/configwindow.ui:69
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
#: rc.cpp:12 #: rc.cpp:12
msgid "Time" msgid "Time"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:85 #. i18n: file: ui/configwindow.ui:83
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
#: rc.cpp:15 #: rc.cpp:15
msgid "" msgid ""
@ -51,232 +51,190 @@ msgid ""
"$isotime - time in ISO format\n" "$isotime - time in ISO format\n"
"$shorttime - time in short format\n" "$shorttime - time in short format\n"
"$longtime - time in log format\n" "$longtime - time in log format\n"
"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o " "$custom - custom time format"
"zero; \n"
"\t$MMMM - long month; $MMM - short month; $MM - month; $M - month w\\o "
"zero; \n"
"\t$yyyy - year; $yy short year; \n"
"\t$hh - hours (24 only); $h - hours w\\o zero (24 only); \n"
"\t$mm - minutes; $m - minutes w\\o zero;\n"
"\t$ss - seconds; $s - seconds w\\o zero"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:130 #. i18n: file: ui/configwindow.ui:128
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
#: rc.cpp:27 #: rc.cpp:22
msgid "Uptime" msgid "Uptime"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:141 #. i18n: file: ui/configwindow.ui:139
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
#: rc.cpp:30 #: rc.cpp:25
msgid "" msgid ""
"$uptime - system uptime\n" "$uptime - system uptime\n"
"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes" "$custom - custom format"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:189 #. i18n: file: ui/configwindow.ui:187
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
#: rc.cpp:34 #: rc.cpp:29
msgid "CPU" msgid "CPU"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:200 #. i18n: file: ui/configwindow.ui:203
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
#: rc.cpp:38 #: rc.cpp:33
#, no-c-format #, no-c-format
msgid "" msgid ""
"$cpu - total load CPU, %\n" "$cpu - total load CPU, %\n"
"$ccpu - load CPU for each core, %" "$cpu0 - load CPU for core 0, %\n"
"...\n"
"$cpu7 - load CPU for core 7, %"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:248 #. i18n: file: ui/configwindow.ui:251
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
#: rc.cpp:42 #: rc.cpp:39
msgid "CPU Clock" msgid "CPU Clock"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:259 #. i18n: file: ui/configwindow.ui:267
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
#: rc.cpp:45 #: rc.cpp:42
msgid "" msgid ""
"$cpucl - average CPU clock, MHz\n" "$cpucl - average CPU clock, MHz\n"
"$ccpucl - CPU clock for each core, MHz" "$cpucl0 - CPU clock for core 0, MHz\n"
"...\n"
"$cpucl7 - CPU clock for core 7, MHz"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:307 #. i18n: file: ui/configwindow.ui:315
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
#: rc.cpp:49 #: rc.cpp:48
msgid "Temperature" msgid "Temperature"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:330 #. i18n: file: ui/configwindow.ui:325
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
#: rc.cpp:52 #: rc.cpp:51
msgid "$temp - physical temperature on CPU" msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:378 #. i18n: file: ui/configwindow.ui:373
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
#: rc.cpp:55 #: rc.cpp:54
msgid "GPU" msgid "GPU"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:388 #. i18n: file: ui/configwindow.ui:383
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
#: rc.cpp:59 #: rc.cpp:58
#, no-c-format #, no-c-format
msgid "$gpu - gpu usage, %" msgid "$gpu - gpu usage, %"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:436 #. i18n: file: ui/configwindow.ui:431
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
#: rc.cpp:62 #: rc.cpp:61
msgid "GPU Temp" msgid "GPU Temp"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:446 #. i18n: file: ui/configwindow.ui:441
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
#: rc.cpp:65 #: rc.cpp:64
msgid "$gputemp - physical temperature on GPU" msgid "$gputemp - physical temperature on GPU"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:494 #. i18n: file: ui/configwindow.ui:489
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
#: rc.cpp:68 #: rc.cpp:67
msgid "Memory" msgid "Memory"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:505 #. i18n: file: ui/configwindow.ui:503
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
#: rc.cpp:72 #: rc.cpp:71
#, no-c-format #, no-c-format
msgid "" msgid ""
"$mem - RAM usage, %\n" "$mem - RAM usage, %\n"
"$memmb - RAM usage, MB" "$memmb - RAM usage, MB"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:553 #. i18n: file: ui/configwindow.ui:551
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
#: rc.cpp:76 #: rc.cpp:75
msgid "Swap" msgid "Swap"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:564 #. i18n: file: ui/configwindow.ui:565
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
#: rc.cpp:80 #: rc.cpp:79
#, no-c-format #, no-c-format
msgid "" msgid ""
"$swap - swap usage, %\n" "$swap - swap usage, %\n"
"$swapmb - swap usage, MB" "$swapmb - swap usage, MB"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:612 #. i18n: file: ui/configwindow.ui:613
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
#: rc.cpp:84 #: rc.cpp:83
msgid "HDD" msgid "HDD"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:622 #. i18n: file: ui/configwindow.ui:623
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
#: rc.cpp:88 #: rc.cpp:87
#, no-c-format #, no-c-format
msgid "@@/;@@ - mount point usage, %" msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:670 #. i18n: file: ui/configwindow.ui:671
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
#: rc.cpp:91 #: rc.cpp:90
msgid "HDD Temp" msgid "HDD Temp"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:680 #. i18n: file: ui/configwindow.ui:681
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
#: rc.cpp:94 #: rc.cpp:93
msgid "@@/dev/sda@@ - physical temperature on /dev/sda" msgid ""
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:728 #. i18n: file: ui/configwindow.ui:729
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
#: rc.cpp:97 #: rc.cpp:96
msgid "Network" msgid "Network"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:740 #. i18n: file: ui/configwindow.ui:744
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
#: rc.cpp:100 #: rc.cpp:99
msgid "" msgid ""
"$net - network speed, down/up, KB/s\n" "$down - download speed, KB/s\n"
"$netdev - current network device\n" "$up - upload speed, KB/s\n"
"@@eth0@@ - disable auto select device and set specified device" "$netdev - current network device"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:788 #. i18n: file: ui/configwindow.ui:792
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
#: rc.cpp:105 #: rc.cpp:104
msgid "Battery" msgid "Battery"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:799 #. i18n: file: ui/configwindow.ui:803
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
#: rc.cpp:109 #: rc.cpp:108
#, no-c-format #, no-c-format
msgid "" msgid ""
"$bat - battery charge, %\n" "$bat - battery charge, %\n"
"$ac - AC status" "$ac - AC status"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:863 #. i18n: file: ui/configwindow.ui:851
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
#: rc.cpp:113
msgid "Battery device"
msgstr ""
#. i18n: file: ui/configwindow.ui:870
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
#: rc.cpp:116
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr ""
#. i18n: file: ui/configwindow.ui:906
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
#: rc.cpp:119
msgid "AC device"
msgstr ""
#. i18n: file: ui/configwindow.ui:913
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
#: rc.cpp:122
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr ""
#. i18n: file: ui/configwindow.ui:933
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
#: rc.cpp:125 #. i18n: file: ui/configwindow.ui:1338
#. i18n: ectx: property (text), widget (QLabel, label_playerSelect)
#: rc.cpp:112 rc.cpp:214
msgid "Music player" msgid "Music player"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:950 #. i18n: file: ui/configwindow.ui:865
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
#: rc.cpp:128
msgid "amarok"
msgstr ""
#. i18n: file: ui/configwindow.ui:955
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
#: rc.cpp:131
msgid "mpd"
msgstr ""
#. i18n: file: ui/configwindow.ui:960
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
#: rc.cpp:134
msgid "qmmp"
msgstr ""
#. i18n: file: ui/configwindow.ui:972
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
#: rc.cpp:137 #: rc.cpp:115
msgid "" msgid ""
"$album - song album\n" "$album - song album\n"
"$artist - song artist\n" "$artist - song artist\n"
@ -285,54 +243,291 @@ msgid ""
"$title - song title" "$title - song title"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:1026 #. i18n: file: ui/configwindow.ui:913
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_custom)
#: rc.cpp:122
msgid "Custom"
msgstr ""
#. i18n: file: ui/configwindow.ui:923
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_custom)
#: rc.cpp:125
msgid "$custom - get output from custom command"
msgstr ""
#. i18n: file: ui/configwindow.ui:977
#. i18n: ectx: attribute (title), widget (QWidget, advanced)
#: rc.cpp:128
msgid "Advanced"
msgstr ""
#. i18n: file: ui/configwindow.ui:991
#. i18n: ectx: property (text), widget (QLabel, label_timeFormat)
#: rc.cpp:131
msgid "Custom time format"
msgstr ""
#. i18n: file: ui/configwindow.ui:1013
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_timeFormat)
#: rc.cpp:134
msgid ""
"$dddd - long weekday\n"
"$ddd - short weekday\n"
"$dd - day\n"
"$d - day w\\o zero\n"
"$MMMM - long month\n"
"$MMM - short month\n"
"$MM - month\n"
"$M - month w\\o zero\n"
"$yyyy - year\n"
"$yy - short year\n"
"$hh - hours (24 only)\n"
"$h - hours w\\o zero (24 only)\n"
"$mm - minutes\n"
"$m - minutes w\\o zero\n"
"$ss - seconds\n"
"$s - seconds w\\o zero"
msgstr ""
#. i18n: file: ui/configwindow.ui:1033
#. i18n: ectx: property (text), widget (QLabel, label_uptimeFormat)
#: rc.cpp:152
msgid "Custom uptime format"
msgstr ""
#. i18n: file: ui/configwindow.ui:1042
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptimeFormat)
#: rc.cpp:155
msgid ""
"$ds - uptime days\n"
"$hs - uptime hours\n"
"$ms - uptime minutes"
msgstr ""
#. i18n: file: ui/configwindow.ui:1064
#. i18n: ectx: property (text), widget (QLabel, label_tempDevice)
#: rc.cpp:160
msgid "Temperature devices"
msgstr ""
#. i18n: file: ui/configwindow.ui:1090
#. i18n: ectx: property (text), widget (QPushButton, pushButton_tempDevice)
#. i18n: file: ui/configwindow.ui:1145
#. i18n: ectx: property (text), widget (QPushButton, pushButton_mount)
#. i18n: file: ui/configwindow.ui:1200
#. i18n: ectx: property (text), widget (QPushButton, pushButton_hddDevice)
#: rc.cpp:163 rc.cpp:173 rc.cpp:183
msgid "Add"
msgstr ""
#. i18n: file: ui/configwindow.ui:1100
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_tempDevice)
#. i18n: file: ui/configwindow.ui:1155
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_mount)
#. i18n: file: ui/configwindow.ui:1210
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_hddDevice)
#: rc.cpp:166 rc.cpp:176 rc.cpp:186
msgid ""
"Editable\n"
"del - remove item"
msgstr ""
#. i18n: file: ui/configwindow.ui:1119
#. i18n: ectx: property (text), widget (QLabel, label_mount)
#: rc.cpp:170
msgid "Mount points"
msgstr ""
#. i18n: file: ui/configwindow.ui:1174
#. i18n: ectx: property (text), widget (QLabel, label_hddDevice)
#: rc.cpp:180
msgid "HDD devices"
msgstr ""
#. i18n: file: ui/configwindow.ui:1227
#. i18n: ectx: property (text), widget (QLabel, label_netdir)
#: rc.cpp:190
msgid "Network directory"
msgstr ""
#. i18n: file: ui/configwindow.ui:1234
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_netdir)
#: rc.cpp:193
msgid "\"/sys/class/net\" by default"
msgstr ""
#. i18n: file: ui/configwindow.ui:1254
#. i18n: ectx: property (toolTip), widget (QCheckBox, checkBox_netdev)
#: rc.cpp:196
msgid "Disable auto select device and set specified device"
msgstr ""
#. i18n: file: ui/configwindow.ui:1257
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_netdev)
#: rc.cpp:199
msgid "Set network device"
msgstr ""
#. i18n: file: ui/configwindow.ui:1290
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
#: rc.cpp:202
msgid "Battery device"
msgstr ""
#. i18n: file: ui/configwindow.ui:1297
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
#: rc.cpp:205
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr ""
#. i18n: file: ui/configwindow.ui:1314
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
#: rc.cpp:208
msgid "AC device"
msgstr ""
#. i18n: file: ui/configwindow.ui:1321
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
#: rc.cpp:211
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr ""
#. i18n: file: ui/configwindow.ui:1358
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_playerSelect)
#: rc.cpp:217
msgid "amarok"
msgstr ""
#. i18n: file: ui/configwindow.ui:1363
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_playerSelect)
#: rc.cpp:220
msgid "mpd"
msgstr ""
#. i18n: file: ui/configwindow.ui:1368
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_playerSelect)
#: rc.cpp:223
msgid "qmmp"
msgstr ""
#. i18n: file: ui/configwindow.ui:1386
#. i18n: ectx: property (text), widget (QLabel, label_customCommand)
#: rc.cpp:226
msgid "Custom command"
msgstr ""
#. i18n: file: ui/configwindow.ui:1394
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_customCommand)
#: rc.cpp:229
msgid ""
"Command to run, example:\n"
"wget -qO- http://ifconfig.me/ip - get external IP"
msgstr ""
#. i18n: file: ui/configwindow.ui:1417
#. i18n: ectx: attribute (title), widget (QWidget, tab)
#: rc.cpp:233
msgid "Tooltip"
msgstr ""
#. i18n: file: ui/configwindow.ui:1423
#. i18n: ectx: property (text), widget (QLabel, label_tooltip)
#: rc.cpp:236
msgid ""
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
"To enable them just make needed checkbox fully checked."
msgstr ""
#. i18n: file: ui/configwindow.ui:1444
#. i18n: ectx: property (text), widget (QLabel, label_tooltipNum)
#: rc.cpp:239
msgid "Number of values for tooltips"
msgstr ""
#. i18n: file: ui/configwindow.ui:1499
#. i18n: ectx: property (text), widget (QLabel, label_cpuColor)
#: rc.cpp:242
msgid "CPU color"
msgstr ""
#. i18n: file: ui/configwindow.ui:1539
#. i18n: ectx: property (text), widget (QLabel, label_cpuclockColor)
#: rc.cpp:245
msgid "CPU clock color"
msgstr ""
#. i18n: file: ui/configwindow.ui:1579
#. i18n: ectx: property (text), widget (QLabel, label_memColor)
#: rc.cpp:248
msgid "Memory color"
msgstr ""
#. i18n: file: ui/configwindow.ui:1619
#. i18n: ectx: property (text), widget (QLabel, label_swapColor)
#: rc.cpp:251
msgid "Swap color"
msgstr ""
#. i18n: file: ui/configwindow.ui:1659
#. i18n: ectx: property (text), widget (QLabel, label_downColor)
#: rc.cpp:254
msgid "Download speed color"
msgstr ""
#. i18n: file: ui/configwindow.ui:1699
#. i18n: ectx: property (text), widget (QLabel, label_upColor)
#: rc.cpp:257
msgid "Upload speed color"
msgstr ""
#. i18n: file: ui/configwindow.ui:1745
#. i18n: ectx: attribute (title), widget (QWidget, appearance) #. i18n: ectx: attribute (title), widget (QWidget, appearance)
#: rc.cpp:144 #: rc.cpp:260
msgid "Appearance" msgid "Appearance"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:1040 #. i18n: file: ui/configwindow.ui:1759
#. i18n: ectx: property (text), widget (QLabel, label_interval) #. i18n: ectx: property (text), widget (QLabel, label_interval)
#: rc.cpp:147 #: rc.cpp:263
msgid "Time interval" msgid "Time interval"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:1095 #. i18n: file: ui/configwindow.ui:1814
#. i18n: ectx: property (text), widget (QLabel, label_font) #. i18n: ectx: property (text), widget (QLabel, label_font)
#: rc.cpp:150 #: rc.cpp:266
msgid "Font" msgid "Font"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:1135 #. i18n: file: ui/configwindow.ui:1854
#. i18n: ectx: property (text), widget (QLabel, label_fontSize) #. i18n: ectx: property (text), widget (QLabel, label_fontSize)
#: rc.cpp:153 #: rc.cpp:269
msgid "Font size" msgid "Font size"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:1190 #. i18n: file: ui/configwindow.ui:1909
#. i18n: ectx: property (text), widget (QLabel, label_color) #. i18n: ectx: property (text), widget (QLabel, label_color)
#: rc.cpp:156 #: rc.cpp:272
msgid "Font color" msgid "Font color"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:1230 #. i18n: file: ui/configwindow.ui:1949
#. i18n: ectx: property (text), widget (QLabel, label_style) #. i18n: ectx: property (text), widget (QLabel, label_style)
#: rc.cpp:159 #: rc.cpp:275
msgid "Font style" msgid "Font style"
msgstr "" msgstr ""
#. i18n: file: ui/configwindow.ui:1280 #. i18n: file: ui/configwindow.ui:1999
#. i18n: ectx: property (text), widget (QLabel, label_weight) #. i18n: ectx: property (text), widget (QLabel, label_weight)
#: rc.cpp:162 #: rc.cpp:278
msgid "Font weight" msgid "Font weight"
msgstr "" msgstr ""
#: rc.cpp:163 #: rc.cpp:279
msgctxt "NAME OF TRANSLATORS" msgctxt "NAME OF TRANSLATORS"
msgid "Your names" msgid "Your names"
msgstr "" msgstr ""
#: rc.cpp:164 #: rc.cpp:280
msgctxt "EMAIL OF TRANSLATORS" msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails" msgid "Your emails"
msgstr "" msgstr ""

View File

@ -6,8 +6,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n" "Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
"POT-Creation-Date: 2014-03-31 00:58+0400\n" "POT-Creation-Date: 2014-04-02 20:48+0400\n"
"PO-Revision-Date: 2014-03-31 01:22+0400\n" "PO-Revision-Date: 2014-04-02 20:52+0400\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n" "Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Russian <kde-russian@lists.kde.ru>\n" "Language-Team: Russian <kde-russian@lists.kde.ru>\n"
"Language: ru\n" "Language: ru\n"
@ -37,17 +37,16 @@ msgid ""
"Detailed information may be found on <a href=\"http://arcanis.name/projects/" "Detailed information may be found on <a href=\"http://arcanis.name/projects/"
"pytextmonitor/\">project homepage</a>" "pytextmonitor/\">project homepage</a>"
msgstr "" msgstr ""
"Подробная информация может быть найдена на <a " "Подробная информация может быть найдена на <a href=\"http://arcanis.name/ru/"
"href=\"http://arcanis.name/ru/projects/" "projects/pytextmonitor/\">домашней странице проекта</a>"
"pytextmonitor/\">домашней странице проекта</a>"
#. i18n: file: ui/configwindow.ui:66 #. i18n: file: ui/configwindow.ui:69
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
#: rc.cpp:12 #: rc.cpp:12
msgid "Time" msgid "Time"
msgstr "Время" msgstr "Время"
#. i18n: file: ui/configwindow.ui:85 #. i18n: file: ui/configwindow.ui:83
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
#: rc.cpp:15 #: rc.cpp:15
msgid "" msgid ""
@ -55,123 +54,117 @@ msgid ""
"$isotime - time in ISO format\n" "$isotime - time in ISO format\n"
"$shorttime - time in short format\n" "$shorttime - time in short format\n"
"$longtime - time in log format\n" "$longtime - time in log format\n"
"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o " "$custom - custom time format"
"zero; \n"
"\t$MMMM - long month; $MMM - short month; $MM - month; $M - month w\\o "
"zero; \n"
"\t$yyyy - year; $yy short year; \n"
"\t$hh - hours (24 only); $h - hours w\\o zero (24 only); \n"
"\t$mm - minutes; $m - minutes w\\o zero;\n"
"\t$ss - seconds; $s - seconds w\\o zero"
msgstr "" msgstr ""
"$time - время в стандартном формате\n" "$time - время в стандартном формате\n"
"$isotime - время ISO формате\n" "$isotime - время в ISO формате\n"
"$shorttime - время в коротком формате\n" "$shorttime - время в коротком формате\n"
"$longtime - время в длинном формате\n" "$longtime - время в длинном формате\n"
"$custom: $dddd - день недели (длинный); $ddd - день недели (короткий); $dd - " "$custom - свой формат времени"
"день; $d - день без 0; \n"
"\t$MMMM - месяц (длинный); $MMM - месяц (короткий); $MM - месяц; $M - месяц "
"без 0; \n"
"\t$yyyy - год; $yy - год (короткий); \n"
"\t$hh - часы (24); $h - часы без 0 (24); \n"
"\t$mm - минуты; $m - минуты без 0;\n"
"\t$ss - секунды; $s - секунды без 0"
#. i18n: file: ui/configwindow.ui:130 #. i18n: file: ui/configwindow.ui:128
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
#: rc.cpp:27 #: rc.cpp:22
msgid "Uptime" msgid "Uptime"
msgstr "Время работы" msgstr "Время работы"
#. i18n: file: ui/configwindow.ui:141 #. i18n: file: ui/configwindow.ui:139
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
#: rc.cpp:30 #: rc.cpp:25
msgid "" msgid ""
"$uptime - system uptime\n" "$uptime - system uptime\n"
"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes" "$custom - custom format"
msgstr "" msgstr ""
"$uptime - время работы\n" "$uptime - время работы\n"
"$custom: $ds - дни работы; $hs - часы; $ms - минуты" "$custom - свой формат"
#. i18n: file: ui/configwindow.ui:189 #. i18n: file: ui/configwindow.ui:187
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
#: rc.cpp:34 #: rc.cpp:29
msgid "CPU" msgid "CPU"
msgstr "CPU" msgstr "CPU"
#. i18n: file: ui/configwindow.ui:200 #. i18n: file: ui/configwindow.ui:203
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
#: rc.cpp:38 #: rc.cpp:33
#, no-c-format #, no-c-format
msgid "" msgid ""
"$cpu - total load CPU, %\n" "$cpu - total load CPU, %\n"
"$ccpu - load CPU for each core, %" "$cpu0 - load CPU for core 0, %\n"
"...\n"
"$cpu7 - load CPU for core 7, %"
msgstr "" msgstr ""
"$cpu - общая загрузка CPU, %\n" "$cpu - общая загрузка CPU, %\n"
"$ccpu - загрузка CPU для каждого ядра, %" "$cpu0 - загрузка CPU для ядра 0, %\n"
"...\n"
"$cpu7 - загрузка CPU для ядра 7, %"
#. i18n: file: ui/configwindow.ui:248 #. i18n: file: ui/configwindow.ui:251
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
#: rc.cpp:42 #: rc.cpp:39
msgid "CPU Clock" msgid "CPU Clock"
msgstr "Частота CPU" msgstr "Частота CPU"
#. i18n: file: ui/configwindow.ui:259 #. i18n: file: ui/configwindow.ui:267
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
#: rc.cpp:45 #: rc.cpp:42
msgid "" msgid ""
"$cpucl - average CPU clock, MHz\n" "$cpucl - average CPU clock, MHz\n"
"$ccpucl - CPU clock for each core, MHz" "$cpucl0 - CPU clock for core 0, MHz\n"
"...\n"
"$cpucl7 - CPU clock for core 7, MHz"
msgstr "" msgstr ""
"$cpucl - средняя частота CPU, MHz\n" "$cpucl - средняя частота CPU, MHz\n"
"$ccpucl - частота CPU для каждого ядра, MHz" "$cpucl0 - частота CPU для ядра 0, MHz\n"
"...\n"
"$cpucl7 - частота CPU для ядра 7, MHz"
#. i18n: file: ui/configwindow.ui:307 #. i18n: file: ui/configwindow.ui:315
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
#: rc.cpp:49 #: rc.cpp:48
msgid "Temperature" msgid "Temperature"
msgstr "Температура" msgstr "Температура"
#. i18n: file: ui/configwindow.ui:330 #. i18n: file: ui/configwindow.ui:325
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
#: rc.cpp:52 #: rc.cpp:51
msgid "$temp - physical temperature on CPU" msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
msgstr "$temp - физическая температура на CPU" msgstr "$tempN - физическая температура на устройстве N (от 0). Пример: $temp0"
#. i18n: file: ui/configwindow.ui:378 #. i18n: file: ui/configwindow.ui:373
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
#: rc.cpp:55 #: rc.cpp:54
msgid "GPU" msgid "GPU"
msgstr "GPU" msgstr "GPU"
#. i18n: file: ui/configwindow.ui:388 #. i18n: file: ui/configwindow.ui:383
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
#: rc.cpp:59 #: rc.cpp:58
#, no-c-format #, no-c-format
msgid "$gpu - gpu usage, %" msgid "$gpu - gpu usage, %"
msgstr "$gpu - использование GPU, %" msgstr "$gpu - использование GPU, %"
#. i18n: file: ui/configwindow.ui:436 #. i18n: file: ui/configwindow.ui:431
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
#: rc.cpp:62 #: rc.cpp:61
msgid "GPU Temp" msgid "GPU Temp"
msgstr "Температура GPU" msgstr "Температура GPU"
#. i18n: file: ui/configwindow.ui:446 #. i18n: file: ui/configwindow.ui:441
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
#: rc.cpp:65 #: rc.cpp:64
msgid "$gputemp - physical temperature on GPU" msgid "$gputemp - physical temperature on GPU"
msgstr "$gputemp - физическая температура на GPU" msgstr "$gputemp - физическая температура на GPU"
#. i18n: file: ui/configwindow.ui:494 #. i18n: file: ui/configwindow.ui:489
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
#: rc.cpp:68 #: rc.cpp:67
msgid "Memory" msgid "Memory"
msgstr "Память" msgstr "Память"
#. i18n: file: ui/configwindow.ui:505 #. i18n: file: ui/configwindow.ui:503
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
#: rc.cpp:72 #: rc.cpp:71
#, no-c-format #, no-c-format
msgid "" msgid ""
"$mem - RAM usage, %\n" "$mem - RAM usage, %\n"
@ -180,15 +173,15 @@ msgstr ""
"$mem - использование RAM, %\n" "$mem - использование RAM, %\n"
"$memmb - использование RAM, MB" "$memmb - использование RAM, MB"
#. i18n: file: ui/configwindow.ui:553 #. i18n: file: ui/configwindow.ui:551
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
#: rc.cpp:76 #: rc.cpp:75
msgid "Swap" msgid "Swap"
msgstr "Swap" msgstr "Swap"
#. i18n: file: ui/configwindow.ui:564 #. i18n: file: ui/configwindow.ui:565
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
#: rc.cpp:80 #: rc.cpp:79
#, no-c-format #, no-c-format
msgid "" msgid ""
"$swap - swap usage, %\n" "$swap - swap usage, %\n"
@ -197,58 +190,61 @@ msgstr ""
"$swap - использование swap, %\n" "$swap - использование swap, %\n"
"$swapmb - использование swap, MB" "$swapmb - использование swap, MB"
#. i18n: file: ui/configwindow.ui:612 #. i18n: file: ui/configwindow.ui:613
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
#: rc.cpp:84 #: rc.cpp:83
msgid "HDD" msgid "HDD"
msgstr "HDD" msgstr "HDD"
#. i18n: file: ui/configwindow.ui:622 #. i18n: file: ui/configwindow.ui:623
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
#: rc.cpp:88 #: rc.cpp:87
#, no-c-format #, no-c-format
msgid "@@/;@@ - mount point usage, %" msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
msgstr "@@/;@@ - использование точки монтирования, %" msgstr "$hddN - использование точки монтирования N (от 0), %. Пример: $hdd0"
#. i18n: file: ui/configwindow.ui:670 #. i18n: file: ui/configwindow.ui:671
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
#: rc.cpp:91 #: rc.cpp:90
msgid "HDD Temp" msgid "HDD Temp"
msgstr "Температура HDD" msgstr "Температура HDD"
#. i18n: file: ui/configwindow.ui:680 #. i18n: file: ui/configwindow.ui:681
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
#: rc.cpp:94 #: rc.cpp:93
msgid "@@/dev/sda@@ - physical temperature on /dev/sda" msgid ""
msgstr "@@/dev/sda@@ - физическая температура /dev/sda" "$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
msgstr ""
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0 "
"$hddtempN - температура на устройстве N (от 0). Пример: $hddtemp0"
#. i18n: file: ui/configwindow.ui:728 #. i18n: file: ui/configwindow.ui:729
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
#: rc.cpp:97 #: rc.cpp:96
msgid "Network" msgid "Network"
msgstr "Сеть" msgstr "Сеть"
#. i18n: file: ui/configwindow.ui:740 #. i18n: file: ui/configwindow.ui:744
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
#: rc.cpp:100 #: rc.cpp:99
msgid "" msgid ""
"$net - network speed, down/up, KB/s\n" "$down - download speed, KB/s\n"
"$netdev - current network device\n" "$up - upload speed, KB/s\n"
"@@eth0@@ - disable auto select device and set specified device" "$netdev - current network device"
msgstr "" msgstr ""
"$net - скорость передачи данных, down/up, KB/s\n" "$down - скорость скачки, KB/s\n"
"$netdev - используемое устройство\n" "$up - скорость загрузки, KB/s\n"
"@@eth0@@ - отключить автовыбор устройства и установить указанное" "$netdev - текущее устройство"
#. i18n: file: ui/configwindow.ui:788 #. i18n: file: ui/configwindow.ui:792
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
#: rc.cpp:105 #: rc.cpp:104
msgid "Battery" msgid "Battery"
msgstr "Батарея" msgstr "Батарея"
#. i18n: file: ui/configwindow.ui:799 #. i18n: file: ui/configwindow.ui:803
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
#: rc.cpp:109 #: rc.cpp:108
#, no-c-format #, no-c-format
msgid "" msgid ""
"$bat - battery charge, %\n" "$bat - battery charge, %\n"
@ -257,57 +253,17 @@ msgstr ""
"$bat - заряд батареи, %\n" "$bat - заряд батареи, %\n"
"$ac - статус адаптора питания" "$ac - статус адаптора питания"
#. i18n: file: ui/configwindow.ui:863 #. i18n: file: ui/configwindow.ui:851
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
#: rc.cpp:113
msgid "Battery device"
msgstr "Устройство батареи"
#. i18n: file: ui/configwindow.ui:870
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
#: rc.cpp:116
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr "\"/sys/class/power_supply/BAT0/capacity\" по умолчанию"
#. i18n: file: ui/configwindow.ui:906
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
#: rc.cpp:119
msgid "AC device"
msgstr "Устройство AC"
#. i18n: file: ui/configwindow.ui:913
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
#: rc.cpp:122
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr "\"/sys/class/power_supply/AC/online\" по умолчанию"
#. i18n: file: ui/configwindow.ui:933
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
#: rc.cpp:125 #. i18n: file: ui/configwindow.ui:1338
#. i18n: ectx: property (text), widget (QLabel, label_playerSelect)
#: rc.cpp:112 rc.cpp:214
msgid "Music player" msgid "Music player"
msgstr "Музыкальный плеер" msgstr "Музыкальный плеер"
#. i18n: file: ui/configwindow.ui:950 #. i18n: file: ui/configwindow.ui:865
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
#: rc.cpp:128
msgid "amarok"
msgstr "amarok"
#. i18n: file: ui/configwindow.ui:955
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
#: rc.cpp:131
msgid "mpd"
msgstr "mpd"
#. i18n: file: ui/configwindow.ui:960
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
#: rc.cpp:134
msgid "qmmp"
msgstr "qmmp"
#. i18n: file: ui/configwindow.ui:972
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player) #. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
#: rc.cpp:137 #: rc.cpp:115
msgid "" msgid ""
"$album - song album\n" "$album - song album\n"
"$artist - song artist\n" "$artist - song artist\n"
@ -321,56 +277,331 @@ msgstr ""
"$time - продолжительность\n" "$time - продолжительность\n"
"$title - название" "$title - название"
#. i18n: file: ui/configwindow.ui:1026 #. i18n: file: ui/configwindow.ui:913
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_custom)
#: rc.cpp:122
msgid "Custom"
msgstr "Своя команда"
#. i18n: file: ui/configwindow.ui:923
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_custom)
#: rc.cpp:125
msgid "$custom - get output from custom command"
msgstr "$custom - получить информацию из своей команды"
#. i18n: file: ui/configwindow.ui:977
#. i18n: ectx: attribute (title), widget (QWidget, advanced)
#: rc.cpp:128
msgid "Advanced"
msgstr "Расширенные"
#. i18n: file: ui/configwindow.ui:991
#. i18n: ectx: property (text), widget (QLabel, label_timeFormat)
#: rc.cpp:131
msgid "Custom time format"
msgstr "Свой формат времени"
#. i18n: file: ui/configwindow.ui:1013
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_timeFormat)
#: rc.cpp:134
msgid ""
"$dddd - long weekday\n"
"$ddd - short weekday\n"
"$dd - day\n"
"$d - day w\\o zero\n"
"$MMMM - long month\n"
"$MMM - short month\n"
"$MM - month\n"
"$M - month w\\o zero\n"
"$yyyy - year\n"
"$yy - short year\n"
"$hh - hours (24 only)\n"
"$h - hours w\\o zero (24 only)\n"
"$mm - minutes\n"
"$m - minutes w\\o zero\n"
"$ss - seconds\n"
"$s - seconds w\\o zero"
msgstr ""
"$dddd - день недели (длинный)\n"
"$ddd - день недели (короткий)\n"
"$dd - день\n"
"$d - день без 0\n"
"$MMMM - месяц (длинный)\n"
"$MMM - месяц (короткий)\n"
"$MM - месяц\n"
"$M - месяц без 0\n"
"$yyyy - год\n"
"$yy - год (короткий)\n"
"$hh - часы (24)\n"
"$h - часы без 0 (24)\n"
"$mm - минуты\n"
"$m - минуты без 0\n"
"$ss - секунды\n"
"$s - секунды без 0"
#. i18n: file: ui/configwindow.ui:1033
#. i18n: ectx: property (text), widget (QLabel, label_uptimeFormat)
#: rc.cpp:152
msgid "Custom uptime format"
msgstr "Свой формат аптайма"
#. i18n: file: ui/configwindow.ui:1042
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptimeFormat)
#: rc.cpp:155
msgid ""
"$ds - uptime days\n"
"$hs - uptime hours\n"
"$ms - uptime minutes"
msgstr ""
"$ds - дни работы\n"
"$hs - часы\n"
"$ms - минуты"
#. i18n: file: ui/configwindow.ui:1064
#. i18n: ectx: property (text), widget (QLabel, label_tempDevice)
#: rc.cpp:160
msgid "Temperature devices"
msgstr "Температурные устройства"
#. i18n: file: ui/configwindow.ui:1090
#. i18n: ectx: property (text), widget (QPushButton, pushButton_tempDevice)
#. i18n: file: ui/configwindow.ui:1145
#. i18n: ectx: property (text), widget (QPushButton, pushButton_mount)
#. i18n: file: ui/configwindow.ui:1200
#. i18n: ectx: property (text), widget (QPushButton, pushButton_hddDevice)
#: rc.cpp:163 rc.cpp:173 rc.cpp:183
msgid "Add"
msgstr "Добавить"
#. i18n: file: ui/configwindow.ui:1100
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_tempDevice)
#. i18n: file: ui/configwindow.ui:1155
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_mount)
#. i18n: file: ui/configwindow.ui:1210
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_hddDevice)
#: rc.cpp:166 rc.cpp:176 rc.cpp:186
msgid ""
"Editable\n"
"del - remove item"
msgstr ""
"Редактируемо\n"
"del - удалить строку"
#. i18n: file: ui/configwindow.ui:1119
#. i18n: ectx: property (text), widget (QLabel, label_mount)
#: rc.cpp:170
msgid "Mount points"
msgstr "Точки монтирования"
#. i18n: file: ui/configwindow.ui:1174
#. i18n: ectx: property (text), widget (QLabel, label_hddDevice)
#: rc.cpp:180
msgid "HDD devices"
msgstr "HDD"
#. i18n: file: ui/configwindow.ui:1227
#. i18n: ectx: property (text), widget (QLabel, label_netdir)
#: rc.cpp:190
msgid "Network directory"
msgstr "Путь к интерфейсам"
#. i18n: file: ui/configwindow.ui:1234
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_netdir)
#: rc.cpp:193
msgid "\"/sys/class/net\" by default"
msgstr "\"/sys/class/net\" по умолчанию"
#. i18n: file: ui/configwindow.ui:1254
#. i18n: ectx: property (toolTip), widget (QCheckBox, checkBox_netdev)
#: rc.cpp:196
msgid "Disable auto select device and set specified device"
msgstr "Отключить авто выбор устройства и использовать указанное"
#. i18n: file: ui/configwindow.ui:1257
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_netdev)
#: rc.cpp:199
msgid "Set network device"
msgstr "Выберете сетевое устройство"
#. i18n: file: ui/configwindow.ui:1290
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
#: rc.cpp:202
msgid "Battery device"
msgstr "Устройство батареи"
#. i18n: file: ui/configwindow.ui:1297
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
#: rc.cpp:205
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
msgstr "\"/sys/class/power_supply/BAT0/capacity\" по умолчанию"
#. i18n: file: ui/configwindow.ui:1314
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
#: rc.cpp:208
msgid "AC device"
msgstr "Устройство AC"
#. i18n: file: ui/configwindow.ui:1321
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
#: rc.cpp:211
msgid "\"/sys/class/power_supply/AC/online\" by default"
msgstr "\"/sys/class/power_supply/AC/online\" по умолчанию"
#. i18n: file: ui/configwindow.ui:1358
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_playerSelect)
#: rc.cpp:217
msgid "amarok"
msgstr "amarok"
#. i18n: file: ui/configwindow.ui:1363
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_playerSelect)
#: rc.cpp:220
msgid "mpd"
msgstr "mpd"
#. i18n: file: ui/configwindow.ui:1368
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_playerSelect)
#: rc.cpp:223
msgid "qmmp"
msgstr "qmmp"
#. i18n: file: ui/configwindow.ui:1386
#. i18n: ectx: property (text), widget (QLabel, label_customCommand)
#: rc.cpp:226
msgid "Custom command"
msgstr "Своя команда"
#. i18n: file: ui/configwindow.ui:1394
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_customCommand)
#: rc.cpp:229
msgid ""
"Command to run, example:\n"
"wget -qO- http://ifconfig.me/ip - get external IP"
msgstr ""
"Команда для запуска, например:\n"
"wget -qO- http://ifconfig.me/ip - получить внешний IP"
#. i18n: file: ui/configwindow.ui:1417
#. i18n: ectx: attribute (title), widget (QWidget, tab)
#: rc.cpp:233
msgid "Tooltip"
msgstr "Тултип"
#. i18n: file: ui/configwindow.ui:1423
#. i18n: ectx: property (text), widget (QLabel, label_tooltip)
#: rc.cpp:236
msgid ""
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
"To enable them just make needed checkbox fully checked."
msgstr ""
"Поля CPU, частота CPU, память, swap, сеть поддерживают графический тултип. "
"Чтобы включить его, просто сделайте требуемые чекбоксы полностью чекнутыми."
#. i18n: file: ui/configwindow.ui:1444
#. i18n: ectx: property (text), widget (QLabel, label_tooltipNum)
#: rc.cpp:239
msgid "Number of values for tooltips"
msgstr "Число хранящихся значений"
#. i18n: file: ui/configwindow.ui:1499
#. i18n: ectx: property (text), widget (QLabel, label_cpuColor)
#: rc.cpp:242
msgid "CPU color"
msgstr "Цвет CPU"
#. i18n: file: ui/configwindow.ui:1539
#. i18n: ectx: property (text), widget (QLabel, label_cpuclockColor)
#: rc.cpp:245
msgid "CPU clock color"
msgstr "Цвет частоты CPU"
#. i18n: file: ui/configwindow.ui:1579
#. i18n: ectx: property (text), widget (QLabel, label_memColor)
#: rc.cpp:248
msgid "Memory color"
msgstr "Цвет памяти"
#. i18n: file: ui/configwindow.ui:1619
#. i18n: ectx: property (text), widget (QLabel, label_swapColor)
#: rc.cpp:251
msgid "Swap color"
msgstr "Цвет swap"
#. i18n: file: ui/configwindow.ui:1659
#. i18n: ectx: property (text), widget (QLabel, label_downColor)
#: rc.cpp:254
msgid "Download speed color"
msgstr "Цвет скорости загрузки"
#. i18n: file: ui/configwindow.ui:1699
#. i18n: ectx: property (text), widget (QLabel, label_upColor)
#: rc.cpp:257
msgid "Upload speed color"
msgstr "Цвет скорости отдачи"
#. i18n: file: ui/configwindow.ui:1745
#. i18n: ectx: attribute (title), widget (QWidget, appearance) #. i18n: ectx: attribute (title), widget (QWidget, appearance)
#: rc.cpp:144 #: rc.cpp:260
msgid "Appearance" msgid "Appearance"
msgstr "Внешний вид" msgstr "Внешний вид"
#. i18n: file: ui/configwindow.ui:1040 #. i18n: file: ui/configwindow.ui:1759
#. i18n: ectx: property (text), widget (QLabel, label_interval) #. i18n: ectx: property (text), widget (QLabel, label_interval)
#: rc.cpp:147 #: rc.cpp:263
msgid "Time interval" msgid "Time interval"
msgstr "Интервал обновления" msgstr "Интервал обновления"
#. i18n: file: ui/configwindow.ui:1095 #. i18n: file: ui/configwindow.ui:1814
#. i18n: ectx: property (text), widget (QLabel, label_font) #. i18n: ectx: property (text), widget (QLabel, label_font)
#: rc.cpp:150 #: rc.cpp:266
msgid "Font" msgid "Font"
msgstr "Шрифт" msgstr "Шрифт"
#. i18n: file: ui/configwindow.ui:1135 #. i18n: file: ui/configwindow.ui:1854
#. i18n: ectx: property (text), widget (QLabel, label_fontSize) #. i18n: ectx: property (text), widget (QLabel, label_fontSize)
#: rc.cpp:153 #: rc.cpp:269
msgid "Font size" msgid "Font size"
msgstr "Размер шрифта" msgstr "Размер шрифта"
#. i18n: file: ui/configwindow.ui:1190 #. i18n: file: ui/configwindow.ui:1909
#. i18n: ectx: property (text), widget (QLabel, label_color) #. i18n: ectx: property (text), widget (QLabel, label_color)
#: rc.cpp:156 #: rc.cpp:272
msgid "Font color" msgid "Font color"
msgstr "Цвет шрифта" msgstr "Цвет шрифта"
#. i18n: file: ui/configwindow.ui:1230 #. i18n: file: ui/configwindow.ui:1949
#. i18n: ectx: property (text), widget (QLabel, label_style) #. i18n: ectx: property (text), widget (QLabel, label_style)
#: rc.cpp:159 #: rc.cpp:275
msgid "Font style" msgid "Font style"
msgstr "Стиль шрифта" msgstr "Стиль шрифта"
#. i18n: file: ui/configwindow.ui:1280 #. i18n: file: ui/configwindow.ui:1999
#. i18n: ectx: property (text), widget (QLabel, label_weight) #. i18n: ectx: property (text), widget (QLabel, label_weight)
#: rc.cpp:162 #: rc.cpp:278
msgid "Font weight" msgid "Font weight"
msgstr "Ширина шрифта" msgstr "Ширина шрифта"
#: rc.cpp:163 #: rc.cpp:279
msgctxt "NAME OF TRANSLATORS" msgctxt "NAME OF TRANSLATORS"
msgid "Your names" msgid "Your names"
msgstr "Evgeniy Alekseev" msgstr "Evgeniy Alekseev"
#: rc.cpp:164 #: rc.cpp:280
msgctxt "EMAIL OF TRANSLATORS" msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails" msgid "Your emails"
msgstr "esalexeev@gmail.com" msgstr "esalexeev@gmail.com"
#~ msgid "@@/;@@ - mount point usage, %"
#~ msgstr "@@/;@@ - использование точки монтирования, %"
#~ msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
#~ msgstr "@@/dev/sda@@ - физическая температура /dev/sda"
#~ msgid ""
#~ "$net - network speed, down/up, KB/s\n"
#~ "$netdev - current network device\n"
#~ "@@eth0@@ - disable auto select device and set specified device"
#~ msgstr ""
#~ "$net - скорость передачи данных, down/up, KB/s\n"
#~ "$netdev - используемое устройство\n"
#~ "@@eth0@@ - отключить автовыбор устройства и установить указанное"