Compare commits
21 Commits
Author | SHA1 | Date | |
---|---|---|---|
73e921a8f5 | |||
7ee4a5dc9d | |||
89efe6c846 | |||
4218a4da08 | |||
0db909d914 | |||
d7cc354432 | |||
aab456924f | |||
20c2a4eb6b | |||
d63b33903a | |||
fe77fcb2fd | |||
d226629b45 | |||
413dbb2134 | |||
b11b4d2462 | |||
62dd94a294 | |||
12d506a16d | |||
363c4327ee | |||
a716269e79 | |||
c66b255e8b | |||
decf714e74 | |||
405dda5144 | |||
0f8b9dc627 |
22
CHANGELOG
@ -1,3 +1,25 @@
|
||||
Ver.1.7.2:
|
||||
+ added tags $dd, $d, $hh, $h, $mm, $m to custom uptime format
|
||||
+ added scalling to tooltips
|
||||
+ added dataengine configuration from ptm
|
||||
+ added custom command to dataengine
|
||||
- removed custom command from ptm
|
||||
- removed tags $ds, $hs, $ms
|
||||
|
||||
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:
|
||||
+ added support of several devices in hddtemp label
|
||||
- fixed #6
|
||||
|
6
PKGBUILD
@ -3,13 +3,13 @@
|
||||
|
||||
pkgname=kdeplasma-applets-pytextmonitor
|
||||
_pkgname=pytextmonitor
|
||||
pkgver=1.6.1
|
||||
pkgver=1.7.2
|
||||
pkgrel=1
|
||||
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://arcanis.name/projects/pytextmonitor"
|
||||
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"
|
||||
"catalyst: for GPU monitor"
|
||||
"nvidia-utils: for GPU monitor"
|
||||
@ -19,7 +19,7 @@ optdepends=("hddtemp: for HDD temperature monitor"
|
||||
makedepends=('automoc4' 'cmake')
|
||||
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
|
||||
install=${pkgname}.install
|
||||
md5sums=('aa6c5f00b33c073f3732bd921171a557')
|
||||
md5sums=('b1a23c5d38d196297235b5acd5f099ca')
|
||||
backup=('usr/share/config/extsysmon.conf')
|
||||
|
||||
build () {
|
||||
|
181
README.md
@ -10,72 +10,136 @@ PyTextMonitor is a minimalistic Plasmoid script written on Python2. It looks lik
|
||||
Configuration
|
||||
-------------
|
||||
For edited output you must open Settings window and setup output format in lines:
|
||||
* label `$time` - time in default format. For example, `fri Nov 6 04:48:01 2013`
|
||||
* label `$isotime` - time in iso format
|
||||
* label `$shorttime` - time in short locale format
|
||||
* label `$longtime` - time in long locale format
|
||||
* label `$custom` - will enable 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 `$custom` - will enable 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 `$ccpu` - load CPU for each core, <i>%</i>
|
||||
* label `$cpucl` - average cpu clock, <i>MHz</i>
|
||||
* label `$ccpucl` - cpu clock for each core, <i>MHz</i>
|
||||
* label `$temp` - average temperature in system
|
||||
* 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 `$mem` - usage memory, <i>%</i>
|
||||
* label `$memmb` - usage memory, <i>MB</i>
|
||||
* label `$swap` - swap, <i>%</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 `@@/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 `$net` - download and upload speed, <i>KB/s</i>. You may specify network device: something like `@@eth0@@`
|
||||
* 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 `$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 `$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 `$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 `$title` - current song title. One of supported music players must be installed
|
||||
* tag `$time` - time in default format. For example, `fri Nov 6 04:48:01 2013`
|
||||
* tag `$isotime` - time in iso format
|
||||
* tag `$shorttime` - time in short locale format
|
||||
* tag `$longtime` - time in long locale format
|
||||
* tag `$custom` - custom time format
|
||||
* tag `$uptime` - uptime, <i>---d--h--m</i>
|
||||
* tag `$custom` - custom uptime format
|
||||
* tag `$cpu` - total load cpu, <i>%</i>
|
||||
* tag `$cpuN` - load CPU for core N, <i>%</i>. N should be in range 0 to 8
|
||||
* tag `$cpucl` - average cpu clock, <i>MHz</i>
|
||||
* tag `$cpuclN` - cpu clock for core N, <i>MHz</i>. N should be in range 0 to 8
|
||||
* tag `$tempN` - temperature for device N. For example, `$temp0`
|
||||
* tag `$gpu` - GPU usage, <i>%</i>. `aticonfig` or `nvidia-smi` must be installed
|
||||
* tag `$gputemp` - GPU temperature. `aticonfig` or `nvidia-smi` must be installed
|
||||
* tag `$mem` - usage memory, <i>%</i>
|
||||
* tag `$memmb` - usage memory, <i>MB</i>
|
||||
* tag `$swap` - swap, <i>%</i>
|
||||
* tag `$swapmb` - swap, <i>MB</i>
|
||||
* tag `$hddN` - usage for mount point N, <i>%</i>. For example, `$hdd0`
|
||||
* tag `$hddtempN` - temperature for HDD N. For example, `$hddtemp0`
|
||||
* tag `$down` - download speed, <i>KB/s</i>
|
||||
* tag `$up` - upload speed, <i>KB/s</i>
|
||||
* tag `$netdev` - current network device
|
||||
* tag `$bat` - battery charge, <i>%</i>
|
||||
* tag `$ac` - status AC device. Return <i>(*)</i> if AC device is online or <i>( )</i> if offline
|
||||
* tag `$album` - current song album. One of supported music players must be installed
|
||||
* tag `$artist` - current song artist. One of supported music players must be installed
|
||||
* tag `$progress` - current song progress. One of supported music players must be installed (mpd does not support yet)
|
||||
* tag `$time` - current song duration. One of supported music players must be installed
|
||||
* tag `$title` - current song title. One of supported music players must be installed
|
||||
* tag `$custom` - returns output for custom command
|
||||
|
||||
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. **$cpu will work only in cpu label**.
|
||||
|
||||
Advanced settings
|
||||
-----------------
|
||||
**Custom time**
|
||||
|
||||
* tag `$dddd` - weekday in long format
|
||||
* tag `$ddd` - weekday in short format
|
||||
* tag `$dd` - day
|
||||
* tag `$d` - day without zero
|
||||
* tag `$MMMM` - month in long format
|
||||
* tag `$MMM` - month in short format
|
||||
* tag `$MM` - month
|
||||
* tag `$M` - month without zero
|
||||
* tag `$yyyy` - year
|
||||
* tag `$yy` - year in short format
|
||||
* tag `$hh` - hours
|
||||
* tag `$h` - hours without zero
|
||||
* tag `$mm` - minutes
|
||||
* tag `$m` - minutes without zero
|
||||
* tag `$ss` - seconds
|
||||
* tag `$s` - seconds without zero
|
||||
|
||||
**Custom uptime**
|
||||
|
||||
* tag `$dd` - uptime days
|
||||
* tag `$dd` - uptime days without zero
|
||||
* tag `$hh` - uptime hours
|
||||
* tag `$h` - uptime hours without zero
|
||||
* tag `$mm` - uptime minutes
|
||||
* tag `$m` - uptime minutes without zero
|
||||
|
||||
**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.
|
||||
|
||||
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 settings
|
||||
-------------------
|
||||
**GPU device**
|
||||
|
||||
Select one of supported GPU devices. `auto` will enable auto selection. Default is `auto`.
|
||||
|
||||
**HDD**
|
||||
|
||||
Select one of HDDs for HDD temperature monitor. `all` will enable monitor for all devices. Default is `all`.
|
||||
|
||||
**MPD address**
|
||||
|
||||
Address of MPD server. Default is `localhost`.
|
||||
|
||||
**MPD port**
|
||||
|
||||
Port of MPD server. Default is `6600`.
|
||||
|
||||
**Custom command**
|
||||
|
||||
*NOTE* This can cause the computer freeze.
|
||||
|
||||
A command, which will be run for custom label.
|
||||
|
||||
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.
|
||||
|
||||
TODO (wish) list
|
||||
----------------
|
||||
Tooltip (graphical information):
|
||||
* cpu, %
|
||||
* cpuclock, mhz
|
||||
* memory, %
|
||||
* swap, %
|
||||
* network, %
|
||||
|
||||
Instruction
|
||||
===========
|
||||
|
||||
@ -84,7 +148,6 @@ Dependencies
|
||||
* kdebase-workspace
|
||||
* kdebindings-python2
|
||||
* lm_sensors (for definition temperature device)
|
||||
* net-tools (for definition network device)
|
||||
* sysstat (for notification)
|
||||
|
||||
Optional dependencies
|
||||
|
Before Width: | Height: | Size: 175 KiB |
BIN
screenshots/dataengine.png
Normal file
After Width: | Height: | Size: 83 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 3.6 KiB |
BIN
screenshots/panel_01.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
screenshots/panel_02.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
screenshots/panel_03.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 189 KiB |
BIN
screenshots/ptm_config_01.png
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
screenshots/ptm_config_02.png
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
screenshots/ptm_config_03.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
screenshots/ptm_config_04.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
screenshots/ptm_config_05.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
screenshots/tooltips.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
@ -7,8 +7,8 @@ cmake_policy (SET CMP0015 NEW)
|
||||
|
||||
project (pytextmonitor)
|
||||
set (PROJECT_VERSION_MAJOR 1)
|
||||
set (PROJECT_VERSION_MINOR 6)
|
||||
set (PROJECT_VERSION_PATCH 1)
|
||||
set (PROJECT_VERSION_MINOR 7)
|
||||
set (PROJECT_VERSION_PATCH 2)
|
||||
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
|
||||
|
||||
message (STATUS "Version: ${PROJECT_VERSION}")
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Configuration file for Extended Systemmonitor DataEngine (v.1.6)
|
||||
# Configuration file for Extended Systemmonitor DataEngine
|
||||
# Uncomment needed lines
|
||||
|
||||
# Set GPU device
|
||||
@ -11,3 +11,6 @@
|
||||
# Set MPD settings
|
||||
#MPDADDRESS=localhost
|
||||
#MPDPORT=6600
|
||||
|
||||
# Custom command
|
||||
#CUSTOM=wget -qO- http://ifconfig.me/ip
|
||||
|
@ -43,6 +43,7 @@ QStringList ExtendedSysMon::sources() const
|
||||
source.append(QString("gputemp"));
|
||||
source.append(QString("hddtemp"));
|
||||
source.append(QString("player"));
|
||||
source.append(QString("custom"));
|
||||
return source;
|
||||
}
|
||||
|
||||
@ -73,6 +74,8 @@ bool ExtendedSysMon::readConfiguration()
|
||||
mpdAddress = QString("localhost");
|
||||
mpdPort = QString("6600");
|
||||
|
||||
customCommand = QString("wget -qO- http://ifconfig.me/ip");
|
||||
|
||||
QString fileStr;
|
||||
// FIXME: define configuration file
|
||||
QString confFileName = QString(getenv("HOME")) + QString("/.kde4/share/config/extsysmon.conf");
|
||||
@ -111,6 +114,8 @@ bool ExtendedSysMon::readConfiguration()
|
||||
mpdAddress = fileStr.split(QString("="), QString::SkipEmptyParts)[1].trimmed();
|
||||
else if (fileStr.split(QString("="), QString::SkipEmptyParts)[0] == QString("MPDPORT"))
|
||||
mpdPort = fileStr.split(QString("="), QString::SkipEmptyParts)[1].trimmed();
|
||||
else if (fileStr.split(QString("="), QString::SkipEmptyParts)[0] == QString("CUSTOM"))
|
||||
customCommand = fileStr.split(QString("="), QString::SkipEmptyParts)[1].trimmed();
|
||||
}
|
||||
}
|
||||
if (confFile.atEnd())
|
||||
@ -350,6 +355,14 @@ bool ExtendedSysMon::updateSourceEvent(const QString &source)
|
||||
key = QString("mpd_title");
|
||||
setData(source, key, value);
|
||||
}
|
||||
else if (source == QString("custom")) {
|
||||
QProcess custom;
|
||||
custom.start(QString("bash -c \"") + QString(customCommand) + QString("\""));
|
||||
custom.waitForFinished(-1);
|
||||
value = QTextCodec::codecForMib(106)->toUnicode(custom.readAllStandardOutput()).trimmed();
|
||||
key = QString("custom");
|
||||
setData(source, key, value);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -35,9 +35,9 @@ protected:
|
||||
// main configuration
|
||||
QStringList hddDev;
|
||||
QString gpuDev;
|
||||
// configuration
|
||||
QString mpdAddress;
|
||||
QString mpdPort;
|
||||
QString customCommand;
|
||||
};
|
||||
|
||||
#endif /* EXTSYSMON_H */
|
||||
|
@ -1,20 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# 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
|
||||
# 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
|
||||
# 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.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
############################################################################
|
||||
# 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 #
|
||||
# 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 #
|
||||
# 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., #
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #
|
||||
############################################################################
|
||||
|
||||
from util import *
|
||||
|
||||
|
@ -17,10 +17,11 @@
|
||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
||||
############################################################################
|
||||
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
from PyKDE4.kdecore import *
|
||||
from PyKDE4.kdeui import *
|
||||
import commands
|
||||
import commands, os
|
||||
import config
|
||||
|
||||
|
||||
@ -53,6 +54,48 @@ class ConfigDefinition:
|
||||
self.parent.font_weight = self.configpage.ui.spinBox_weight.value()
|
||||
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.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 + '"])')
|
||||
|
||||
dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf"
|
||||
try:
|
||||
with open(dataengineConfig, 'w') as deConfigFile:
|
||||
deConfigFile.write("GPUDEV=" + str(self.configpage.ui.comboBox_gpudev.currentText()) + "\n")
|
||||
deConfigFile.write("HDDDEV=" + str(self.configpage.ui.comboBox_hdddev.currentText()) + "\n")
|
||||
deConfigFile.write("MPDADDRESS=" + str(self.configpage.ui.lineEdit_mpdaddress.text()) + "\n")
|
||||
deConfigFile.write("MPDPORT=" + str(self.configpage.ui.spinBox_mpdport.value()) + "\n")
|
||||
deConfigFile.write("CUSTOM=" + str(self.configpage.ui.lineEdit_customCommand.text()) + "\n")
|
||||
except:
|
||||
pass
|
||||
|
||||
# disconnecting from source and clear layout
|
||||
if (self.parent.uptimeBool > 0):
|
||||
self.parent.systemmonitor.disconnectSource("system/uptime", self.parent)
|
||||
@ -60,36 +103,28 @@ class ConfigDefinition:
|
||||
self.parent.layout.removeItem(self.parent.label_uptime)
|
||||
if (self.parent.cpuBool > 0):
|
||||
self.parent.systemmonitor.disconnectSource("cpu/system/TotalLoad", self.parent)
|
||||
if (self.parent.cpuFormat.split('$ccpu')[0] != self.parent.cpuFormat):
|
||||
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)
|
||||
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.layout.removeItem(self.parent.label_cpu)
|
||||
for core in self.parent.cpuCore.keys():
|
||||
self.parent.systemmonitor.disconnectSource("cpu/cpu"+str(core)+"/TotalLoad", self.parent)
|
||||
self.parent.label_cpu.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_cpu)
|
||||
if (self.parent.cpuclockBool > 0):
|
||||
self.parent.systemmonitor.disconnectSource("cpu/system/AverageClock", self.parent)
|
||||
if (self.parent.cpuclockFormat.split('$ccpu')[0] != self.parent.cpuclockFormat):
|
||||
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)
|
||||
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.layout.removeItem(self.parent.label_cpuclock)
|
||||
for core in self.parent.cpuClockCore.keys():
|
||||
self.parent.systemmonitor.disconnectSource("cpu/cpu"+str(core)+"/clock", self.parent)
|
||||
self.parent.label_cpuclock.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_cpuclock)
|
||||
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.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):
|
||||
self.parent.extsysmon.disconnectSource("gpu", self.parent)
|
||||
self.parent.label_gpu.setText('')
|
||||
@ -100,26 +135,27 @@ class ConfigDefinition:
|
||||
self.parent.layout.removeItem(self.parent.label_gputemp)
|
||||
if (self.parent.memBool > 0):
|
||||
self.parent.systemmonitor.disconnectSource("mem/physical/application", self.parent)
|
||||
if (self.parent.memInMb == False):
|
||||
self.parent.systemmonitor.disconnectSource("mem/physical/free", self.parent)
|
||||
self.parent.systemmonitor.disconnectSource("mem/physical/used", self.parent)
|
||||
self.parent.systemmonitor.disconnectSource("mem/physical/free", self.parent)
|
||||
self.parent.systemmonitor.disconnectSource("mem/physical/used", self.parent)
|
||||
self.parent.label_mem.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_mem)
|
||||
if (self.parent.swapBool > 0):
|
||||
self.parent.systemmonitor.disconnectSource("mem/swap/used", self.parent)
|
||||
if (self.parent.swapInMb == False):
|
||||
self.parent.systemmonitor.disconnectSource("mem/swap/free", self.parent)
|
||||
self.parent.systemmonitor.disconnectSource("mem/swap/free", self.parent)
|
||||
self.parent.label_swap.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_swap)
|
||||
if (self.parent.hddBool > 0):
|
||||
for mount in self.parent.mountPoints:
|
||||
self.parent.systemmonitor.disconnectSource("partitions" + mount + "/filllevel", self.parent)
|
||||
exec ('self.parent.label_hdd_' + ''.join(mount.split('/')) + '.setText("")')
|
||||
exec ("self.parent.layout.removeItem(self.parent.label_hdd_" + ''.join(mount.split('/')) + ")")
|
||||
self.parent.label_hdd0.setText('')
|
||||
self.parent.label_hdd1.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_hdd0)
|
||||
self.parent.layout.removeItem(self.parent.label_hdd1)
|
||||
for item in self.parent.mount:
|
||||
self.parent.systemmonitor.disconnectSource("partitions" + item + "/filllevel", self.parent)
|
||||
self.parent.label_hdd.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_hdd)
|
||||
self.parent.mountNames = []
|
||||
self.parent.mount = {}
|
||||
for i in range(self.configpage.ui.listWidget_mount.count()):
|
||||
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):
|
||||
self.parent.extsysmon.disconnectSource("hddtemp", self.parent)
|
||||
self.parent.label_hddtemp.setText('')
|
||||
@ -127,10 +163,8 @@ class ConfigDefinition:
|
||||
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+"/receiver/data", self.parent)
|
||||
self.parent.label_netDown.setText('')
|
||||
self.parent.label_netUp.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_netUp)
|
||||
self.parent.layout.removeItem(self.parent.label_netDown)
|
||||
self.parent.label_net.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_net)
|
||||
if (self.parent.batBool > 0):
|
||||
self.parent.label_bat.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_bat)
|
||||
@ -142,8 +176,11 @@ class ConfigDefinition:
|
||||
self.parent.timemon.disconnectSource("Local", self.parent)
|
||||
self.parent.label_time.setText('')
|
||||
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():
|
||||
exec ('self.parent.' + self.parent.dict_orders[label] + 'Bool = ' + str(self.configpage.checkboxes[self.parent.dict_orders[label]].checkState()))
|
||||
@ -156,19 +193,7 @@ class ConfigDefinition:
|
||||
else:
|
||||
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] + '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)
|
||||
|
||||
exec ('settings.set("' + self.parent.dict_orders[label] + 'Bool", self.parent.' + self.parent.dict_orders[label] + 'Bool)')
|
||||
self.parent.label_order = ''.join(self.parent.label_order.split('-'))
|
||||
settings.set('label_order', self.parent.label_order)
|
||||
|
||||
@ -191,6 +216,85 @@ class ConfigDefinition:
|
||||
else:
|
||||
self.configpage.ui.comboBox_style.setCurrentIndex(1)
|
||||
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.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'))))
|
||||
|
||||
deSettings = {'GPUDEV':'auto', 'HDDDEV':'all', 'MPDADDRESS':'localhost',
|
||||
'MPDPORT':'6600', 'CUSTOM':'wget -qO- http://ifconfig.me/ip'}
|
||||
dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf"
|
||||
try:
|
||||
with open(dataengineConfig, 'r') as deConfigFile:
|
||||
for line in deConfigFile:
|
||||
if ((line[0] != '#') and (line.split('=')[0] != line)):
|
||||
deSettings[line.split('=')[0]] = line.split('=')[1][:-1]
|
||||
except:
|
||||
pass
|
||||
index = self.configpage.ui.comboBox_gpudev.findText(deSettings['GPUDEV'])
|
||||
self.configpage.ui.comboBox_gpudev.setCurrentIndex(index)
|
||||
self.configpage.ui.comboBox_hdddev.addItem("all")
|
||||
commandOut = commands.getoutput("find /dev -name '[hs]d[a-z]'")
|
||||
for item in commandOut.split("\n"):
|
||||
try:
|
||||
self.configpage.ui.comboBox_hdddev.addItem(item)
|
||||
except:
|
||||
pass
|
||||
index = self.configpage.ui.comboBox_hdddev.findText(deSettings['HDDDEV'])
|
||||
self.configpage.ui.comboBox_hdddev.setCurrentIndex(index)
|
||||
self.configpage.ui.lineEdit_mpdaddress.setText(deSettings['MPDADDRESS'])
|
||||
self.configpage.ui.spinBox_mpdport.setValue(int(deSettings['MPDPORT']))
|
||||
self.configpage.ui.spinBox_mpdport.setValue(int(deSettings['MPDPORT']))
|
||||
self.configpage.ui.lineEdit_customCommand.setText(deSettings['CUSTOM'])
|
||||
|
||||
for label in self.parent.dict_orders.keys():
|
||||
exec ('bool = self.parent.' + self.parent.dict_orders[label] + 'Bool')
|
||||
self.configpage.checkboxes[self.parent.dict_orders[label]].setCheckState(bool)
|
||||
@ -200,22 +304,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]])))
|
||||
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]])))
|
||||
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
|
||||
page = parent.addPage(self.configpage, i18n(self.parent.name()))
|
||||
|
@ -37,42 +37,108 @@ class ConfigWindow(QWidget):
|
||||
'hddtemp':self.ui.checkBox_hddTemp, 'mem':self.ui.checkBox_mem,
|
||||
'net':self.ui.checkBox_net, 'swap':self.ui.checkBox_swap,
|
||||
'temp':self.ui.checkBox_temp, 'uptime':self.ui.checkBox_uptime,
|
||||
'player':self.ui.checkBox_player, 'time':self.ui.checkBox_time}
|
||||
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}
|
||||
'player':self.ui.checkBox_player, 'time':self.ui.checkBox_time,
|
||||
'custom':self.ui.checkBox_custom}
|
||||
self.lineedits = {'bat':self.ui.lineEdit_bat, 'cpu':self.ui.lineEdit_cpu,
|
||||
'cpuclock':self.ui.lineEdit_cpuclock, 'gpu':self.ui.lineEdit_gpu,
|
||||
'gputemp':self.ui.lineEdit_gpuTemp, 'hdd':self.ui.lineEdit_hdd,
|
||||
'hddtemp':self.ui.lineEdit_hddTemp, 'mem':self.ui.lineEdit_mem,
|
||||
'net':self.ui.lineEdit_net, 'swap':self.ui.lineEdit_swap,
|
||||
'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(item, SIGNAL("stateChanged(int)"), self.setStatus)
|
||||
QObject.connect(self.ui.checkBox_netdev, SIGNAL("stateChanged(int)"), self.setNetdevEnabled)
|
||||
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():
|
||||
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):
|
||||
"""function to enable label"""
|
||||
count = self.sliders['bat'].maximum()
|
||||
for label in self.checkboxes.keys():
|
||||
if ((self.checkboxes[label].checkState() > 0) and (self.sliders[label].isEnabled() == False)):
|
||||
self.lineedits[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
|
||||
for slider in self.sliders.values():
|
||||
if (slider.isEnabled() == True):
|
||||
@ -86,13 +152,6 @@ class ConfigWindow(QWidget):
|
||||
elif ((self.checkboxes[label].checkState() == 0) and (self.sliders[label].isEnabled() == True)):
|
||||
self.lineedits[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():
|
||||
if ((slider.value() == slider.maximum()) and (slider != self.sliders[label])):
|
||||
slider.setValue(self.sliders[label].value())
|
||||
@ -106,23 +165,3 @@ class ConfigWindow(QWidget):
|
||||
else:
|
||||
slider.setMaximum(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)
|
||||
|
@ -29,6 +29,7 @@ timeLetters = ['dddd', 'ddd', 'dd', 'd', \
|
||||
'hh', 'h', 'mm', 'm', 'ss', 's']
|
||||
|
||||
|
||||
|
||||
class DataEngine:
|
||||
def __init__(self, parent):
|
||||
"""class definition"""
|
||||
@ -48,36 +49,31 @@ class DataEngine:
|
||||
self.parent.systemmonitor.connectSource("system/uptime", self.parent, self.parent.interval)
|
||||
if (self.parent.cpuBool > 0):
|
||||
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 range(self.parent.numCores):
|
||||
for core in self.parent.cpuCore.keys():
|
||||
if (core > -1):
|
||||
self.parent.systemmonitor.connectSource("cpu/cpu"+str(core)+"/TotalLoad", self.parent, self.parent.interval)
|
||||
if (self.parent.cpuclockBool > 0):
|
||||
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 range(self.parent.numCores):
|
||||
for core in self.parent.cpuClockCore.keys():
|
||||
if (core > -1):
|
||||
self.parent.systemmonitor.connectSource("cpu/cpu"+str(core)+"/clock", self.parent, self.parent.interval)
|
||||
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):
|
||||
self.parent.extsysmon.connectSource("gpu", self.parent, self.parent.interval)
|
||||
if (self.parent.gputempBool > 0):
|
||||
self.parent.extsysmon.connectSource("gputemp", self.parent, self.parent.interval)
|
||||
if (self.parent.memBool > 0):
|
||||
if (self.parent.memInMb):
|
||||
self.parent.systemmonitor.connectSource("mem/physical/application", self.parent, self.parent.interval)
|
||||
else:
|
||||
self.parent.systemmonitor.connectSource("mem/physical/free", self.parent, int(self.parent.interval*0.5))
|
||||
self.parent.systemmonitor.connectSource("mem/physical/used", self.parent, int(self.parent.interval*0.5))
|
||||
self.parent.systemmonitor.connectSource("mem/physical/application", self.parent, int(self.parent.interval*0.5))
|
||||
self.parent.systemmonitor.connectSource("mem/physical/free", self.parent, int(self.parent.interval*0.5))
|
||||
self.parent.systemmonitor.connectSource("mem/physical/used", self.parent, int(self.parent.interval*0.5))
|
||||
self.parent.systemmonitor.connectSource("mem/physical/application", self.parent, int(self.parent.interval*0.5))
|
||||
if (self.parent.swapBool > 0):
|
||||
if (self.parent.swapInMb):
|
||||
self.parent.systemmonitor.connectSource("mem/swap/used", self.parent, self.parent.interval)
|
||||
else:
|
||||
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/free", 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):
|
||||
for mount in self.parent.mountPoints:
|
||||
self.parent.systemmonitor.connectSource("partitions" + mount + "/filllevel", self.parent, self.parent.interval)
|
||||
for item in self.parent.mountNames:
|
||||
self.parent.systemmonitor.connectSource("partitions" + item + "/filllevel", self.parent, self.parent.interval)
|
||||
if (self.parent.hddtempBool > 0):
|
||||
self.parent.extsysmon.connectSource("hddtemp", self.parent, self.parent.interval)
|
||||
if (self.parent.netBool > 0):
|
||||
@ -86,6 +82,8 @@ class DataEngine:
|
||||
self.parent.systemmonitor.connectSource("network/interfaces/"+self.parent.netdev+"/receiver/data", self.parent, self.parent.interval)
|
||||
if (self.parent.playerBool > 0):
|
||||
self.parent.extsysmon.connectSource("player", self.parent, self.parent.interval)
|
||||
if (self.parent.customBool > 0):
|
||||
self.parent.extsysmon.connectSource("custom", self.parent, self.parent.interval)
|
||||
|
||||
def dataUpdated(self, sourceName, data):
|
||||
"""function to update data"""
|
||||
@ -100,89 +98,48 @@ class DataEngine:
|
||||
uptimeText = "%3id%2ih%2im" % (days, hours, minutes)
|
||||
line = line.split('$uptime')[0] + uptimeText + line.split('$uptime')[1]
|
||||
elif (line.split('$custom')[0] != line):
|
||||
line = ''.join(line.split('$custom'))
|
||||
if (line.split('$ds')[0] != line):
|
||||
line = "%s%3i%s" % (line.split('$ds')[0], days, line.split('$ds')[1])
|
||||
if (line.split('$hs')[0] != line):
|
||||
line = "%s%2i%s" % (line.split('$hs')[0], hours, line.split('$hs')[1])
|
||||
if (line.split('$ms')[0] != line):
|
||||
line = "%s%2i%s" % (line.split('$ms')[0], minutes, line.split('$ms')[1])
|
||||
uptimeText = self.parent.custom_uptime
|
||||
if (uptimeText.split('$dd')[0] != uptimeText):
|
||||
uptimeText = "%s%03i%s" % (uptimeText.split('$dd')[0], days, uptimeText.split('$dd')[1])
|
||||
if (uptimeText.split('$d')[0] != uptimeText):
|
||||
uptimeText = "%s%3i%s" % (uptimeText.split('$d')[0], days, uptimeText.split('$d')[1])
|
||||
if (uptimeText.split('$hh')[0] != uptimeText):
|
||||
uptimeText = "%s%02i%s" % (uptimeText.split('$hh')[0], hours, uptimeText.split('$hh')[1])
|
||||
if (uptimeText.split('$h')[0] != uptimeText):
|
||||
uptimeText = "%s%2i%s" % (uptimeText.split('$h')[0], hours, uptimeText.split('$h')[1])
|
||||
if (uptimeText.split('$mm')[0] != uptimeText):
|
||||
uptimeText = "%s%02i%s" % (uptimeText.split('$mm')[0], minutes, uptimeText.split('$mm')[1])
|
||||
if (uptimeText.split('$m')[0] != uptimeText):
|
||||
uptimeText = "%s%2i%s" % (uptimeText.split('$m')[0], minutes, uptimeText.split('$m')[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]
|
||||
self.parent.label_uptime.setText(text)
|
||||
elif (sourceName == "cpu/system/TotalLoad"):
|
||||
value = str(round(float(data[QString(u'value')]), 1))
|
||||
cpuText = "%5s" % (value)
|
||||
if (self.parent.cpuFormat.split('$ccpu')[0] != self.parent.cpuFormat):
|
||||
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] + 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)
|
||||
self.parent.cpuCore[-1] = "%5s" % (value)
|
||||
if (self.parent.cpuBool == 2):
|
||||
self.parent.tooltipAgent.addValue('cpu', float(value), self.parent.tooltipNum)
|
||||
elif ((str(sourceName)[:7] == "cpu/cpu") and (str(sourceName).split('/')[2] == "TotalLoad")):
|
||||
value = str(round(float(data[QString(u'value')]), 1))
|
||||
cpuText = "%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)')
|
||||
self.parent.cpuCore[int(str(sourceName)[7])] = "%5s" % (value)
|
||||
elif (sourceName == "cpu/system/AverageClock"):
|
||||
value = str(data[QString(u'value')]).split('.')[0]
|
||||
cpuclockText = "%4s" % (value)
|
||||
if (self.parent.cpuclockFormat.split('$ccpucl')[0] != self.parent.cpuclockFormat):
|
||||
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] + 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)
|
||||
self.parent.cpuClockCore[-1] = "%4s" % (value)
|
||||
if (self.parent.cpuclockBool == 2):
|
||||
self.parent.tooltipAgent.addValue('cpuclock', float(value), self.parent.tooltipNum)
|
||||
elif ((str(sourceName)[:7] == "cpu/cpu") and (str(sourceName).split('/')[2] == "clock")):
|
||||
value = str(data[QString(u'value')]).split('.')[0]
|
||||
cpuclockText = "%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)')
|
||||
self.parent.cpuClockCore[int(str(sourceName)[7])] = "%4s" % (value)
|
||||
elif (sourceName == "network/interfaces/"+self.parent.netdev+"/transmitter/data"):
|
||||
value = str(data[QString(u'value')]).split('.')[0]
|
||||
up_speed = "%4s" % (value)
|
||||
if (self.parent.netFormat.split('$net')[0] != self.parent.netFormat):
|
||||
line = '/' + up_speed + self.parent.netFormat.split('$net')[1]
|
||||
else:
|
||||
line = ''
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_netUp.setText(text)
|
||||
self.parent.netSpeed["up"] = "%4s" % (value)
|
||||
if (self.parent.netBool == 2):
|
||||
self.parent.tooltipAgent.addValue('up', float(value), self.parent.tooltipNum)
|
||||
elif (sourceName == "network/interfaces/"+self.parent.netdev+"/receiver/data"):
|
||||
value = str(data[QString(u'value')]).split('.')[0]
|
||||
down_speed = "%4s" % (value)
|
||||
if (self.parent.netFormat.split('$net')[0] != self.parent.netFormat):
|
||||
line = self.parent.netFormat.split('$net')[0] + down_speed
|
||||
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)
|
||||
self.parent.netSpeed["down"] = "%4s" % (value)
|
||||
if (self.parent.netBool == 2):
|
||||
self.parent.tooltipAgent.addValue('down', float(value), self.parent.tooltipNum)
|
||||
# update network device
|
||||
self.parent.updateNetdev = self.parent.updateNetdev + 1
|
||||
if (self.parent.updateNetdev == 100):
|
||||
@ -197,25 +154,18 @@ class DataEngine:
|
||||
self.parent.netFormat = self.parent.netNonFormat.split('$netdev')[0] + self.parent.netdev + self.parent.netNonFormat.split('$netdev')[1]
|
||||
else:
|
||||
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))
|
||||
tempText = "%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)
|
||||
self.parent.temp[str(sourceName)] = "%4s" % (value)
|
||||
elif (str(sourceName).split('/')[0] == "partitions"):
|
||||
value = str(round(float(data[QString(u'value')]), 1))
|
||||
hddText = "%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)')
|
||||
self.parent.mount['/'+'/'.join(str(sourceName).split('/')[1:-1])] = "%5s" % (value)
|
||||
elif (sourceName == "mem/physical/free"):
|
||||
self.parent.mem_free = float(data[QString(u'value')])
|
||||
self.parent.memValues['free'] = float(data[QString(u'value')])
|
||||
elif (sourceName == "mem/physical/used"):
|
||||
self.parent.mem_uf = float(data[QString(u'value')])
|
||||
self.parent.memValues['total'] = self.parent.memValues['free'] + float(data[QString(u'value')])
|
||||
elif (sourceName == "mem/physical/application"):
|
||||
self.parent.memValues['used'] = float(data[QString(u'value')])
|
||||
if (self.parent.memInMb):
|
||||
mem = str(round(float(data[QString(u'value')]) / 1024, 0)).split('.')[0]
|
||||
mem = "%5s" % (mem)
|
||||
@ -225,11 +175,13 @@ class DataEngine:
|
||||
line = self.parent.memFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_mem.setText(text)
|
||||
else:
|
||||
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"):
|
||||
self.parent.swap_free = float(data[QString(u'value')])
|
||||
self.parent.swapValues['free'] = float(data[QString(u'value')])
|
||||
self.parent.swapValues['total'] = self.parent.swapValues['free'] + self.parent.swapValues['used']
|
||||
elif (sourceName == "mem/swap/used"):
|
||||
self.parent.swapValues['used'] = float(data[QString(u'value')])
|
||||
if (self.parent.swapInMb):
|
||||
mem = str(round(float(data[QString(u'value')]) / 1024, 0)).split('.')[0]
|
||||
mem = "%5s" % (mem)
|
||||
@ -239,8 +191,8 @@ class DataEngine:
|
||||
line = self.parent.swapFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_swap.setText(text)
|
||||
else:
|
||||
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"):
|
||||
value = str(data[QString(u'GPU')])
|
||||
gpuText = "%4s" % (value)
|
||||
@ -260,15 +212,13 @@ class DataEngine:
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_gputemp.setText(text)
|
||||
elif (sourceName == "hddtemp"):
|
||||
hddtempText = []
|
||||
for device in self.parent.hddtempFormat.split('@@')[1].split(';'):
|
||||
if (len(device) > 0):
|
||||
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
|
||||
for item in self.parent.hddNames:
|
||||
value = str(data[QString(item)])
|
||||
self.parent.hdd[item] = "%4s" % (value)
|
||||
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]
|
||||
self.parent.label_hddtemp.setText(text)
|
||||
elif (sourceName == "player"):
|
||||
@ -318,28 +268,27 @@ class DataEngine:
|
||||
elif (self.parent.timeFormat.split('$longtime')[0] != self.parent.timeFormat):
|
||||
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]
|
||||
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):
|
||||
rawDate = data[QString(u'DateTime')]
|
||||
line = ''.join(self.parent.timeFormat.split('$custom'))
|
||||
value = self.parent.custom_time
|
||||
for letters in timeLetters:
|
||||
if (line.split('$'+letters)[0] != line):
|
||||
line = line.split('$'+letters)[0] + \
|
||||
if (value.split('$'+letters)[0] != value):
|
||||
value = value.split('$'+letters)[0] + \
|
||||
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:
|
||||
line = self.parent.timeFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_time.setText(text)
|
||||
elif (sourceName == "custom"):
|
||||
value = str(data[QString(u'custom')].toUtf8()).decode("utf-8")
|
||||
if (self.parent.customFormat.split('$custom')[0] != self.parent.customFormat):
|
||||
line = self.parent.customFormat.split('$custom')[0] + value + self.parent.customFormat.split('$custom')[1]
|
||||
else:
|
||||
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.update()
|
||||
except:
|
||||
|
@ -30,6 +30,7 @@ import configdef
|
||||
import configwindow
|
||||
import dataengine
|
||||
import reinit
|
||||
import tooltip
|
||||
from util import *
|
||||
|
||||
|
||||
@ -43,16 +44,17 @@ class pyTextWidget(plasmascript.Applet):
|
||||
def init(self):
|
||||
"""function to initializate widget"""
|
||||
self._name = str(self.package().metadata().pluginName())
|
||||
self.initTooltip()
|
||||
self.layout = QGraphicsLinearLayout(Qt.Horizontal, self.applet)
|
||||
|
||||
self.dataengine = dataengine.DataEngine(self)
|
||||
self.reinit = reinit.Reinit(self)
|
||||
self.tooltipAgent = tooltip.Tooltip(self)
|
||||
|
||||
self.timer = QTimer()
|
||||
QObject.connect(self.timer, SIGNAL("timeout()"), self.updateLabel)
|
||||
|
||||
self.setupVar()
|
||||
self.initTooltip()
|
||||
self.reinit.reinit(confAccept=False)
|
||||
|
||||
self.setHasConfigurationInterface(True)
|
||||
@ -84,8 +86,25 @@ class pyTextWidget(plasmascript.Applet):
|
||||
self.tooltip.setMainText("PyTextMonitor")
|
||||
self.tooltip.setSubText('')
|
||||
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
|
||||
#Plasma.ToolTipManager.self().setContent(self.applet, self.tooltip)
|
||||
Plasma.ToolTipManager.self().setContent(self.applet, self.tooltip)
|
||||
|
||||
|
||||
def updateTooltip(self):
|
||||
"""function to update tooltip"""
|
||||
self.tooltipBound['mem'] = self.memValues['total']
|
||||
self.tooltipBound['swap'] = self.swapValues['total']
|
||||
self.tooltip_view.resize(100.0*(len(self.tooltipReq)-self.tooltipReq.count('up')), 100.0)
|
||||
self.tooltipAgent.createGraphic(self.tooltipReq, self.tooltipColors,
|
||||
self.tooltipBound, 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):
|
||||
@ -96,41 +115,57 @@ class pyTextWidget(plasmascript.Applet):
|
||||
def setupNetdev(self):
|
||||
"""function to setup network device"""
|
||||
netdev = "lo"
|
||||
try:
|
||||
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:
|
||||
if (commands.getoutput("ifconfig " + device + " | grep 'inet '") != ''):
|
||||
netdev = device
|
||||
break
|
||||
except:
|
||||
pass
|
||||
interfaces = QDir.entryList(QDir(self.netdir), QDir.Dirs | QDir.NoDotAndDotDot)
|
||||
for device in interfaces:
|
||||
if (str(device) != "lo"):
|
||||
try:
|
||||
with open(self.netdir+"/"+str(device)+"/operstate", "r") as stateFile:
|
||||
if (stateFile.readline() == "up\n"):
|
||||
netdev = str(device)
|
||||
except:
|
||||
pass
|
||||
return netdev
|
||||
|
||||
|
||||
def setupVar(self):
|
||||
"""function to setup variables"""
|
||||
self.cpuCore = {-1:" 0.0"}
|
||||
self.cpuClockCore = {-1:" 0"}
|
||||
numCores = int(commands.getoutput("grep -c '^processor' /proc/cpuinfo"))
|
||||
for i in range(numCores):
|
||||
self.cpuCore[i] = str(" 0.0")
|
||||
self.cpuClockCore[i] = str(" 0")
|
||||
self.hddNames = []
|
||||
self.hdd = {}
|
||||
self.mountNames = []
|
||||
self.mount = {}
|
||||
self.memValues = {'used':0.0, 'free':0.0, 'total':1.0}
|
||||
self.netdev = ''
|
||||
# setup number of cores
|
||||
commandOut = commands.getoutput("grep -c '^processor' /proc/cpuinfo")
|
||||
self.numCores = int(commandOut)
|
||||
self.tempdev = "tempdevice"
|
||||
self.netSpeed = {"up":" 0", "down":" 0"}
|
||||
self.swapValues = {'used':0.0, 'free':0.0, 'total':1.0}
|
||||
self.tempNames = []
|
||||
self.temp = {}
|
||||
self.tooltipBound = {'cpu':100.0, 'cpuclock':4000.0, 'mem':16000.0,
|
||||
'swap':16000, 'down':10000.0, 'up':10000.0}
|
||||
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], 'down':[0.0, 0.01], 'up':[0.0, 0.01]}
|
||||
|
||||
# create dictionaries
|
||||
self.dict_orders = {'6':'bat', '1':'cpu', '7':'cpuclock', '9':'gpu', 'a':'gputemp',
|
||||
'b':'hdd', 'c':'hddtemp', '3':'mem', '5':'net', '4':'swap', '2':'temp', '8':'uptime',
|
||||
'd':'player', 'e':'time'}
|
||||
self.dict_orders = {'6':'bat', '1':'cpu', '7':'cpuclock', 'f':'custom', '9':'gpu',
|
||||
'a':'gputemp', 'b':'hdd', 'c':'hddtemp', '3':'mem', '5':'net', '4':'swap', '2':'temp',
|
||||
'8':'uptime', 'd':'player', 'e':'time'}
|
||||
self.dict_defFormat = {'bat':'[bat: $bat%$ac]', 'cpu':'[cpu: $cpu%]',
|
||||
'cpuclock':'[mhz: $cpucl]', 'gpu':'[gpu: $gpu%]',
|
||||
'gputemp':'[gpu temp: $gputemp°C]', 'hdd':'[hdd: @@/@@%]',
|
||||
'hddtemp':'[hdd temp: @@/dev/sda@@°C]', 'mem':'[mem: $mem%]',
|
||||
'net':'[$netdev: $netKB/s]', 'swap':'[swap: $swap%]',
|
||||
'temp':'[temp: $temp°C]', 'uptime':'[uptime: $uptime]',
|
||||
'cpuclock':'[mhz: $cpucl]', 'custom':'[$custom]', 'gpu':'[gpu: $gpu%]',
|
||||
'gputemp':'[gpu temp: $gputemp°C]', 'hdd':'[hdd: $hdd0%]',
|
||||
'hddtemp':'[hdd temp: $hddtemp0°C]', 'mem':'[mem: $mem%]',
|
||||
'net':'[$netdev: $down/$upKB/s]', 'swap':'[swap: $swap%]',
|
||||
'temp':'[temp: $temp0°C]', 'uptime':'[uptime: $uptime]',
|
||||
'player':'[$artist - $title]', 'time':'[$time]'}
|
||||
|
||||
|
||||
|
||||
def showConfigurationInterface(self):
|
||||
"""function to show configuration window"""
|
||||
plasmascript.Applet.showConfigurationInterface(self)
|
||||
@ -143,19 +178,28 @@ class pyTextWidget(plasmascript.Applet):
|
||||
self.tooltip.setSubText('')
|
||||
except Exception as strerror:
|
||||
self.tooltip.setSubText(str(strerror))
|
||||
self.label_error = Plasma.Label(self.applet)
|
||||
self.label_error.setText('<font color="red">ERROR</font>')
|
||||
self.layout.addItem(self.label_error)
|
||||
return
|
||||
|
||||
|
||||
|
||||
def updateLabel(self):
|
||||
"""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):
|
||||
self.batText()
|
||||
if (self.cpuBool > 0):
|
||||
self.cpuText()
|
||||
if (self.cpuclockBool > 0):
|
||||
self.cpuclockText()
|
||||
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):
|
||||
@ -169,7 +213,6 @@ class pyTextWidget(plasmascript.Applet):
|
||||
bat = 'off'
|
||||
bat = "%3s" % (bat)
|
||||
line = line.split('$bat')[0] + bat + line.split('$bat')[1]
|
||||
|
||||
if (line.split('$ac')[0] != line):
|
||||
try:
|
||||
with open (self.ac_device, 'r') as bat_file:
|
||||
@ -185,11 +228,36 @@ class pyTextWidget(plasmascript.Applet):
|
||||
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):
|
||||
"""function to set mem text"""
|
||||
full = self.mem_uf + self.mem_free
|
||||
try:
|
||||
mem = 100 * self.mem_used / full
|
||||
mem = 100 * self.memValues['used'] / self.memValues['total']
|
||||
mem = "%5s" % (str(round(mem, 1)))
|
||||
except:
|
||||
mem = " N\\A"
|
||||
@ -201,11 +269,31 @@ class pyTextWidget(plasmascript.Applet):
|
||||
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):
|
||||
"""function to set swap text"""
|
||||
full = self.swap_used + self.swap_free
|
||||
try:
|
||||
mem = 100 * self.swap_used / full
|
||||
mem = 100 * self.swapValues['used'] / self.swapValues['total']
|
||||
mem = "%5s" % (str(round(mem, 1)))
|
||||
except:
|
||||
mem = " N\\A"
|
||||
@ -217,6 +305,16 @@ class pyTextWidget(plasmascript.Applet):
|
||||
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)
|
||||
|
||||
|
||||
@pyqtSignature("dataUpdated(const QString &, const Plasma::DataEngine::Data &)")
|
||||
def dataUpdated(self, sourceName, data):
|
||||
"""function to update label"""
|
||||
|
@ -236,7 +236,7 @@ class PTMNotify:
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if (sender == self.parent.parent.label_hdd0):
|
||||
if (sender == self.parent.parent.label_hdd):
|
||||
content = self.createText("disk")
|
||||
return content
|
||||
except:
|
||||
@ -248,7 +248,7 @@ class PTMNotify:
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if (sender == self.parent.parent.label_netDown):
|
||||
if (sender == self.parent.parent.label_net):
|
||||
content = self.createText("network")
|
||||
return content
|
||||
except:
|
||||
@ -265,3 +265,9 @@ class PTMNotify:
|
||||
return content
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if (sender == self.parent.parent.label_custom):
|
||||
content = self.createText("system")
|
||||
return content
|
||||
except:
|
||||
pass
|
||||
|
@ -59,180 +59,137 @@ 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 = 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.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.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'))
|
||||
for label in self.parent.dict_orders.values():
|
||||
if ((label == 'cpu') or (label == 'mem') or (label == 'swap') or (label == 'net')):
|
||||
exec ('self.parent.' + label + 'Bool = int(settings.get("' + label + 'Bool", 2))')
|
||||
exec ('self.parent.' + label + 'Bool = settings.get("' + label + 'Bool", 2).toInt()[0]')
|
||||
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
|
||||
for order in self.parent.label_order:
|
||||
if (order == "1"):
|
||||
if (self.parent.cpuBool > 0):
|
||||
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_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
|
||||
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)
|
||||
self.parent.label_cpu = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
line = self.parent.cpuFormat
|
||||
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)
|
||||
if (self.parent.cpuBool == 2):
|
||||
self.parent.tooltipReq.append('cpu')
|
||||
elif (order == "2"):
|
||||
if (self.parent.tempBool > 0):
|
||||
self.parent.tempdev = str(settings.get('temp_device', '<select device>'))
|
||||
self.parent.tempFormat = str(settings.get('tempFormat', '[temp: $temp°C]'))
|
||||
self.parent.tempFormat = str(settings.get('tempFormat', '[temp: $temp0°C]'))
|
||||
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]
|
||||
self.parent.label_temp.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_temp)
|
||||
elif (order == "3"):
|
||||
if (self.parent.memBool > 0):
|
||||
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):
|
||||
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):
|
||||
self.parent.memInMb = False
|
||||
self.parent.mem_used = 0.0
|
||||
self.parent.mem_free = 1.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]
|
||||
self.parent.label_mem = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
self.parent.label_mem.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_mem)
|
||||
if (self.parent.memBool == 2):
|
||||
self.parent.tooltipReq.append('mem')
|
||||
elif (order == "4"):
|
||||
if (self.parent.swapBool > 0):
|
||||
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):
|
||||
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):
|
||||
self.parent.swapInMb = False
|
||||
self.parent.swap_free = 1.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]
|
||||
self.parent.label_swap = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
self.parent.label_swap.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_swap)
|
||||
if (self.parent.swapBool == 2):
|
||||
self.parent.tooltipReq.append('swap')
|
||||
elif (order == "5"):
|
||||
if (self.parent.netBool > 0):
|
||||
self.parent.netNonFormat = str(settings.get('netNonFormat', '[net: $netKB/s]'))
|
||||
if (self.parent.netNonFormat.split('@@')[0] != self.parent.netNonFormat):
|
||||
self.parent.netdev = self.parent.netNonFormat.split('@@')[1]
|
||||
self.parent.netNonFormat = self.parent.netNonFormat.split('@@')[0] + self.parent.netNonFormat.split('@@')[2]
|
||||
self.parent.netNonFormat = str(settings.get('netNonFormat', '[net: $down/$upKB/s]'))
|
||||
self.parent.label_net = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
if (self.parent.netdevBool > 0):
|
||||
self.parent.netdev = self.parent.custom_netdev
|
||||
else:
|
||||
self.parent.netdev = self.parent.setupNetdev()
|
||||
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]
|
||||
else:
|
||||
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]
|
||||
self.parent.label_netDown.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_netDown)
|
||||
self.parent.label_netUp = Plasma.Label(self.parent.applet)
|
||||
if (self.parent.netFormat.split('$net')[0] != self.parent.netFormat):
|
||||
line = '/----' + self.parent.netFormat.split('$net')[1]
|
||||
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)
|
||||
self.parent.label_net.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_net)
|
||||
if (self.parent.netBool == 2):
|
||||
self.parent.tooltipReq.append('down')
|
||||
self.parent.tooltipReq.append('up')
|
||||
elif (order == "6"):
|
||||
if (self.parent.batBool > 0):
|
||||
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)
|
||||
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]
|
||||
self.parent.label_bat.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_bat)
|
||||
elif (order == "7"):
|
||||
if (self.parent.cpuclockBool > 0):
|
||||
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_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
|
||||
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)
|
||||
self.parent.label_cpuclock = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
line = self.parent.cpuclockFormat
|
||||
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)
|
||||
if (self.parent.cpuclockBool == 2):
|
||||
self.parent.tooltipReq.append('cpuclock')
|
||||
elif (order == "8"):
|
||||
if (self.parent.uptimeBool > 0):
|
||||
self.parent.uptimeFormat = str(settings.get('uptimeFormat', '[uptime: $uptime]'))
|
||||
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]
|
||||
self.parent.label_uptime.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_uptime)
|
||||
@ -240,10 +197,7 @@ class Reinit():
|
||||
if (self.parent.gpuBool > 0):
|
||||
self.parent.gpuFormat = str(settings.get('gpuFormat', '[gpu: $gpu%]'))
|
||||
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]
|
||||
self.parent.label_gpu.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_gpu)
|
||||
@ -251,65 +205,31 @@ class Reinit():
|
||||
if (self.parent.gputempBool > 0):
|
||||
self.parent.gputempFormat = str(settings.get('gputempFormat', '[gpu temp: $gputemp°C]'))
|
||||
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]
|
||||
self.parent.label_gputemp.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_gputemp)
|
||||
elif (order == "b"):
|
||||
if (self.parent.hddBool > 0):
|
||||
self.parent.hddFormat = str(settings.get('hddFormat', '[hdd: @@/@@%]'))
|
||||
if (self.parent.hddFormat.split('@@')[0] != self.parent.hddFormat):
|
||||
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
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_hdd0.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_hdd0)
|
||||
self.parent.hddFormat = str(settings.get('hddFormat', '[hdd: $hdd0%]'))
|
||||
self.parent.label_hdd = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
line = self.parent.hddFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_hdd.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_hdd)
|
||||
elif (order == "c"):
|
||||
if (self.parent.hddtempBool > 0):
|
||||
self.parent.hddtempFormat = str(settings.get('hddtempFormat', '[hdd temp: @@/dev/sda@@°C]'))
|
||||
self.parent.hddtempFormat = str(settings.get('hddtempFormat', '[hdd temp: $hddtemp0°C]'))
|
||||
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]
|
||||
self.parent.label_hddtemp.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_hddtemp)
|
||||
elif (order == "d"):
|
||||
if (self.parent.playerBool > 0):
|
||||
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)
|
||||
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]
|
||||
self.parent.label_player.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_player)
|
||||
@ -317,13 +237,18 @@ class Reinit():
|
||||
if (self.parent.timeBool > 0):
|
||||
self.parent.timeFormat = str(settings.get('timeFormat', '[$time]'))
|
||||
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]
|
||||
self.parent.label_time.setText(text)
|
||||
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:
|
||||
self.parent.layout.setContentsMargins(1, 1, 1, 1)
|
||||
self.parent.applet.setLayout(self.parent.layout)
|
||||
|
67
sources/ptm/contents/code/tooltip.py
Normal file
@ -0,0 +1,67 @@
|
||||
# -*- 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, bounds, values, widget):
|
||||
"""function to create graph"""
|
||||
widget.clear()
|
||||
maxOne = [100.0, 100.0]
|
||||
pen = QPen()
|
||||
bounds['down'] = 1.0
|
||||
for value in values['down']:
|
||||
if (bounds['down'] < value):
|
||||
bounds['down'] = value
|
||||
for value in values['up']:
|
||||
if (bounds['down'] < value):
|
||||
bounds['down'] = value
|
||||
bounds['up'] = bounds['down']
|
||||
down = False
|
||||
for type in types:
|
||||
norm = [maxOne[0] / len(values[type]), maxOne[1] / (1.5 * bounds[type])]
|
||||
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] * norm[1]
|
||||
x2 = (i + 1) * norm[0] + shift
|
||||
y2 = -values[type][i+1] * norm[1]
|
||||
widget.addLine(x1, y1, x2, y2, pen)
|
||||
if (type == 'down'):
|
||||
down = True
|
||||
|
@ -1,20 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# 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
|
||||
# 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
|
||||
# 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.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
############################################################################
|
||||
# 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 #
|
||||
# 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 #
|
||||
# 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., #
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #
|
||||
############################################################################
|
||||
|
||||
from shutil import copyfile
|
||||
from PyKDE4.kdecore import *
|
||||
|
@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \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"
|
||||
"PO-Revision-Date: 2014-03-31 01:01+0400\n"
|
||||
"POT-Creation-Date: 2014-04-03 02:22+0400\n"
|
||||
"PO-Revision-Date: 2014-04-03 02:23+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||
"Language: ru\n"
|
||||
@ -40,13 +40,13 @@ msgstr ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"pytextmonitor/\">project homepage</a>"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:66
|
||||
#. i18n: file: ui/configwindow.ui:69
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
|
||||
#: rc.cpp:12
|
||||
msgid "Time"
|
||||
msgstr "Time"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:85
|
||||
#. i18n: file: ui/configwindow.ui:83
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
|
||||
#: rc.cpp:15
|
||||
msgid ""
|
||||
@ -54,123 +54,117 @@ msgid ""
|
||||
"$isotime - time in ISO format\n"
|
||||
"$shorttime - time in short format\n"
|
||||
"$longtime - time in log format\n"
|
||||
"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o "
|
||||
"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"
|
||||
"$custom - custom time format"
|
||||
msgstr ""
|
||||
"$time - time in default format\n"
|
||||
"$isotime - time in ISO format\n"
|
||||
"$shorttime - time in short format\n"
|
||||
"$longtime - time in log format\n"
|
||||
"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o "
|
||||
"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"
|
||||
"$custom - custom time format"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:130
|
||||
#. i18n: file: ui/configwindow.ui:128
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
|
||||
#: rc.cpp:27
|
||||
#: rc.cpp:22
|
||||
msgid "Uptime"
|
||||
msgstr "Uptime"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:141
|
||||
#. i18n: file: ui/configwindow.ui:139
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
|
||||
#: rc.cpp:30
|
||||
#: rc.cpp:25
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
"$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)
|
||||
#: rc.cpp:34
|
||||
#: rc.cpp:29
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:200
|
||||
#. i18n: file: ui/configwindow.ui:203
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
|
||||
#: rc.cpp:38
|
||||
#: rc.cpp:33
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$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 ""
|
||||
"$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)
|
||||
#: rc.cpp:42
|
||||
#: rc.cpp:39
|
||||
msgid "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)
|
||||
#: rc.cpp:45
|
||||
#: rc.cpp:42
|
||||
msgid ""
|
||||
"$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 ""
|
||||
"$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)
|
||||
#: rc.cpp:49
|
||||
#: rc.cpp:48
|
||||
msgid "Temperature"
|
||||
msgstr "Temperature"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:330
|
||||
#. i18n: file: ui/configwindow.ui:325
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
|
||||
#: rc.cpp:52
|
||||
msgid "$temp - physical temperature on CPU"
|
||||
msgstr "$temp - physical temperature on CPU"
|
||||
#: rc.cpp:51
|
||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||
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)
|
||||
#: rc.cpp:55
|
||||
#: rc.cpp:54
|
||||
msgid "GPU"
|
||||
msgstr "GPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:388
|
||||
#. i18n: file: ui/configwindow.ui:383
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
|
||||
#: rc.cpp:59
|
||||
#: rc.cpp:58
|
||||
#, no-c-format
|
||||
msgid "$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)
|
||||
#: rc.cpp:62
|
||||
#: rc.cpp:61
|
||||
msgid "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)
|
||||
#: rc.cpp:65
|
||||
#: rc.cpp:64
|
||||
msgid "$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)
|
||||
#: rc.cpp:68
|
||||
#: rc.cpp:67
|
||||
msgid "Memory"
|
||||
msgstr "Memory"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:505
|
||||
#. i18n: file: ui/configwindow.ui:503
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
|
||||
#: rc.cpp:72
|
||||
#: rc.cpp:71
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$mem - RAM usage, %\n"
|
||||
@ -179,15 +173,15 @@ msgstr ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:553
|
||||
#. i18n: file: ui/configwindow.ui:551
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
|
||||
#: rc.cpp:76
|
||||
#: rc.cpp:75
|
||||
msgid "Swap"
|
||||
msgstr "Swap"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:564
|
||||
#. i18n: file: ui/configwindow.ui:565
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
|
||||
#: rc.cpp:80
|
||||
#: rc.cpp:79
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$swap - swap usage, %\n"
|
||||
@ -196,58 +190,62 @@ msgstr ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:612
|
||||
#. i18n: file: ui/configwindow.ui:613
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
|
||||
#: rc.cpp:84
|
||||
#. i18n: file: ui/configwindow.ui:2097
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_hdddev)
|
||||
#: rc.cpp:83 rc.cpp:289
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:622
|
||||
#. i18n: file: ui/configwindow.ui:623
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
|
||||
#: rc.cpp:88
|
||||
#: rc.cpp:87
|
||||
#, no-c-format
|
||||
msgid "@@/;@@ - mount point usage, %"
|
||||
msgstr "@@/;@@ - mount point usage, %"
|
||||
msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
||||
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)
|
||||
#: rc.cpp:91
|
||||
#: rc.cpp:90
|
||||
msgid "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)
|
||||
#: rc.cpp:94
|
||||
msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
|
||||
msgstr "@@/dev/sda@@ - physical temperature on /dev/sda"
|
||||
#: rc.cpp:93
|
||||
msgid ""
|
||||
"$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)
|
||||
#: rc.cpp:97
|
||||
#: rc.cpp:96
|
||||
msgid "Network"
|
||||
msgstr "Network"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:740
|
||||
#. i18n: file: ui/configwindow.ui:744
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
|
||||
#: rc.cpp:100
|
||||
#: rc.cpp:99
|
||||
msgid ""
|
||||
"$net - network speed, down/up, KB/s\n"
|
||||
"$netdev - current network device\n"
|
||||
"@@eth0@@ - disable auto select device and set specified device"
|
||||
"$down - download speed, KB/s\n"
|
||||
"$up - upload speed, KB/s\n"
|
||||
"$netdev - current network device"
|
||||
msgstr ""
|
||||
"$net - network speed, down/up, KB/s\n"
|
||||
"$netdev - current network device\n"
|
||||
"@@eth0@@ - disable auto select device and set specified device"
|
||||
"$down - download speed, KB/s\n"
|
||||
"$up - upload speed, KB/s\n"
|
||||
"$netdev - current network device"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:788
|
||||
#. i18n: file: ui/configwindow.ui:792
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
|
||||
#: rc.cpp:105
|
||||
#: rc.cpp:104
|
||||
msgid "Battery"
|
||||
msgstr "Battery"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:799
|
||||
#. i18n: file: ui/configwindow.ui:803
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
|
||||
#: rc.cpp:109
|
||||
#: rc.cpp:108
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
@ -256,57 +254,17 @@ msgstr ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:863
|
||||
#. 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: file: ui/configwindow.ui:851
|
||||
#. 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"
|
||||
msgstr "Music player"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:950
|
||||
#. 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: file: ui/configwindow.ui:865
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
|
||||
#: rc.cpp:137
|
||||
#: rc.cpp:115
|
||||
msgid ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
@ -320,55 +278,376 @@ msgstr ""
|
||||
"$time - song duration\n"
|
||||
"$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:1392
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tooltip)
|
||||
#: rc.cpp:226
|
||||
msgid "Tooltip"
|
||||
msgstr "Tooltip"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1398
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltip)
|
||||
#: rc.cpp:229
|
||||
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:1419
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltipNum)
|
||||
#: rc.cpp:232
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Number of values for tooltips"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1474
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_cpuColor)
|
||||
#: rc.cpp:235
|
||||
msgid "CPU color"
|
||||
msgstr "CPU color"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1514
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_cpuclockColor)
|
||||
#: rc.cpp:238
|
||||
msgid "CPU clock color"
|
||||
msgstr "CPU clock color"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1554
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_memColor)
|
||||
#: rc.cpp:241
|
||||
msgid "Memory color"
|
||||
msgstr "Memory color"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1594
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_swapColor)
|
||||
#: rc.cpp:244
|
||||
msgid "Swap color"
|
||||
msgstr "Swap color"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1634
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_downColor)
|
||||
#: rc.cpp:247
|
||||
msgid "Download speed color"
|
||||
msgstr "Download speed color"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1674
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_upColor)
|
||||
#: rc.cpp:250
|
||||
msgid "Upload speed color"
|
||||
msgstr "Upload speed color"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1720
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, appearance)
|
||||
#: rc.cpp:144
|
||||
#: rc.cpp:253
|
||||
msgid "Appearance"
|
||||
msgstr "Appearance"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1040
|
||||
#. i18n: file: ui/configwindow.ui:1734
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: rc.cpp:147
|
||||
#: rc.cpp:256
|
||||
msgid "Time interval"
|
||||
msgstr "Time interval"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1095
|
||||
#. i18n: file: ui/configwindow.ui:1789
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
||||
#: rc.cpp:150
|
||||
#: rc.cpp:259
|
||||
msgid "Font"
|
||||
msgstr "Font"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1135
|
||||
#. i18n: file: ui/configwindow.ui:1829
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
||||
#: rc.cpp:153
|
||||
#: rc.cpp:262
|
||||
msgid "Font size"
|
||||
msgstr "Font size"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1190
|
||||
#. i18n: file: ui/configwindow.ui:1884
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_color)
|
||||
#: rc.cpp:156
|
||||
#: rc.cpp:265
|
||||
msgid "Font color"
|
||||
msgstr "Font color"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1230
|
||||
#. i18n: file: ui/configwindow.ui:1924
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_style)
|
||||
#: rc.cpp:159
|
||||
#: rc.cpp:268
|
||||
msgid "Font style"
|
||||
msgstr "Font style"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1280
|
||||
#. i18n: file: ui/configwindow.ui:1974
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_weight)
|
||||
#: rc.cpp:162
|
||||
#: rc.cpp:271
|
||||
msgid "Font weight"
|
||||
msgstr "Font weight"
|
||||
|
||||
#: rc.cpp:163
|
||||
#. i18n: file: ui/configwindow.ui:2035
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, dataengine)
|
||||
#: rc.cpp:274
|
||||
msgid "DataEngine"
|
||||
msgstr "DataEngine"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2049
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_gpudev)
|
||||
#: rc.cpp:277
|
||||
msgid "GPU device"
|
||||
msgstr "GPU device"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2069
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_gpudev)
|
||||
#: rc.cpp:280
|
||||
msgid "auto"
|
||||
msgstr "auto"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2074
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_gpudev)
|
||||
#: rc.cpp:283
|
||||
msgid "nvidia"
|
||||
msgstr "nvidia"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2079
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_gpudev)
|
||||
#: rc.cpp:286
|
||||
msgid "ati"
|
||||
msgstr "ati"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2130
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mpdaddress)
|
||||
#: rc.cpp:292
|
||||
msgid "MPD address"
|
||||
msgstr "MPD address"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2154
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mpdport)
|
||||
#: rc.cpp:295
|
||||
msgid "MPD port"
|
||||
msgstr "MPD port"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_customCommand)
|
||||
#: rc.cpp:298
|
||||
msgid "Custom command"
|
||||
msgstr "Custom command"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2216
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_customCommand)
|
||||
#: rc.cpp:301
|
||||
msgid "Custom command to run"
|
||||
msgstr "Custom command to run"
|
||||
|
||||
#: rc.cpp:302
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: rc.cpp:164
|
||||
#: rc.cpp:303
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
||||
|
||||
#~ 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"
|
||||
|
||||
#~ 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"
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\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-03 02:22+0400\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -37,13 +37,13 @@ msgid ""
|
||||
"pytextmonitor/\">project homepage</a>"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:66
|
||||
#. i18n: file: ui/configwindow.ui:69
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
|
||||
#: rc.cpp:12
|
||||
msgid "Time"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:85
|
||||
#. i18n: file: ui/configwindow.ui:83
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
|
||||
#: rc.cpp:15
|
||||
msgid ""
|
||||
@ -51,232 +51,192 @@ msgid ""
|
||||
"$isotime - time in ISO format\n"
|
||||
"$shorttime - time in short format\n"
|
||||
"$longtime - time in log format\n"
|
||||
"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o "
|
||||
"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"
|
||||
"$custom - custom time format"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:130
|
||||
#. i18n: file: ui/configwindow.ui:128
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
|
||||
#: rc.cpp:27
|
||||
#: rc.cpp:22
|
||||
msgid "Uptime"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:141
|
||||
#. i18n: file: ui/configwindow.ui:139
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
|
||||
#: rc.cpp:30
|
||||
#: rc.cpp:25
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:189
|
||||
#. i18n: file: ui/configwindow.ui:187
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
|
||||
#: rc.cpp:34
|
||||
#: rc.cpp:29
|
||||
msgid "CPU"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:200
|
||||
#. i18n: file: ui/configwindow.ui:203
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
|
||||
#: rc.cpp:38
|
||||
#: rc.cpp:33
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$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 ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:248
|
||||
#. i18n: file: ui/configwindow.ui:251
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
|
||||
#: rc.cpp:42
|
||||
#: rc.cpp:39
|
||||
msgid "CPU Clock"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:259
|
||||
#. i18n: file: ui/configwindow.ui:267
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
|
||||
#: rc.cpp:45
|
||||
#: rc.cpp:42
|
||||
msgid ""
|
||||
"$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 ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:307
|
||||
#. i18n: file: ui/configwindow.ui:315
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
|
||||
#: rc.cpp:49
|
||||
#: rc.cpp:48
|
||||
msgid "Temperature"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:330
|
||||
#. i18n: file: ui/configwindow.ui:325
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
|
||||
#: rc.cpp:52
|
||||
msgid "$temp - physical temperature on CPU"
|
||||
#: rc.cpp:51
|
||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:378
|
||||
#. i18n: file: ui/configwindow.ui:373
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
|
||||
#: rc.cpp:55
|
||||
#: rc.cpp:54
|
||||
msgid "GPU"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:388
|
||||
#. i18n: file: ui/configwindow.ui:383
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
|
||||
#: rc.cpp:59
|
||||
#: rc.cpp:58
|
||||
#, no-c-format
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:436
|
||||
#. i18n: file: ui/configwindow.ui:431
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
|
||||
#: rc.cpp:62
|
||||
#: rc.cpp:61
|
||||
msgid "GPU Temp"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:446
|
||||
#. i18n: file: ui/configwindow.ui:441
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
|
||||
#: rc.cpp:65
|
||||
#: rc.cpp:64
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:494
|
||||
#. i18n: file: ui/configwindow.ui:489
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
|
||||
#: rc.cpp:68
|
||||
#: rc.cpp:67
|
||||
msgid "Memory"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:505
|
||||
#. i18n: file: ui/configwindow.ui:503
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
|
||||
#: rc.cpp:72
|
||||
#: rc.cpp:71
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:553
|
||||
#. i18n: file: ui/configwindow.ui:551
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
|
||||
#: rc.cpp:76
|
||||
#: rc.cpp:75
|
||||
msgid "Swap"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:564
|
||||
#. i18n: file: ui/configwindow.ui:565
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
|
||||
#: rc.cpp:80
|
||||
#: rc.cpp:79
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:612
|
||||
#. i18n: file: ui/configwindow.ui:613
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
|
||||
#: rc.cpp:84
|
||||
#. i18n: file: ui/configwindow.ui:2097
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_hdddev)
|
||||
#: rc.cpp:83 rc.cpp:289
|
||||
msgid "HDD"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:622
|
||||
#. i18n: file: ui/configwindow.ui:623
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
|
||||
#: rc.cpp:88
|
||||
#: rc.cpp:87
|
||||
#, no-c-format
|
||||
msgid "@@/;@@ - mount point usage, %"
|
||||
msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:670
|
||||
#. i18n: file: ui/configwindow.ui:671
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
|
||||
#: rc.cpp:91
|
||||
#: rc.cpp:90
|
||||
msgid "HDD Temp"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:680
|
||||
#. i18n: file: ui/configwindow.ui:681
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
|
||||
#: rc.cpp:94
|
||||
msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
|
||||
#: rc.cpp:93
|
||||
msgid ""
|
||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:728
|
||||
#. i18n: file: ui/configwindow.ui:729
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
|
||||
#: rc.cpp:97
|
||||
#: rc.cpp:96
|
||||
msgid "Network"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:740
|
||||
#. i18n: file: ui/configwindow.ui:744
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
|
||||
#: rc.cpp:100
|
||||
#: rc.cpp:99
|
||||
msgid ""
|
||||
"$net - network speed, down/up, KB/s\n"
|
||||
"$netdev - current network device\n"
|
||||
"@@eth0@@ - disable auto select device and set specified device"
|
||||
"$down - download speed, KB/s\n"
|
||||
"$up - upload speed, KB/s\n"
|
||||
"$netdev - current network device"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:788
|
||||
#. i18n: file: ui/configwindow.ui:792
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
|
||||
#: rc.cpp:105
|
||||
#: rc.cpp:104
|
||||
msgid "Battery"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:799
|
||||
#. i18n: file: ui/configwindow.ui:803
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
|
||||
#: rc.cpp:109
|
||||
#: rc.cpp:108
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:863
|
||||
#. 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: file: ui/configwindow.ui:851
|
||||
#. 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"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:950
|
||||
#. 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: file: ui/configwindow.ui:865
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
|
||||
#: rc.cpp:137
|
||||
#: rc.cpp:115
|
||||
msgid ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
@ -285,54 +245,331 @@ msgid ""
|
||||
"$title - song title"
|
||||
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:1392
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tooltip)
|
||||
#: rc.cpp:226
|
||||
msgid "Tooltip"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1398
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltip)
|
||||
#: rc.cpp:229
|
||||
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:1419
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltipNum)
|
||||
#: rc.cpp:232
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1474
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_cpuColor)
|
||||
#: rc.cpp:235
|
||||
msgid "CPU color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1514
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_cpuclockColor)
|
||||
#: rc.cpp:238
|
||||
msgid "CPU clock color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1554
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_memColor)
|
||||
#: rc.cpp:241
|
||||
msgid "Memory color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1594
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_swapColor)
|
||||
#: rc.cpp:244
|
||||
msgid "Swap color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1634
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_downColor)
|
||||
#: rc.cpp:247
|
||||
msgid "Download speed color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1674
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_upColor)
|
||||
#: rc.cpp:250
|
||||
msgid "Upload speed color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1720
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, appearance)
|
||||
#: rc.cpp:144
|
||||
#: rc.cpp:253
|
||||
msgid "Appearance"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1040
|
||||
#. i18n: file: ui/configwindow.ui:1734
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: rc.cpp:147
|
||||
#: rc.cpp:256
|
||||
msgid "Time interval"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1095
|
||||
#. i18n: file: ui/configwindow.ui:1789
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
||||
#: rc.cpp:150
|
||||
#: rc.cpp:259
|
||||
msgid "Font"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1135
|
||||
#. i18n: file: ui/configwindow.ui:1829
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
||||
#: rc.cpp:153
|
||||
#: rc.cpp:262
|
||||
msgid "Font size"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1190
|
||||
#. i18n: file: ui/configwindow.ui:1884
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_color)
|
||||
#: rc.cpp:156
|
||||
#: rc.cpp:265
|
||||
msgid "Font color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1230
|
||||
#. i18n: file: ui/configwindow.ui:1924
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_style)
|
||||
#: rc.cpp:159
|
||||
#: rc.cpp:268
|
||||
msgid "Font style"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1280
|
||||
#. i18n: file: ui/configwindow.ui:1974
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_weight)
|
||||
#: rc.cpp:162
|
||||
#: rc.cpp:271
|
||||
msgid "Font weight"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:163
|
||||
#. i18n: file: ui/configwindow.ui:2035
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, dataengine)
|
||||
#: rc.cpp:274
|
||||
msgid "DataEngine"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2049
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_gpudev)
|
||||
#: rc.cpp:277
|
||||
msgid "GPU device"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2069
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_gpudev)
|
||||
#: rc.cpp:280
|
||||
msgid "auto"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2074
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_gpudev)
|
||||
#: rc.cpp:283
|
||||
msgid "nvidia"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2079
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_gpudev)
|
||||
#: rc.cpp:286
|
||||
msgid "ati"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2130
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mpdaddress)
|
||||
#: rc.cpp:292
|
||||
msgid "MPD address"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2154
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mpdport)
|
||||
#: rc.cpp:295
|
||||
msgid "MPD port"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_customCommand)
|
||||
#: rc.cpp:298
|
||||
msgid "Custom command"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2216
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_customCommand)
|
||||
#: rc.cpp:301
|
||||
msgid "Custom command to run"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:302
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:164
|
||||
#: rc.cpp:303
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr ""
|
||||
|
@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \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"
|
||||
"PO-Revision-Date: 2014-03-31 01:22+0400\n"
|
||||
"POT-Creation-Date: 2014-04-03 02:22+0400\n"
|
||||
"PO-Revision-Date: 2014-04-03 02:24+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||
"Language: ru\n"
|
||||
@ -37,17 +37,16 @@ msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"pytextmonitor/\">project homepage</a>"
|
||||
msgstr ""
|
||||
"Подробная информация может быть найдена на <a "
|
||||
"href=\"http://arcanis.name/ru/projects/"
|
||||
"pytextmonitor/\">домашней странице проекта</a>"
|
||||
"Подробная информация может быть найдена на <a href=\"http://arcanis.name/ru/"
|
||||
"projects/pytextmonitor/\">домашней странице проекта</a>"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:66
|
||||
#. i18n: file: ui/configwindow.ui:69
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
|
||||
#: rc.cpp:12
|
||||
msgid "Time"
|
||||
msgstr "Время"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:85
|
||||
#. i18n: file: ui/configwindow.ui:83
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
|
||||
#: rc.cpp:15
|
||||
msgid ""
|
||||
@ -55,123 +54,117 @@ msgid ""
|
||||
"$isotime - time in ISO format\n"
|
||||
"$shorttime - time in short format\n"
|
||||
"$longtime - time in log format\n"
|
||||
"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o "
|
||||
"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"
|
||||
"$custom - custom time format"
|
||||
msgstr ""
|
||||
"$time - время в стандартном формате\n"
|
||||
"$isotime - время ISO формате\n"
|
||||
"$isotime - время в ISO формате\n"
|
||||
"$shorttime - время в коротком формате\n"
|
||||
"$longtime - время в длинном формате\n"
|
||||
"$custom: $dddd - день недели (длинный); $ddd - день недели (короткий); $dd - "
|
||||
"день; $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"
|
||||
"$custom - свой формат времени"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:130
|
||||
#. i18n: file: ui/configwindow.ui:128
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
|
||||
#: rc.cpp:27
|
||||
#: rc.cpp:22
|
||||
msgid "Uptime"
|
||||
msgstr "Время работы"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:141
|
||||
#. i18n: file: ui/configwindow.ui:139
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
|
||||
#: rc.cpp:30
|
||||
#: rc.cpp:25
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
"$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)
|
||||
#: rc.cpp:34
|
||||
#: rc.cpp:29
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:200
|
||||
#. i18n: file: ui/configwindow.ui:203
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
|
||||
#: rc.cpp:38
|
||||
#: rc.cpp:33
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$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 ""
|
||||
"$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)
|
||||
#: rc.cpp:42
|
||||
#: rc.cpp:39
|
||||
msgid "CPU Clock"
|
||||
msgstr "Частота CPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:259
|
||||
#. i18n: file: ui/configwindow.ui:267
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
|
||||
#: rc.cpp:45
|
||||
#: rc.cpp:42
|
||||
msgid ""
|
||||
"$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 ""
|
||||
"$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)
|
||||
#: rc.cpp:49
|
||||
#: rc.cpp:48
|
||||
msgid "Temperature"
|
||||
msgstr "Температура"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:330
|
||||
#. i18n: file: ui/configwindow.ui:325
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
|
||||
#: rc.cpp:52
|
||||
msgid "$temp - physical temperature on CPU"
|
||||
msgstr "$temp - физическая температура на CPU"
|
||||
#: rc.cpp:51
|
||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||
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)
|
||||
#: rc.cpp:55
|
||||
#: rc.cpp:54
|
||||
msgid "GPU"
|
||||
msgstr "GPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:388
|
||||
#. i18n: file: ui/configwindow.ui:383
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
|
||||
#: rc.cpp:59
|
||||
#: rc.cpp:58
|
||||
#, no-c-format
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr "$gpu - использование GPU, %"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:436
|
||||
#. i18n: file: ui/configwindow.ui:431
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
|
||||
#: rc.cpp:62
|
||||
#: rc.cpp:61
|
||||
msgid "GPU Temp"
|
||||
msgstr "Температура GPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:446
|
||||
#. i18n: file: ui/configwindow.ui:441
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
|
||||
#: rc.cpp:65
|
||||
#: rc.cpp:64
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr "$gputemp - физическая температура на GPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:494
|
||||
#. i18n: file: ui/configwindow.ui:489
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
|
||||
#: rc.cpp:68
|
||||
#: rc.cpp:67
|
||||
msgid "Memory"
|
||||
msgstr "Память"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:505
|
||||
#. i18n: file: ui/configwindow.ui:503
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
|
||||
#: rc.cpp:72
|
||||
#: rc.cpp:71
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$mem - RAM usage, %\n"
|
||||
@ -180,15 +173,15 @@ msgstr ""
|
||||
"$mem - использование RAM, %\n"
|
||||
"$memmb - использование RAM, MB"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:553
|
||||
#. i18n: file: ui/configwindow.ui:551
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
|
||||
#: rc.cpp:76
|
||||
#: rc.cpp:75
|
||||
msgid "Swap"
|
||||
msgstr "Swap"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:564
|
||||
#. i18n: file: ui/configwindow.ui:565
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
|
||||
#: rc.cpp:80
|
||||
#: rc.cpp:79
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$swap - swap usage, %\n"
|
||||
@ -197,58 +190,63 @@ msgstr ""
|
||||
"$swap - использование swap, %\n"
|
||||
"$swapmb - использование swap, MB"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:612
|
||||
#. i18n: file: ui/configwindow.ui:613
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
|
||||
#: rc.cpp:84
|
||||
#. i18n: file: ui/configwindow.ui:2097
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_hdddev)
|
||||
#: rc.cpp:83 rc.cpp:289
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:622
|
||||
#. i18n: file: ui/configwindow.ui:623
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
|
||||
#: rc.cpp:88
|
||||
#: rc.cpp:87
|
||||
#, no-c-format
|
||||
msgid "@@/;@@ - mount point usage, %"
|
||||
msgstr "@@/;@@ - использование точки монтирования, %"
|
||||
msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
||||
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)
|
||||
#: rc.cpp:91
|
||||
#: rc.cpp:90
|
||||
msgid "HDD Temp"
|
||||
msgstr "Температура HDD"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:680
|
||||
#. i18n: file: ui/configwindow.ui:681
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
|
||||
#: rc.cpp:94
|
||||
msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
|
||||
msgstr "@@/dev/sda@@ - физическая температура /dev/sda"
|
||||
#: rc.cpp:93
|
||||
msgid ""
|
||||
"$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)
|
||||
#: rc.cpp:97
|
||||
#: rc.cpp:96
|
||||
msgid "Network"
|
||||
msgstr "Сеть"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:740
|
||||
#. i18n: file: ui/configwindow.ui:744
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
|
||||
#: rc.cpp:100
|
||||
#: rc.cpp:99
|
||||
msgid ""
|
||||
"$net - network speed, down/up, KB/s\n"
|
||||
"$netdev - current network device\n"
|
||||
"@@eth0@@ - disable auto select device and set specified device"
|
||||
"$down - download speed, KB/s\n"
|
||||
"$up - upload speed, KB/s\n"
|
||||
"$netdev - current network device"
|
||||
msgstr ""
|
||||
"$net - скорость передачи данных, down/up, KB/s\n"
|
||||
"$netdev - используемое устройство\n"
|
||||
"@@eth0@@ - отключить автовыбор устройства и установить указанное"
|
||||
"$down - скорость скачки, KB/s\n"
|
||||
"$up - скорость загрузки, KB/s\n"
|
||||
"$netdev - текущее устройство"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:788
|
||||
#. i18n: file: ui/configwindow.ui:792
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
|
||||
#: rc.cpp:105
|
||||
#: rc.cpp:104
|
||||
msgid "Battery"
|
||||
msgstr "Батарея"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:799
|
||||
#. i18n: file: ui/configwindow.ui:803
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
|
||||
#: rc.cpp:109
|
||||
#: rc.cpp:108
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
@ -257,57 +255,17 @@ msgstr ""
|
||||
"$bat - заряд батареи, %\n"
|
||||
"$ac - статус адаптора питания"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:863
|
||||
#. 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: file: ui/configwindow.ui:851
|
||||
#. 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"
|
||||
msgstr "Музыкальный плеер"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:950
|
||||
#. 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: file: ui/configwindow.ui:865
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
|
||||
#: rc.cpp:137
|
||||
#: rc.cpp:115
|
||||
msgid ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
@ -321,56 +279,376 @@ msgstr ""
|
||||
"$time - продолжительность\n"
|
||||
"$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:1392
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tooltip)
|
||||
#: rc.cpp:226
|
||||
msgid "Tooltip"
|
||||
msgstr "Тултип"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1398
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltip)
|
||||
#: rc.cpp:229
|
||||
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:1419
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltipNum)
|
||||
#: rc.cpp:232
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Число хранящихся значений"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1474
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_cpuColor)
|
||||
#: rc.cpp:235
|
||||
msgid "CPU color"
|
||||
msgstr "Цвет CPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1514
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_cpuclockColor)
|
||||
#: rc.cpp:238
|
||||
msgid "CPU clock color"
|
||||
msgstr "Цвет частоты CPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1554
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_memColor)
|
||||
#: rc.cpp:241
|
||||
msgid "Memory color"
|
||||
msgstr "Цвет памяти"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1594
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_swapColor)
|
||||
#: rc.cpp:244
|
||||
msgid "Swap color"
|
||||
msgstr "Цвет swap"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1634
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_downColor)
|
||||
#: rc.cpp:247
|
||||
msgid "Download speed color"
|
||||
msgstr "Цвет скорости загрузки"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1674
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_upColor)
|
||||
#: rc.cpp:250
|
||||
msgid "Upload speed color"
|
||||
msgstr "Цвет скорости отдачи"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1720
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, appearance)
|
||||
#: rc.cpp:144
|
||||
#: rc.cpp:253
|
||||
msgid "Appearance"
|
||||
msgstr "Внешний вид"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1040
|
||||
#. i18n: file: ui/configwindow.ui:1734
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: rc.cpp:147
|
||||
#: rc.cpp:256
|
||||
msgid "Time interval"
|
||||
msgstr "Интервал обновления"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1095
|
||||
#. i18n: file: ui/configwindow.ui:1789
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
||||
#: rc.cpp:150
|
||||
#: rc.cpp:259
|
||||
msgid "Font"
|
||||
msgstr "Шрифт"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1135
|
||||
#. i18n: file: ui/configwindow.ui:1829
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
||||
#: rc.cpp:153
|
||||
#: rc.cpp:262
|
||||
msgid "Font size"
|
||||
msgstr "Размер шрифта"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1190
|
||||
#. i18n: file: ui/configwindow.ui:1884
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_color)
|
||||
#: rc.cpp:156
|
||||
#: rc.cpp:265
|
||||
msgid "Font color"
|
||||
msgstr "Цвет шрифта"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1230
|
||||
#. i18n: file: ui/configwindow.ui:1924
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_style)
|
||||
#: rc.cpp:159
|
||||
#: rc.cpp:268
|
||||
msgid "Font style"
|
||||
msgstr "Стиль шрифта"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1280
|
||||
#. i18n: file: ui/configwindow.ui:1974
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_weight)
|
||||
#: rc.cpp:162
|
||||
#: rc.cpp:271
|
||||
msgid "Font weight"
|
||||
msgstr "Ширина шрифта"
|
||||
|
||||
#: rc.cpp:163
|
||||
#. i18n: file: ui/configwindow.ui:2035
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, dataengine)
|
||||
#: rc.cpp:274
|
||||
msgid "DataEngine"
|
||||
msgstr "DataEngine"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2049
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_gpudev)
|
||||
#: rc.cpp:277
|
||||
msgid "GPU device"
|
||||
msgstr "Устройство GPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2069
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_gpudev)
|
||||
#: rc.cpp:280
|
||||
msgid "auto"
|
||||
msgstr "auto"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2074
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_gpudev)
|
||||
#: rc.cpp:283
|
||||
msgid "nvidia"
|
||||
msgstr "nvidia"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2079
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_gpudev)
|
||||
#: rc.cpp:286
|
||||
msgid "ati"
|
||||
msgstr "ati"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2130
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mpdaddress)
|
||||
#: rc.cpp:292
|
||||
msgid "MPD address"
|
||||
msgstr "Адрес сервера MPD"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2154
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mpdport)
|
||||
#: rc.cpp:295
|
||||
msgid "MPD port"
|
||||
msgstr "Порт сервера MPD"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_customCommand)
|
||||
#: rc.cpp:298
|
||||
msgid "Custom command"
|
||||
msgstr "Своя команда"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2216
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_customCommand)
|
||||
#: rc.cpp:301
|
||||
msgid "Custom command to run"
|
||||
msgstr "Своя команда для запуска"
|
||||
|
||||
#: rc.cpp:302
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: rc.cpp:164
|
||||
#: rc.cpp:303
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Command to run, example:\n"
|
||||
#~ "wget -qO- http://ifconfig.me/ip - get external IP"
|
||||
#~ msgstr ""
|
||||
#~ "Команда для запуска, например:\n"
|
||||
#~ "wget -qO- http://ifconfig.me/ip - получить внешний IP"
|
||||
|
||||
#~ 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@@ - отключить автовыбор устройства и установить указанное"
|
||||
|