mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-01 16:05:56 +00:00
Compare commits
70 Commits
Author | SHA1 | Date | |
---|---|---|---|
5c861b3814 | |||
5cf068875c | |||
80366e59bb | |||
a6a94f0e49 | |||
6a74802261 | |||
c44e98d8a1 | |||
b872a66088 | |||
74d54d6268 | |||
2ad6d76d4e | |||
878dac158e | |||
2de09cec32 | |||
90ca8c89f5 | |||
757d7b703f | |||
5d3e377ffb | |||
9b5a6908d7 | |||
f54ba7a6cf | |||
7427183981 | |||
109328e33b | |||
ec62e93e4e | |||
1a6d97800c | |||
b09e90a0e5 | |||
c1f18a31bf | |||
962478a27a | |||
4857c6658f | |||
4416298e88 | |||
a3576275cc | |||
9c8be61855 | |||
3fece265f4 | |||
cc26873200 | |||
2ee6949a59 | |||
1a99c0cb3d | |||
a0e8f373c0 | |||
f53179330b | |||
d1a0597b5f | |||
1c58b23fa2 | |||
4c442a7e73 | |||
3bfeabe537 | |||
cd99f059ff | |||
45de9145fb | |||
21418cdd18 | |||
cc1d062fd9 | |||
c9fd746cd0 | |||
1555b22a3b | |||
1c772f288a | |||
16f4f4a8ff | |||
c09da99e06 | |||
14fab265cd | |||
9ba7a2b0d5 | |||
2c4515eb66 | |||
2e7fa3689b | |||
831b98f836 | |||
2295e80b67 | |||
f21fea1393 | |||
2675beb106 | |||
329457955d | |||
614e15d336 | |||
2e93325601 | |||
6f6af548ef | |||
5dc3d4e212 | |||
d8ae9a4c2a | |||
ce74cdb2d5 | |||
0fdb7317cc | |||
c1d55962a7 | |||
7353fdfe0f | |||
032953eac2 | |||
4766ef5675 | |||
1b6c8faf49 | |||
fc104b4549 | |||
975b575db5 | |||
4547815549 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
sources/build
|
sources/build
|
||||||
sources/usr
|
sources/usr
|
||||||
*-src.tar.xz
|
*src.tar.xz
|
||||||
|
*src.tar.gz
|
||||||
|
5
AUTHORS
5
AUTHORS
@ -1,3 +1,6 @@
|
|||||||
Current developers:
|
Current developers:
|
||||||
|
|
||||||
Evgeniy Alekseev aka arcanis <esalexeev (at) gmail (dot) com>
|
Evgeniy Alekseev aka arcanis <esalexeev (at) gmail (dot) com>
|
||||||
|
|
||||||
|
Translators:
|
||||||
|
@Mermouy (French translations)
|
||||||
|
Ernesto Avilés Vzqz (Spanish translations)
|
||||||
|
45
CHANGELOG
45
CHANGELOG
@ -1,3 +1,44 @@
|
|||||||
|
Ver.1.9.0:
|
||||||
|
+ added support of several custom commands ($customN)
|
||||||
|
+ added hdd speed label ($hddrN, $hddwN)
|
||||||
|
+ added actions to context menu (open readme and run ksysguard)
|
||||||
|
* fix parsing pkg label
|
||||||
|
- removed doubleclick event
|
||||||
|
|
||||||
|
Ver.1.8.3:
|
||||||
|
+ added Spanish translation (thanks to Ernesto Avilés Vzqz)
|
||||||
|
+ added readme to the package
|
||||||
|
|
||||||
|
Ver.1.8.2:
|
||||||
|
+ added different temperature units (Farenheit and Kelvin)
|
||||||
|
|
||||||
|
Ver.1.8.1:
|
||||||
|
* change pkg update time to hour
|
||||||
|
|
||||||
|
Ver.1.8.0:
|
||||||
|
+ added scrollbar to configuration interface
|
||||||
|
+ added AC lines configuration
|
||||||
|
+ added $hddmbN, %hddgbN tags
|
||||||
|
+ added support of ps ($ps, $pscount, $pstotal tags)
|
||||||
|
+ added support of package managers ($pkgcountN tags)
|
||||||
|
* refactoring of DataEngine
|
||||||
|
|
||||||
|
Ver.1.7.4:
|
||||||
|
+ added support more than 10 tags in cpu, cpuclock, hdd, hddtemp, temp labels
|
||||||
|
- format bug fixes
|
||||||
|
* changes in custom uptime format
|
||||||
|
|
||||||
|
Ver.1.7.3:
|
||||||
|
+ added tags $memgb, $swapgb
|
||||||
|
+ added readme directory
|
||||||
|
+ added french translation (@Mermouy)
|
||||||
|
- fix tooltip for custom uptime format
|
||||||
|
- fix #12
|
||||||
|
* more refactoring to the god of refactoring
|
||||||
|
* network device update interval now is 30*interval
|
||||||
|
* $swap, $swapmb and $swapgb tags now work simultaneously ($mem* tags too)
|
||||||
|
* player_name now has str type
|
||||||
|
|
||||||
Ver.1.7.2:
|
Ver.1.7.2:
|
||||||
+ added tags $dd, $d, $hh, $h, $mm, $m to custom uptime format
|
+ added tags $dd, $d, $hh, $h, $mm, $m to custom uptime format
|
||||||
+ added scalling to tooltips
|
+ added scalling to tooltips
|
||||||
@ -67,7 +108,7 @@ Ver.1.3.2b:
|
|||||||
Ver.1.3.2:
|
Ver.1.3.2:
|
||||||
+ added GPU, GPU temperature, HDD and HDD temperature labels
|
+ added GPU, GPU temperature, HDD and HDD temperature labels
|
||||||
+ added $ccpu and $ccpucl tags
|
+ added $ccpu and $ccpucl tags
|
||||||
* bug fixes
|
- bug fixes
|
||||||
* optimization and refactoring
|
* optimization and refactoring
|
||||||
|
|
||||||
Ver.1.2.2:
|
Ver.1.2.2:
|
||||||
@ -98,9 +139,9 @@ Ver.1.1.2:
|
|||||||
|
|
||||||
Ver.1.1.1:
|
Ver.1.1.1:
|
||||||
+ added $swapmb, $memmb, $netdev, @@netdev=...@@ tags
|
+ added $swapmb, $memmb, $netdev, @@netdev=...@@ tags
|
||||||
|
- some bug fixes
|
||||||
* widget consists of several labels
|
* widget consists of several labels
|
||||||
* edited configuration interface
|
* edited configuration interface
|
||||||
- some bug fixes
|
|
||||||
|
|
||||||
Ver.1.0:
|
Ver.1.0:
|
||||||
First release
|
First release
|
||||||
|
147
CHANGELOG-RU
Normal file
147
CHANGELOG-RU
Normal file
@ -0,0 +1,147 @@
|
|||||||
|
Вер.1.9.0:
|
||||||
|
+ добавлена поддержка нескольких кастомных команд ($customN)
|
||||||
|
+ добавлено поле скорости hdd ($hddrN, $hddwN)
|
||||||
|
+ добавлены действия в контекстное меню (открыть readme и запустить ksysguard)
|
||||||
|
* исправлен парсинг поля pkg
|
||||||
|
- убрано событие по двойному клику
|
||||||
|
|
||||||
|
Вер.1.8.3:
|
||||||
|
+ добавлен испанский перевод (Ernesto Avilés Vzqz)
|
||||||
|
+ добавлены файлы readme
|
||||||
|
|
||||||
|
Вер.1.8.2:
|
||||||
|
+ добавлены различные температурные единицы (Farenheit и Kelvin)
|
||||||
|
|
||||||
|
Вер.1.8.1:
|
||||||
|
* поле pkg теперь обновляется раз в час
|
||||||
|
|
||||||
|
Вер.1.8.0:
|
||||||
|
+ добавлены скроллбары в конфигурационный интерфейс
|
||||||
|
+ добавлена настройка значений AC
|
||||||
|
+ добавлены теги $hddmbN, $hddgbN
|
||||||
|
+ добавлена поддержка ps (теги $ps, $pscount, $pstotal)
|
||||||
|
+ добавлена поддержка пакетных менеджеров (теги $pkgcountN)
|
||||||
|
* рефакторинг DataEngine
|
||||||
|
|
||||||
|
Вер.1.7.4:
|
||||||
|
+ добавлена поддержка более чем 10 тэгов в полях cpu, cpuclock, hdd, hddtemp, temp
|
||||||
|
- фиксы в форматах
|
||||||
|
* изменения в кастомном формате аптайма
|
||||||
|
|
||||||
|
Вер.1.7.3:
|
||||||
|
+ добавлены тэги $memgb, $swapgb
|
||||||
|
+ добавлена директория readme
|
||||||
|
+ добавлен французский перевод (@Mermouy)
|
||||||
|
- фикс подсказки для кастомного формата аптайма
|
||||||
|
- фикс #12
|
||||||
|
* больше рефакторинга богу рефакторинга
|
||||||
|
* интервал обновления сетевого интерфейса теперь 30*interval
|
||||||
|
* тэги $swap, $swapmb и $swapgb теперь работают одновременно (тэги $mem* тоже)
|
||||||
|
* player_name теперь имеет тип str
|
||||||
|
|
||||||
|
Вер.1.7.2:
|
||||||
|
+ добавлены тэги $dd, $d, $hh, $h, $mm, $m в кастомный формат аптайма
|
||||||
|
+ добавлено масштабирование в тултипы
|
||||||
|
+ добавлена конфигурация DE из виджета
|
||||||
|
+ добавлена кастомная команда в DE
|
||||||
|
- удалена кастомная команда из виджета
|
||||||
|
- удалены тэги $ds, $hs, $ms
|
||||||
|
|
||||||
|
Вер.1.7.1:
|
||||||
|
- удалено поле с ошибкой
|
||||||
|
* пофикшен баг с нулевым значением в тултипе
|
||||||
|
|
||||||
|
Вер.1.7.0:
|
||||||
|
+ добавлена поддержка нескольких тэгов в поле температуры
|
||||||
|
+ добавлены тэги $cpuN, $cpuclN, $hddN, $tempN, $hddtempN, $up, $down
|
||||||
|
+ добавлено поле с кастомной командой
|
||||||
|
+ добавлены тултипы для полей CPU, частоты CPU, памяти, swap и сеть
|
||||||
|
- удалены тэги @@...@@, $temp, $ccpu, $ccpucl, $net
|
||||||
|
* изменения в настройках
|
||||||
|
* виджет не требует больше net-tools
|
||||||
|
* рефакторинг
|
||||||
|
|
||||||
|
Вер.1.6.1:
|
||||||
|
+ добавлена поддержка нескольких девайсов в поле hddtemp
|
||||||
|
- фикс #6
|
||||||
|
|
||||||
|
Вер.1.6.0:
|
||||||
|
+ добавлен тэг $custom в поля time и uptime (#8)
|
||||||
|
+ русский перевод
|
||||||
|
- фикс #6, #10
|
||||||
|
* лицензия изменена на GPLv3
|
||||||
|
* изменения в сборке проекта
|
||||||
|
|
||||||
|
Вер.1.5.3:
|
||||||
|
+ добавлены тэги $album, $progress и $time tags в поле плеера (#7)
|
||||||
|
- фикс бага с нулевым свопом
|
||||||
|
|
||||||
|
Вер.1.5.2:
|
||||||
|
+ добавлены тэги $isotime, $shorttime и $longtime в поле time
|
||||||
|
|
||||||
|
Вер.1.5.1:
|
||||||
|
+ добавлено поле time
|
||||||
|
|
||||||
|
Вер.1.5.0:
|
||||||
|
+ добавлено поле player
|
||||||
|
|
||||||
|
Вер.1.4.0:
|
||||||
|
+ добавлены уведомления
|
||||||
|
|
||||||
|
Вер.1.3.6:
|
||||||
|
- фикс #1, #2
|
||||||
|
|
||||||
|
Вер.1.3.5:
|
||||||
|
- фикс бага с определением сетевого устройства
|
||||||
|
|
||||||
|
Вер.1.3.4:
|
||||||
|
+ добавлено событие по двойному щелчку
|
||||||
|
+ добавлен автовыбор сетевого устройства
|
||||||
|
- фикс еще одного падения Плазмы
|
||||||
|
|
||||||
|
Вер.1.3.3:
|
||||||
|
* редактирование чтения температурного устройства
|
||||||
|
|
||||||
|
Вер.1.3.2b:
|
||||||
|
- фикс падения Плазмы
|
||||||
|
|
||||||
|
Вер.1.3.2:
|
||||||
|
+ добавлены поля GPU, GPU temp, HDD и HDD temp
|
||||||
|
+ добавлены тэги $ccpu и $ccpucl
|
||||||
|
- фикс некоторых багов
|
||||||
|
* оптимизация и рефакторинг
|
||||||
|
|
||||||
|
Вер.1.2.2:
|
||||||
|
+ добавлен тултип в строки
|
||||||
|
|
||||||
|
Вер.1.2.1:
|
||||||
|
* если батарея не существует, возвращает off
|
||||||
|
* если AC не существует, возвращает '(?)'
|
||||||
|
|
||||||
|
Вер.1.2.0:
|
||||||
|
+ добавлен тэг $ac в поле battery
|
||||||
|
+ добавлена настройка устройств батареи и AC
|
||||||
|
+ добавлена проверка ошибок
|
||||||
|
* тэг $bat теперь читается из /sys/*
|
||||||
|
|
||||||
|
Вер.1.1.4:
|
||||||
|
* изменения в парсинге acpi (поле battery)
|
||||||
|
|
||||||
|
Вер.1.1.3:
|
||||||
|
+ добавлена настройка ширины шрифта
|
||||||
|
- небольшие фиксы
|
||||||
|
* отредактирована настройка шрифта. Теперь настройки для шрифта работают нормально
|
||||||
|
|
||||||
|
Вер.1.1.2:
|
||||||
|
+ добавлено поле CPU clock
|
||||||
|
+ добавлена функция для обновления сетевого интерфейса (100*time_interval)
|
||||||
|
* изменено обновление слайдеров
|
||||||
|
|
||||||
|
Вер.1.1.1:
|
||||||
|
+ добавлены тэги $swapmb, $memmb, $netdev, @@netdev=...@@
|
||||||
|
- небольшие фиксы
|
||||||
|
* виджет теперь состоит из нескольких полей
|
||||||
|
* отредактирован конфигурационный интерфейс
|
||||||
|
|
||||||
|
Вер.1.0:
|
||||||
|
Первый релиз
|
32
PKGBUILD
32
PKGBUILD
@ -1,35 +1,37 @@
|
|||||||
# Author: Evgeniy "arcanis" Alexeev <esalexeev@gmail.com>
|
# Maintainer: Evgeniy "arcanis" Alexeev <arcanis.arch at gmail dot com>
|
||||||
# Maintainer: Evgeniy "arcanis" Alexeev <esalexeev@gmail.com>
|
|
||||||
|
|
||||||
pkgname=kdeplasma-applets-pytextmonitor
|
pkgname=kdeplasma-applets-pytextmonitor
|
||||||
_pkgname=pytextmonitor
|
_pkgname=pytextmonitor
|
||||||
pkgver=1.7.2
|
pkgver=1.9.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm"
|
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in Awesome WM"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://arcanis.name/projects/pytextmonitor"
|
url="http://arcanis.name/projects/pytextmonitor"
|
||||||
license=('GPLv3')
|
license=('GPLv3')
|
||||||
depends=('kdebase-workspace' 'kdebindings-python2' 'lm_sensors' 'sysstat')
|
depends=('kdebase-workspace' 'kdebindings-python2' 'lm_sensors')
|
||||||
optdepends=("hddtemp: for HDD temperature monitor"
|
optdepends=("amarok: for music player monitor"
|
||||||
"catalyst: for GPU monitor"
|
"catalyst: for GPU monitor"
|
||||||
"nvidia-utils: for GPU monitor"
|
"hddtemp: for HDD temperature monitor"
|
||||||
"amarok: for music player monitor"
|
|
||||||
"mpd: for music player monitor"
|
"mpd: for music player monitor"
|
||||||
"qmmp: for music player monitor")
|
"net-tools: for popup messages"
|
||||||
|
"nvidia-utils: for GPU monitor"
|
||||||
|
"qmmp: for music player monitor"
|
||||||
|
"sysstat: for popup messages")
|
||||||
makedepends=('automoc4' 'cmake')
|
makedepends=('automoc4' 'cmake')
|
||||||
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
|
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
|
||||||
install=${pkgname}.install
|
install=${pkgname}.install
|
||||||
md5sums=('b1a23c5d38d196297235b5acd5f099ca')
|
md5sums=('0af86da1971ebc625d9b8d72c4e6a126')
|
||||||
backup=('usr/share/config/extsysmon.conf')
|
backup=('usr/share/config/extsysmon.conf')
|
||||||
|
|
||||||
build () {
|
prepare() {
|
||||||
if [[ -d ${srcdir}/build ]]; then
|
[[ -d ${srcdir}/build ]] && rm -rf "${srcdir}/build"
|
||||||
rm -rf "${srcdir}/build"
|
|
||||||
fi
|
|
||||||
mkdir "${srcdir}/build"
|
mkdir "${srcdir}/build"
|
||||||
|
}
|
||||||
|
|
||||||
|
build () {
|
||||||
cd "${srcdir}/build"
|
cd "${srcdir}/build"
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
cmake -DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
|
-DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) \
|
||||||
"../${_pkgname}"
|
"../${_pkgname}"
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
102
README.md
102
README.md
@ -5,46 +5,56 @@ Information
|
|||||||
-----------
|
-----------
|
||||||
PyTextMonitor is a minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm.
|
PyTextMonitor is a minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm.
|
||||||
|
|
||||||
**NOTE** LOOKING FOR TRANSLATORS!
|
**NOTE** [LOOKING FOR TRANSLATORS!](https://github.com/arcan1s/pytextmonitor/issues/14)
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
-------------
|
-------------
|
||||||
For edited output you must open Settings window and setup output format in lines:
|
For edited output you must open Settings window and setup output format in lines:
|
||||||
* tag `$time` - time in default format. For example, `fri Nov 6 04:48:01 2013`
|
* tag `$time` - time in default format. For example, *fri Nov 6 04:48:01 2013*
|
||||||
* tag `$isotime` - time in iso format
|
* tag `$isotime` - time in iso format
|
||||||
* tag `$shorttime` - time in short locale format
|
* tag `$shorttime` - time in short locale format
|
||||||
* tag `$longtime` - time in long locale format
|
* tag `$longtime` - time in long locale format
|
||||||
* tag `$custom` - custom time format
|
* tag `$custom` - custom time format
|
||||||
* tag `$uptime` - uptime, <i>---d--h--m</i>
|
* tag `$uptime` - uptime, *---d--h--m*
|
||||||
* tag `$custom` - custom uptime format
|
* tag `$custom` - custom uptime format
|
||||||
* tag `$cpu` - total load cpu, <i>%</i>
|
* tag `$cpu` - total load cpu, *%*
|
||||||
* tag `$cpuN` - load CPU for core N, <i>%</i>. N should be in range 0 to 8
|
* tag `$cpuN` - load CPU for core N, *%*
|
||||||
* tag `$cpucl` - average cpu clock, <i>MHz</i>
|
* tag `$cpucl` - average cpu clock, *MHz*
|
||||||
* tag `$cpuclN` - cpu clock for core N, <i>MHz</i>. N should be in range 0 to 8
|
* tag `$cpuclN` - cpu clock for core N, *MHz*
|
||||||
* tag `$tempN` - temperature for device N. For example, `$temp0`
|
* tag `$tempN` - temperature for device N. For example, `$temp0`
|
||||||
* tag `$gpu` - GPU usage, <i>%</i>. `aticonfig` or `nvidia-smi` must be installed
|
* tag `$gpu` - GPU usage, *%*. `aticonfig` or `nvidia-smi` must be installed
|
||||||
* tag `$gputemp` - GPU temperature. `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 `$mem` - usage memory, *%*
|
||||||
* tag `$memmb` - usage memory, <i>MB</i>
|
* tag `$memmb` - usage memory, *MB*
|
||||||
* tag `$swap` - swap, <i>%</i>
|
* tag `$memgb` - usage memory, *GB*
|
||||||
* tag `$swapmb` - swap, <i>MB</i>
|
* tag `$swap` - swap, *%*
|
||||||
* tag `$hddN` - usage for mount point N, <i>%</i>. For example, `$hdd0`
|
* tag `$swapmb` - swap, *MB*
|
||||||
|
* tag `$swapgb` - swap, *GB*
|
||||||
|
* tag `$hddN` - usage for mount point N, *%*. For example, `$hdd0`
|
||||||
|
* tag `$hddmbN` - usage for mount point N, *MB*. For example, `$hddmb0`
|
||||||
|
* tag `$hddgbN` - usage for mount point N, *GB*. For example, `$hddgb0`
|
||||||
|
* tag `$hddrN` - read speed of disk N, *KB/s*. For example, `$hddr0`
|
||||||
|
* tag `$hddwN` - write speed of disk N, *KB/s*. For example, `$hddw0`
|
||||||
* tag `$hddtempN` - temperature for HDD N. For example, `$hddtemp0`
|
* tag `$hddtempN` - temperature for HDD N. For example, `$hddtemp0`
|
||||||
* tag `$down` - download speed, <i>KB/s</i>
|
* tag `$down` - download speed, *KB/s*
|
||||||
* tag `$up` - upload speed, <i>KB/s</i>
|
* tag `$up` - upload speed, *KB/s*
|
||||||
* tag `$netdev` - current network device
|
* tag `$netdev` - current network device
|
||||||
* tag `$bat` - battery charge, <i>%</i>
|
* tag `$bat` - battery charge, *%*
|
||||||
* tag `$ac` - status AC device. Return <i>(*)</i> if AC device is online or <i>( )</i> if offline
|
* tag `$ac` - status AC device. Return (\*) if AC device is online or *( )* if offline
|
||||||
* tag `$album` - current song album. One of supported music players must be installed
|
* 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 `$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 `$progress` - current song progress. One of supported music players must be installed
|
||||||
* tag `$time` - current song duration. One of supported music players must be installed
|
* 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 `$title` - current song title. One of supported music players must be installed
|
||||||
* tag `$custom` - returns output for custom command
|
* tag `$pscount` - number of running processes
|
||||||
|
* tag `$pstotal` - total number of processes
|
||||||
|
* tag `$ps` - list of running processes
|
||||||
|
* tag `$pkgcountN` - number of packages, which available to upgrade for command N. For example, `$pkgcount0`
|
||||||
|
* tag `$customN` - returns output for custom command N. For example, `$custom0`
|
||||||
|
|
||||||
Label order will changed if you change slider position. HTML tags in label work normally.
|
Label order will changed if you change slider position. HTML tags in label work normally.
|
||||||
|
|
||||||
**NOTE** you don't may set to show $cpu in swap label for example. **$cpu will work only in cpu label**.
|
**NOTE** you don't may set to show `$cpu` tag in swap label for example. **`$cpu` will work only in cpu label**.
|
||||||
|
|
||||||
Advanced settings
|
Advanced settings
|
||||||
-----------------
|
-----------------
|
||||||
@ -70,12 +80,16 @@ Advanced settings
|
|||||||
**Custom uptime**
|
**Custom uptime**
|
||||||
|
|
||||||
* tag `$dd` - uptime days
|
* tag `$dd` - uptime days
|
||||||
* tag `$dd` - uptime days without zero
|
* tag `$d` - uptime days without zero
|
||||||
* tag `$hh` - uptime hours
|
* tag `$hh` - uptime hours
|
||||||
* tag `$h` - uptime hours without zero
|
* tag `$h` - uptime hours without zero
|
||||||
* tag `$mm` - uptime minutes
|
* tag `$mm` - uptime minutes
|
||||||
* tag `$m` - uptime minutes without zero
|
* tag `$m` - uptime minutes without zero
|
||||||
|
|
||||||
|
**Temperature units**
|
||||||
|
|
||||||
|
Select units for temperature. Available units are Celsius, Farenheit and Kelvin.
|
||||||
|
|
||||||
**Temperature devices**
|
**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.
|
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.
|
||||||
@ -84,9 +98,13 @@ List of devices, which will be observed in temp label (combo box items come from
|
|||||||
|
|
||||||
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.
|
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**
|
**HDD (speed)**
|
||||||
|
|
||||||
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.
|
List of hard disk devices, which will be observed in hddspeed label (combo box items come from DataEngine). List widget is editable, delete key will remove current item.
|
||||||
|
|
||||||
|
**HDD (temperature)**
|
||||||
|
|
||||||
|
List of hard disk devices, which will be observed in hddtemp label (combo box items come from `find`). List widget is editable, delete key will remove current item.
|
||||||
|
|
||||||
**Network directory**
|
**Network directory**
|
||||||
|
|
||||||
@ -100,6 +118,14 @@ Use specified device as active. Combo box items come from **network directory**.
|
|||||||
|
|
||||||
File with battery information. File (`/sys/class/power_supply/BAT0/capacity` by default) should contain only battery charge in percent.
|
File with battery information. File (`/sys/class/power_supply/BAT0/capacity` by default) should contain only battery charge in percent.
|
||||||
|
|
||||||
|
**AC online tag**
|
||||||
|
|
||||||
|
Line which will be shown when AC is online.
|
||||||
|
|
||||||
|
**AC offline tag**
|
||||||
|
|
||||||
|
Line which will be shown when AC is offline.
|
||||||
|
|
||||||
**AC device**
|
**AC device**
|
||||||
|
|
||||||
File with AC information. File (`/sys/class/power_supply/AC/online` by default) must contain `1` if AC is online.
|
File with AC information. File (`/sys/class/power_supply/AC/online` by default) must contain `1` if AC is online.
|
||||||
@ -114,6 +140,12 @@ Since version 1.7.0 CPU, CPU clock, memory, swap and network labels support grap
|
|||||||
|
|
||||||
DataEngine settings
|
DataEngine settings
|
||||||
-------------------
|
-------------------
|
||||||
|
**Custom command**
|
||||||
|
|
||||||
|
*NOTE* This can cause the computer freeze.
|
||||||
|
|
||||||
|
Commands, which will be run for custom label.
|
||||||
|
|
||||||
**GPU device**
|
**GPU device**
|
||||||
|
|
||||||
Select one of supported GPU devices. `auto` will enable auto selection. Default is `auto`.
|
Select one of supported GPU devices. `auto` will enable auto selection. Default is `auto`.
|
||||||
@ -130,11 +162,16 @@ Address of MPD server. Default is `localhost`.
|
|||||||
|
|
||||||
Port of MPD server. Default is `6600`.
|
Port of MPD server. Default is `6600`.
|
||||||
|
|
||||||
**Custom command**
|
**Package manager**
|
||||||
|
|
||||||
*NOTE* This can cause the computer freeze.
|
List of commands, which will be run. Number of null lines is a number of unneeded lines. Defaults:
|
||||||
|
* *Arch*: `PKGCMD=pacman -Qu`, `PKGNULL=0`
|
||||||
|
* *Debian*: `PKGCMD=apt-show-versions -u -b`, `PKGNULL=0`
|
||||||
|
* *Ubuntu*: `PKGCMD=aptitude search '~U'`, `PKGNULL=0`
|
||||||
|
* *Fedora*: `PKGCMD=yum list updates`, `PKGNULL=3`
|
||||||
|
* *FreeBSD*: `PKGCMD=pkg_version -I -l '<'`, `PKGNULL=0`
|
||||||
|
* *Mandriva*: `PKGCMD=urpmq --auto-select`, `PKGNULL=0`
|
||||||
|
|
||||||
A command, which will be run for custom label.
|
|
||||||
|
|
||||||
DataEngine configuration
|
DataEngine configuration
|
||||||
------------------------
|
------------------------
|
||||||
@ -147,20 +184,20 @@ Dependencies
|
|||||||
------------
|
------------
|
||||||
* kdebase-workspace
|
* kdebase-workspace
|
||||||
* kdebindings-python2
|
* kdebindings-python2
|
||||||
* lm_sensors (for definition temperature device)
|
* lm_sensors (*for definition temperature device*)
|
||||||
* sysstat (for notification)
|
* sysstat (*for notification*)
|
||||||
|
|
||||||
Optional dependencies
|
Optional dependencies
|
||||||
---------------------
|
---------------------
|
||||||
ext-sysmon (for GPU, GPU temp, HDD temp and player labels):
|
|
||||||
* proprietary video driver
|
* proprietary video driver
|
||||||
* hddtemp
|
* hddtemp (make sure that it may be run with `sudo` without password. Just add following line to `/etc/sudoers`: `$USERNAME ALL=NOPASSWD: /usr/bin/hddtemp`)
|
||||||
* music player (amarok, mpd or qmmp)
|
* music player (amarok, mpd or qmmp)
|
||||||
|
|
||||||
Make dependencies
|
Make dependencies
|
||||||
-----------------
|
-----------------
|
||||||
* automoc4
|
* automoc4
|
||||||
* cmake
|
* cmake
|
||||||
|
* kdebase-runtime
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
@ -171,7 +208,7 @@ Installation
|
|||||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --localprefix` ../
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --localprefix` ../
|
||||||
make && make install
|
make && make install
|
||||||
|
|
||||||
Also you may install it to "/":
|
Also you may install it to `/`:
|
||||||
|
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
||||||
@ -180,6 +217,9 @@ Installation
|
|||||||
Additional information
|
Additional information
|
||||||
======================
|
======================
|
||||||
|
|
||||||
|
TODO (wish list)
|
||||||
|
----------------
|
||||||
|
|
||||||
Links
|
Links
|
||||||
-----
|
-----
|
||||||
* [Homepage](http://arcanis.name/projects/pytextmonitor/)
|
* [Homepage](http://arcanis.name/projects/pytextmonitor/)
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# update english readme
|
||||||
|
cp README.md sources/readme/en.md
|
||||||
|
|
||||||
SRCDIR="sources"
|
SRCDIR="sources"
|
||||||
VERSION=$(grep -m1 PROJECT_VERSION_MAJOR sources/CMakeLists.txt | awk '{print $3}' | cut -c 1).\
|
VERSION=$(grep -m1 PROJECT_VERSION_MAJOR sources/CMakeLists.txt | awk '{print $3}' | cut -c 1).\
|
||||||
$(grep -m1 PROJECT_VERSION_MINOR sources/CMakeLists.txt | awk '{print $3}' | cut -c 1).\
|
$(grep -m1 PROJECT_VERSION_MINOR sources/CMakeLists.txt | awk '{print $3}' | cut -c 1).\
|
||||||
@ -16,13 +19,13 @@ rm -rf "${ARCHIVE}"
|
|||||||
|
|
||||||
# build widget
|
# build widget
|
||||||
ARCHIVE="pytextmonitor"
|
ARCHIVE="pytextmonitor"
|
||||||
FILES="AUTHORS CHANGELOG COPYING README.md"
|
FILES="AUTHORS CHANGELOG CHANGELOG-RU COPYING"
|
||||||
IGNORELIST="build usr"
|
IGNORELIST="build usr"
|
||||||
# create archive
|
# create archive
|
||||||
[[ -e ${ARCHIVE}-${VERSION}-src.tar.xz ]] && rm -f "${ARCHIVE}-${VERSION}-src.tar.xz"
|
[[ -e ${ARCHIVE}-${VERSION}-src.tar.xz ]] && rm -f "${ARCHIVE}-${VERSION}-src.tar.xz"
|
||||||
[[ -d ${ARCHIVE} ]] && rm -rf "${ARCHIVE}"
|
[[ -d ${ARCHIVE} ]] && rm -rf "${ARCHIVE}"
|
||||||
cp -r "${SRCDIR}" "${ARCHIVE}"
|
cp -r "${SRCDIR}" "${ARCHIVE}"
|
||||||
for FILE in ${FILES[*]}; do cp "$FILE" "${ARCHIVE}"; done
|
for FILE in ${FILES[*]}; do cp -r "$FILE" "${ARCHIVE}"; done
|
||||||
for FILE in ${IGNORELIST[*]}; do rm -rf "${ARCHIVE}/${FILE}"; done
|
for FILE in ${IGNORELIST[*]}; do rm -rf "${ARCHIVE}/${FILE}"; done
|
||||||
tar cJf "${ARCHIVE}-${VERSION}-src.tar.xz" "${ARCHIVE}"
|
tar cJf "${ARCHIVE}-${VERSION}-src.tar.xz" "${ARCHIVE}"
|
||||||
rm -rf "${ARCHIVE}"
|
rm -rf "${ARCHIVE}"
|
||||||
|
@ -7,8 +7,8 @@ cmake_policy (SET CMP0015 NEW)
|
|||||||
|
|
||||||
project (pytextmonitor)
|
project (pytextmonitor)
|
||||||
set (PROJECT_VERSION_MAJOR 1)
|
set (PROJECT_VERSION_MAJOR 1)
|
||||||
set (PROJECT_VERSION_MINOR 7)
|
set (PROJECT_VERSION_MINOR 9)
|
||||||
set (PROJECT_VERSION_PATCH 2)
|
set (PROJECT_VERSION_PATCH 0)
|
||||||
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
|
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
|
||||||
|
|
||||||
message (STATUS "Version: ${PROJECT_VERSION}")
|
message (STATUS "Version: ${PROJECT_VERSION}")
|
||||||
@ -25,3 +25,4 @@ endif ()
|
|||||||
|
|
||||||
add_subdirectory (ext-sysmon)
|
add_subdirectory (ext-sysmon)
|
||||||
add_subdirectory (ptm)
|
add_subdirectory (ptm)
|
||||||
|
add_subdirectory (readme)
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
# Configuration file for Extended Systemmonitor DataEngine
|
# Configuration file for Extended Systemmonitor DataEngine
|
||||||
# Uncomment needed lines
|
# Uncomment needed lines
|
||||||
|
|
||||||
|
# Custom command
|
||||||
|
#CUSTOM=wget -qO- http://ifconfig.me/ip
|
||||||
|
|
||||||
# Set GPU device
|
# Set GPU device
|
||||||
# May be 'nvidia' (for nvidia), 'ati' (for ATI RADEON), 'ignore' or 'auto'
|
# May be 'nvidia' (for nvidia), 'ati' (for ATI RADEON), 'ignore' or 'auto'
|
||||||
#GPUDEV=auto
|
#GPUDEV=auto
|
||||||
@ -12,5 +15,15 @@
|
|||||||
#MPDADDRESS=localhost
|
#MPDADDRESS=localhost
|
||||||
#MPDPORT=6600
|
#MPDPORT=6600
|
||||||
|
|
||||||
# Custom command
|
# Package upgrade info
|
||||||
#CUSTOM=wget -qO- http://ifconfig.me/ip
|
## from vicious
|
||||||
|
## Arch: PKGCMD=pacman -Qu PKGNULL=0
|
||||||
|
## Debian: PKGCMD=apt-show-versions -u -b PKGNULL=0
|
||||||
|
## Ubuntu: PKGCMD=aptitude search '~U' PKGNULL=0
|
||||||
|
## Fedora: PKGCMD=yum list updates PKGNULL=3
|
||||||
|
## FreeBSD: PKGCMD=pkg_version -I -l '<' PKGNULL=0
|
||||||
|
## Mandriva: PKGCMD=urpmq --auto-select PKGNULL=0
|
||||||
|
# Commands to run, comma separated
|
||||||
|
#PKGCMD=pacman -Qu
|
||||||
|
# Number of null lines for commands, comma separated
|
||||||
|
#PKGNULL=0
|
||||||
|
@ -19,13 +19,12 @@
|
|||||||
#include "extsysmon.h"
|
#include "extsysmon.h"
|
||||||
|
|
||||||
#include <Plasma/DataContainer>
|
#include <Plasma/DataContainer>
|
||||||
|
#include <KDE/KGlobal>
|
||||||
|
#include <KDE/KStandardDirs>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QTextCodec>
|
#include <QTextCodec>
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
|
|
||||||
ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
||||||
: Plasma::DataEngine(parent, args)
|
: Plasma::DataEngine(parent, args)
|
||||||
@ -36,337 +35,454 @@ ExtendedSysMon::ExtendedSysMon(QObject* parent, const QVariantList& args)
|
|||||||
readConfiguration();
|
readConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QString ExtendedSysMon::getAllHdd()
|
||||||
|
{
|
||||||
|
QProcess command;
|
||||||
|
QStringList devices;
|
||||||
|
QString qoutput = QString("");
|
||||||
|
QString dev;
|
||||||
|
command.start("find /dev -name [hs]d[a-z]");
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput());
|
||||||
|
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {
|
||||||
|
dev = qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i];
|
||||||
|
devices.append(dev);
|
||||||
|
}
|
||||||
|
return devices.join(QChar(','));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QString ExtendedSysMon::getAutoGpu()
|
||||||
|
{
|
||||||
|
QProcess command;
|
||||||
|
QString gpu = QString("");
|
||||||
|
QString qoutput = QString("");
|
||||||
|
command.start("lspci");
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput());
|
||||||
|
if (qoutput.toLower().contains("nvidia"))
|
||||||
|
gpu = QString("nvidia");
|
||||||
|
else if (qoutput.toLower().contains("radeon"))
|
||||||
|
gpu = QString("ati");
|
||||||
|
return gpu;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
QStringList ExtendedSysMon::sources() const
|
QStringList ExtendedSysMon::sources() const
|
||||||
{
|
{
|
||||||
QStringList source;
|
QStringList source;
|
||||||
|
source.append(QString("custom"));
|
||||||
source.append(QString("gpu"));
|
source.append(QString("gpu"));
|
||||||
source.append(QString("gputemp"));
|
source.append(QString("gputemp"));
|
||||||
source.append(QString("hddtemp"));
|
source.append(QString("hddtemp"));
|
||||||
|
source.append(QString("pkg"));
|
||||||
source.append(QString("player"));
|
source.append(QString("player"));
|
||||||
source.append(QString("custom"));
|
source.append(QString("ps"));
|
||||||
return source;
|
return source;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ExtendedSysMon::readConfiguration()
|
|
||||||
|
void ExtendedSysMon::readConfiguration()
|
||||||
{
|
{
|
||||||
// pre-setup
|
// pre-setup
|
||||||
FILE *f_out;
|
QMap<QString, QString> rawConfig;
|
||||||
f_out = popen("lspci 2> /dev/null", "r");
|
rawConfig[QString("CUSTOM")] = QString("wget -qO- http://ifconfig.me/ip");
|
||||||
char device[256];
|
rawConfig[QString("GPUDEV")] = QString("auto");
|
||||||
QString dev;
|
rawConfig[QString("HDDDEV")] = QString("all");
|
||||||
while (fgets(device, 256, f_out) != NULL) {
|
rawConfig[QString("MPDADDRESS")] = QString("localhost");
|
||||||
dev = QString(device);
|
rawConfig[QString("MPDPORT")] = QString("6600");
|
||||||
if (dev.toLower().contains("nvidia"))
|
rawConfig[QString("PKGCMD")] = QString("pacman -Qu");
|
||||||
gpuDev = QString("nvidia");
|
rawConfig[QString("PKGNULL")] = QString("0");
|
||||||
else if (dev.toLower().contains("radeon"))
|
|
||||||
gpuDev = QString("ati");
|
QString fileName = KGlobal::dirs()->findResource("config", "extsysmon.conf");
|
||||||
|
QFile confFile(fileName);
|
||||||
|
bool ok = confFile.open(QIODevice::ReadOnly);
|
||||||
|
if (!ok) {
|
||||||
|
configuration = updateConfiguration(rawConfig);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
pclose(f_out);
|
|
||||||
|
|
||||||
f_out = popen("ls -1 /dev/sd[a-z] 2> /dev/null ; ls -1 /dev/hd[a-z] 2> /dev/null", "r");
|
|
||||||
while (fgets(device, 256, f_out) != NULL) {
|
|
||||||
dev = QString(device).split("\n")[0];
|
|
||||||
if (dev[0] == '/')
|
|
||||||
hddDev.append(dev);
|
|
||||||
}
|
|
||||||
pclose(f_out);
|
|
||||||
|
|
||||||
mpdAddress = QString("localhost");
|
|
||||||
mpdPort = QString("6600");
|
|
||||||
|
|
||||||
customCommand = QString("wget -qO- http://ifconfig.me/ip");
|
|
||||||
|
|
||||||
QString fileStr;
|
QString fileStr;
|
||||||
// FIXME: define configuration file
|
QStringList value;
|
||||||
QString confFileName = QString(getenv("HOME")) + QString("/.kde4/share/config/extsysmon.conf");
|
|
||||||
QFile confFile(confFileName);
|
|
||||||
bool exists = confFile.open(QIODevice::ReadOnly);
|
|
||||||
if (!exists) {
|
|
||||||
confFileName = QString("/usr/share/config/extsysmon.conf");
|
|
||||||
confFile.setFileName(confFileName);
|
|
||||||
exists = confFile.open(QIODevice::ReadOnly);
|
|
||||||
if (!exists)
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
fileStr = QString(confFile.readLine());
|
fileStr = QString(confFile.readLine()).trimmed();
|
||||||
if (fileStr[0] != '#') {
|
if (fileStr[0] == QChar('#')) continue;
|
||||||
if (fileStr.split(QString("="), QString::SkipEmptyParts).count() == 2) {
|
if (fileStr[0] == QChar(';')) continue;
|
||||||
if (fileStr.split(QString("="), QString::SkipEmptyParts)[0] == QString("GPUDEV")) {
|
if (fileStr.contains(QChar('='))) {
|
||||||
if (fileStr.split(QString("="), QString::SkipEmptyParts)[1].trimmed() == QString("ati"))
|
value.clear();
|
||||||
gpuDev = fileStr.split(QString("="), QString::SkipEmptyParts)[1].trimmed();
|
for (int i=1; i<fileStr.split(QChar('=')).count(); i++)
|
||||||
else if (fileStr.split(QString("="), QString::SkipEmptyParts)[1].trimmed() == QString("nvidia"))
|
value.append(fileStr.split(QChar('='))[i]);
|
||||||
gpuDev = fileStr.split(QString("="), QString::SkipEmptyParts)[1].trimmed();
|
rawConfig[fileStr.split(QChar('='))[0]] = value.join(QChar('='));
|
||||||
else if (fileStr.split(QString("="), QString::SkipEmptyParts)[1].trimmed() != QString("auto"))
|
|
||||||
gpuDev = QString("ignore");
|
|
||||||
}
|
|
||||||
else if (fileStr.split(QString("="), QString::SkipEmptyParts)[0] == QString("HDDDEV")) {
|
|
||||||
if (fileStr.split(QString("="), QString::SkipEmptyParts)[1].trimmed() != QString("all")) {
|
|
||||||
hddDev.clear();
|
|
||||||
for (int i=0; i<fileStr.split(QString("="), QString::SkipEmptyParts)[1].split(QString("\n"), \
|
|
||||||
QString::SkipEmptyParts)[0].split(QString(","), QString::SkipEmptyParts).count(); i++)
|
|
||||||
hddDev.append(fileStr.split(QString("="), QString::SkipEmptyParts)[1].split(QString("\n"), \
|
|
||||||
QString::SkipEmptyParts)[0].split(QString(","), QString::SkipEmptyParts)[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (fileStr.split(QString("="), QString::SkipEmptyParts)[0] == QString("MPDADDRESS"))
|
|
||||||
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())
|
if (confFile.atEnd())
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
confFile.close();
|
confFile.close();
|
||||||
return true;
|
configuration = updateConfiguration(rawConfig);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QMap<QString, QString> ExtendedSysMon::updateConfiguration(const QMap<QString, QString> rawConfig)
|
||||||
|
{
|
||||||
|
QMap<QString, QString> config;
|
||||||
|
QString key, value;
|
||||||
|
// remove spaces and copy source map
|
||||||
|
for (int i=0; i<rawConfig.keys().count(); i++) {
|
||||||
|
key = rawConfig.keys()[i];
|
||||||
|
value = rawConfig[key];
|
||||||
|
key.remove(QChar(' '));
|
||||||
|
if ((key != QString("CUSTOM")) && (key != QString("PKGCMD")))
|
||||||
|
value.remove(QChar(' '));
|
||||||
|
config[key] = value;
|
||||||
|
}
|
||||||
|
// update values
|
||||||
|
if (config[QString("GPUDEV")] == QString("auto"))
|
||||||
|
config[QString("GPUDEV")] = getAutoGpu();
|
||||||
|
if (config[QString("HDDDEV")] == QString("all"))
|
||||||
|
config[QString("HDDDEV")] = getAllHdd();
|
||||||
|
for (int i=config[QString("PKGNULL")].split(QString(","), QString::SkipEmptyParts).count();
|
||||||
|
i<config[QString("PKGCMD")].split(QString(","), QString::SkipEmptyParts).count()+1;
|
||||||
|
i++)
|
||||||
|
config[QString("PKGNULL")] += QString(",0");
|
||||||
|
return config;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QString ExtendedSysMon::getCustomCmd(const QString cmd)
|
||||||
|
{
|
||||||
|
QProcess command;
|
||||||
|
QString qoutput = QString("");
|
||||||
|
command.start(QString("bash -c \"") + cmd + QString("\""));
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput()).trimmed();
|
||||||
|
return qoutput;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
float ExtendedSysMon::getGpu(const QString device)
|
||||||
|
{
|
||||||
|
float gpu = 0.0;
|
||||||
|
if ((device != QString("nvidia")) && (device != QString("ati")))
|
||||||
|
return gpu;
|
||||||
|
QProcess command;
|
||||||
|
QString qoutput;
|
||||||
|
|
||||||
|
if (device == QString("nvidia")) {
|
||||||
|
command.start(QString("nvidia-smi -q -d UTILIZATION"));
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput());
|
||||||
|
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {
|
||||||
|
if (qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i].contains(QString("Gpu"))) {
|
||||||
|
QString load = qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i]
|
||||||
|
.split(QChar(' '), QString::SkipEmptyParts)[2]
|
||||||
|
.remove(QChar('%'));
|
||||||
|
gpu = load.toFloat();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (device == QString("ati")) {
|
||||||
|
command.start(QString("aticonfig --od-getclocks"));
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput());
|
||||||
|
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {
|
||||||
|
if (qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i].contains(QString("load"))) {
|
||||||
|
QString load = qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i]
|
||||||
|
.split(QChar(' '), QString::SkipEmptyParts)[3]
|
||||||
|
.remove(QChar('%'));
|
||||||
|
gpu = load.toFloat();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return gpu;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
float ExtendedSysMon::getGpuTemp(const QString device)
|
||||||
|
{
|
||||||
|
float gpuTemp = 0.0;
|
||||||
|
if ((device != QString("nvidia")) && (device != QString("ati")))
|
||||||
|
return gpuTemp;
|
||||||
|
QProcess command;
|
||||||
|
QString qoutput;
|
||||||
|
if (device == QString("nvidia")) {
|
||||||
|
command.start(QString("nvidia-smi -q -d TEMPERATURE"));
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput());
|
||||||
|
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {
|
||||||
|
if (qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i].contains(QString("Gpu"))) {
|
||||||
|
QString temp = qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i]
|
||||||
|
.split(QChar(' '), QString::SkipEmptyParts)[2];
|
||||||
|
gpuTemp = temp.toFloat();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (device == QString("ati")) {
|
||||||
|
command.start(QString("aticonfig --od-gettemperature"));
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput());
|
||||||
|
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {
|
||||||
|
if (qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i].contains(QString("Temperature"))) {
|
||||||
|
QString temp = qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i]
|
||||||
|
.split(QChar(' '), QString::SkipEmptyParts)[4];
|
||||||
|
gpuTemp = temp.toFloat();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return gpuTemp;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
float ExtendedSysMon::getHddTemp(const QString device)
|
||||||
|
{
|
||||||
|
float hddTemp = 0.0;
|
||||||
|
QProcess command;
|
||||||
|
QString qoutput = QString("");
|
||||||
|
command.start(QString("sudo hddtemp ") + device);
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput()).trimmed();
|
||||||
|
if (qoutput.split(QChar(':'), QString::SkipEmptyParts).count() >= 3) {
|
||||||
|
QString temp = qoutput.split(QChar(':'), QString::SkipEmptyParts)[2];
|
||||||
|
temp.remove(QChar(0260)).remove(QChar('C'));
|
||||||
|
hddTemp = temp.toFloat();
|
||||||
|
}
|
||||||
|
return hddTemp;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QStringList ExtendedSysMon::getPlayerInfo(const QString playerName,
|
||||||
|
const QString mpdAddress,
|
||||||
|
const QString mpdPort)
|
||||||
|
{
|
||||||
|
QStringList info;
|
||||||
|
// album
|
||||||
|
info.append(QString("unknown"));
|
||||||
|
// artist
|
||||||
|
info.append(QString("unknown"));
|
||||||
|
// progress
|
||||||
|
info.append(QString("0"));
|
||||||
|
// duration
|
||||||
|
info.append(QString("0"));
|
||||||
|
// title
|
||||||
|
info.append(QString("unknown"));
|
||||||
|
if ((playerName != QString("amarok")) &&
|
||||||
|
(playerName != QString("mpd")) &&
|
||||||
|
(playerName != QString("qmmp")))
|
||||||
|
return info;
|
||||||
|
QProcess command;
|
||||||
|
QString qoutput = QString("");
|
||||||
|
QString qstr;
|
||||||
|
if (playerName == QString("amarok")) {
|
||||||
|
// amarok
|
||||||
|
command.start("qdbus org.kde.amarok /Player GetMetadata");
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput());
|
||||||
|
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {
|
||||||
|
qstr = qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i];
|
||||||
|
if (qstr.split(QString(": "), QString::SkipEmptyParts).count() > 1) {
|
||||||
|
if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("album"))
|
||||||
|
info[0] = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
||||||
|
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("artist"))
|
||||||
|
info[1] = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
||||||
|
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("time"))
|
||||||
|
info[3] = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
||||||
|
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("title"))
|
||||||
|
info[4] = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
command.start("qdbus org.kde.amarok /Player PositionGet");
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput());
|
||||||
|
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {
|
||||||
|
qstr = qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i];
|
||||||
|
int time = qstr.toInt() / 1000;
|
||||||
|
info[2] = QString::number(time);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (playerName == QString("mpd")) {
|
||||||
|
// mpd
|
||||||
|
command.start(QString("bash -c \"echo 'currentsong\nstatus\nclose' | curl --connect-timeout 1 -fsm 3 telnet://") +
|
||||||
|
mpdAddress + QString(":") + mpdPort + QString("\""));
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput());
|
||||||
|
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {
|
||||||
|
qstr = qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i];
|
||||||
|
if (qstr.split(QString(": "), QString::SkipEmptyParts).count() > 1) {
|
||||||
|
if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("Album"))
|
||||||
|
info[0] = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
||||||
|
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("Artist"))
|
||||||
|
info[1] = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
||||||
|
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("time")) {
|
||||||
|
info[3] = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed().split(QString(":"))[0];
|
||||||
|
info[2] = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed().split(QString(":"))[1];
|
||||||
|
}
|
||||||
|
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("Title"))
|
||||||
|
info[4] = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (playerName == QString("qmmp")) {
|
||||||
|
// qmmp
|
||||||
|
command.start("qmmp --status");
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput());
|
||||||
|
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++) {
|
||||||
|
qstr = qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i];
|
||||||
|
if ((qstr.split(QString(" = "), QString::SkipEmptyParts).count() > 1) || (qstr.at(0) == QChar('['))) {
|
||||||
|
if (qstr.split(QString(" = "), QString::SkipEmptyParts)[0] == QString("ALBUM"))
|
||||||
|
info[0] = qstr.split(QString(" = "), QString::SkipEmptyParts)[1].trimmed();
|
||||||
|
else if (qstr.split(QString(" = "), QString::SkipEmptyParts)[0] == QString("ARTIST"))
|
||||||
|
info[1] = qstr.split(QString(" = "), QString::SkipEmptyParts)[1].trimmed();
|
||||||
|
else if ((qstr.at(0) == QChar('[')) && (!qstr.contains("[stopped]"))) {
|
||||||
|
QString time = qstr.split(QString(" "), QString::SkipEmptyParts)[2].trimmed();
|
||||||
|
info[2] = QString::number(time.split(QString("/"), QString::SkipEmptyParts)[0].split(QString(":"), QString::SkipEmptyParts)[0].toInt() * 60 +
|
||||||
|
time.split(QString("/"), QString::SkipEmptyParts)[0].split(QString(":"), QString::SkipEmptyParts)[1].toInt());
|
||||||
|
info[3] = QString::number(time.split(QString("/"), QString::SkipEmptyParts)[1].split(QString(":"), QString::SkipEmptyParts)[0].toInt() * 60 +
|
||||||
|
time.split(QString("/"), QString::SkipEmptyParts)[1].split(QString(":"), QString::SkipEmptyParts)[1].toInt());
|
||||||
|
}
|
||||||
|
else if (qstr.split(QString(" = "), QString::SkipEmptyParts)[0] == QString("TITLE"))
|
||||||
|
info[4] = qstr.split(QString(" = "), QString::SkipEmptyParts)[1].trimmed();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QStringList ExtendedSysMon::getPsStats()
|
||||||
|
{
|
||||||
|
int psCount = 0;
|
||||||
|
QStringList psList;
|
||||||
|
QProcess command;
|
||||||
|
QString qoutput = QString("");
|
||||||
|
command.start(QString("ps --no-headers -o command"));
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput()).trimmed();
|
||||||
|
for (int i=0; i<qoutput.split(QChar('\n'), QString::SkipEmptyParts).count(); i++)
|
||||||
|
if (qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i] != QString("ps --no-headers -o command")) {
|
||||||
|
psCount++;
|
||||||
|
psList.append(qoutput.split(QChar('\n'), QString::SkipEmptyParts)[i]);
|
||||||
|
}
|
||||||
|
QStringList psStats;
|
||||||
|
psStats.append(QString::number(psCount));
|
||||||
|
psStats.append(psList.join(QString(",")));
|
||||||
|
command.start(QString("ps -e --no-headers -o command"));
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput()).trimmed();
|
||||||
|
int psTotal = qoutput.split(QChar('\n'), QString::SkipEmptyParts).count();
|
||||||
|
psStats.append(QString::number(psTotal));
|
||||||
|
return psStats;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int ExtendedSysMon::getUpgradeInfo(const QString pkgCommand, const int pkgNull)
|
||||||
|
{
|
||||||
|
int count = 0;
|
||||||
|
QProcess command;
|
||||||
|
QString qoutput = QString("");
|
||||||
|
command.start(QString("bash -c \"") + pkgCommand + QString("\""));
|
||||||
|
command.waitForFinished(-1);
|
||||||
|
qoutput = QTextCodec::codecForMib(106)->toUnicode(command.readAllStandardOutput()).trimmed();
|
||||||
|
count = qoutput.split(QChar('\n'), QString::SkipEmptyParts).count();
|
||||||
|
return (count - pkgNull);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ExtendedSysMon::sourceRequestEvent(const QString &name)
|
bool ExtendedSysMon::sourceRequestEvent(const QString &name)
|
||||||
{
|
{
|
||||||
return updateSourceEvent(name);
|
return updateSourceEvent(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ExtendedSysMon::updateSourceEvent(const QString &source)
|
bool ExtendedSysMon::updateSourceEvent(const QString &source)
|
||||||
{
|
{
|
||||||
FILE *f_out;
|
QString key;
|
||||||
QString key, out, tmp_out, value;
|
if (source == QString("custom")) {
|
||||||
bool ok = false;
|
for (int i=0; i<configuration[QString("CUSTOM")].split(QString("@@"), QString::SkipEmptyParts).count(); i++) {
|
||||||
char output[256], val[5];
|
key = QString("custom") + QString::number(i);
|
||||||
if (source == QString("gpu")) {
|
QString value = getCustomCmd(configuration[QString("CUSTOM")].split(QString("@@"), QString::SkipEmptyParts)[i]);
|
||||||
|
setData(source, key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (source == QString("gpu")) {
|
||||||
key = QString("GPU");
|
key = QString("GPU");
|
||||||
if (gpuDev == QString("nvidia")) {
|
float value = getGpu(configuration[QString("GPUDEV")]);
|
||||||
f_out = popen("nvidia-smi -q -d UTILIZATION 2> /dev/null | grep Gpu | tail -n1", "r");
|
|
||||||
fgets (output, 256, f_out);
|
|
||||||
if ((output[0] == '\0') ||
|
|
||||||
(QString(output).split(QString(" "), QString::SkipEmptyParts).count() < 2))
|
|
||||||
value = QString(" N\\A");
|
|
||||||
else {
|
|
||||||
out = QString(output).split(QString(" "), QString::SkipEmptyParts)[2];
|
|
||||||
sprintf (val, "%5.1f", out.left(out.count()-2).toFloat(&ok));
|
|
||||||
value = QString(val);
|
|
||||||
}
|
|
||||||
pclose(f_out);
|
|
||||||
}
|
|
||||||
else if (gpuDev == QString("ati")) {
|
|
||||||
f_out = popen("aticonfig --od-getclocks 2> /dev/null | grep load | tail -n1", "r");
|
|
||||||
fgets (output, 256, f_out);
|
|
||||||
if ((output[0] == '\0') ||
|
|
||||||
(QString(output).split(QString(" "), QString::SkipEmptyParts).count() < 3))
|
|
||||||
value = QString(" N\\A");
|
|
||||||
else {
|
|
||||||
out = QString(output).split(QString(" "), QString::SkipEmptyParts)[3];
|
|
||||||
sprintf (val, "%5.1f", out.left(out.count()-2).toFloat(&ok));
|
|
||||||
value = QString(val);
|
|
||||||
}
|
|
||||||
pclose(f_out);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
value = QString(" N\\A");
|
|
||||||
}
|
|
||||||
if (ok == false)
|
|
||||||
value = QString(" N\\A");
|
|
||||||
value = value.split(QString(","), QString::SkipEmptyParts).join(QString("."));
|
|
||||||
setData(source, key, value);
|
setData(source, key, value);
|
||||||
}
|
}
|
||||||
else if (source == QString("gputemp")) {
|
else if (source == QString("gputemp")) {
|
||||||
key = QString("GPUTemp");
|
key = QString("GPUTemp");
|
||||||
if (gpuDev == QString("nvidia")) {
|
float value = getGpuTemp(configuration[QString("GPUDEV")]);
|
||||||
f_out = popen("nvidia-smi -q -d TEMPERATURE 2> /dev/null | grep Gpu | tail -n1", "r");
|
|
||||||
fgets (output, 256, f_out);
|
|
||||||
if ((output[0] == '\0') ||
|
|
||||||
(QString(output).split(QString(" "), QString::SkipEmptyParts).count() < 2))
|
|
||||||
value = QString(" N\\A");
|
|
||||||
else {
|
|
||||||
out = QString(output).split(QString(" "), QString::SkipEmptyParts)[2];
|
|
||||||
sprintf (val, "%4.1f", out.toFloat(&ok));
|
|
||||||
value = QString(val);
|
|
||||||
}
|
|
||||||
pclose(f_out);
|
|
||||||
}
|
|
||||||
else if (gpuDev == QString("ati")) {
|
|
||||||
f_out = popen("aticonfig --od-gettemperature 2> /dev/null | grep Temperature | tail -n1", "r");
|
|
||||||
fgets (output, 256, f_out);
|
|
||||||
if ((output[0] == '\0') ||
|
|
||||||
(QString(output).split(QString(" "), QString::SkipEmptyParts).count() < 4))
|
|
||||||
value = QString(" N\\A");
|
|
||||||
else {
|
|
||||||
out = QString(output).split(QString(" "), QString::SkipEmptyParts)[4];
|
|
||||||
sprintf (val, "%4.1f", out.toFloat(&ok));
|
|
||||||
value = QString(val);
|
|
||||||
}
|
|
||||||
pclose(f_out);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
value = QString(" N\\A");
|
|
||||||
}
|
|
||||||
if (ok == false)
|
|
||||||
value = QString(" N\\A");
|
|
||||||
value = value.split(QString(","), QString::SkipEmptyParts).join(QString("."));
|
|
||||||
setData(source, key, value);
|
setData(source, key, value);
|
||||||
}
|
}
|
||||||
else if (source == QString("hddtemp")) {
|
else if (source == QString("hddtemp")) {
|
||||||
char command[256], *dev;
|
QStringList deviceList = configuration[QString("HDDDEV")].split(QChar(','), QString::SkipEmptyParts);
|
||||||
QByteArray qb;
|
for (int i=0; i<deviceList.count(); i++) {
|
||||||
for (int i=0; i<hddDev.count(); i++) {
|
float value = getHddTemp(deviceList[i]);
|
||||||
qb = hddDev[i].toUtf8();
|
setData(source, deviceList[i], value);
|
||||||
dev = qb.data();
|
|
||||||
sprintf(command, "sudo hddtemp %s 2> /dev/null", dev);
|
|
||||||
f_out = popen(command, "r");
|
|
||||||
fgets(output, 256, f_out);
|
|
||||||
if ((output[0] == '\0') ||
|
|
||||||
(QString(output).split(QString(":"), QString::SkipEmptyParts).count() < 3))
|
|
||||||
value = QString(" N\\A");
|
|
||||||
else {
|
|
||||||
out = QString(output).split(QString(":"), QString::SkipEmptyParts)[2];
|
|
||||||
sprintf (val, "%4.1f", out.left(out.count()-4).toFloat(&ok));
|
|
||||||
value = QString(val);
|
|
||||||
}
|
}
|
||||||
pclose(f_out);
|
}
|
||||||
if (ok == false)
|
else if (source == QString("pkg")) {
|
||||||
value = QString(" N\\A");
|
for (int i=0; i<configuration[QString("PKGCMD")].split(QString(","), QString::SkipEmptyParts).count(); i++) {
|
||||||
value = value.split(QString(","), QString::SkipEmptyParts).join(QString("."));
|
key = QString("pkgCount") + QString::number(i);
|
||||||
setData(source, hddDev[i], value);
|
int value = getUpgradeInfo(configuration[QString("PKGCMD")].split(QString(","), QString::SkipEmptyParts)[i],
|
||||||
|
configuration[QString("PKGNULL")].split(QString(","), QString::SkipEmptyParts)[i].toInt());
|
||||||
|
setData(source, key, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (source == QString("player")) {
|
else if (source == QString("player")) {
|
||||||
QProcess player;
|
QStringList value;
|
||||||
QString qoutput;
|
|
||||||
QString value_album, value_artist, value_progress, value_duration, qstr;
|
|
||||||
// qmmp
|
|
||||||
qoutput = QString("");
|
|
||||||
value = QString("N\\A");
|
|
||||||
value_album = QString("N\\A");
|
|
||||||
value_artist = QString("N\\A");
|
|
||||||
value_progress = QString("0");
|
|
||||||
value_duration = QString("0");
|
|
||||||
player.start("qmmp --status");
|
|
||||||
player.waitForFinished(-1);
|
|
||||||
qoutput = QTextCodec::codecForMib(106)->toUnicode(player.readAllStandardOutput());
|
|
||||||
for (int i=0; i<qoutput.split(QString("\n"), QString::SkipEmptyParts).count(); i++) {
|
|
||||||
qstr = qoutput.split(QString("\n"), QString::SkipEmptyParts)[i];
|
|
||||||
if ((qstr.split(QString(" = "), QString::SkipEmptyParts).count() > 1) || (qstr.at(0) == QChar('['))) {
|
|
||||||
if (qstr.split(QString(" = "), QString::SkipEmptyParts)[0] == QString("ALBUM"))
|
|
||||||
value_album = qstr.split(QString(" = "), QString::SkipEmptyParts)[1].trimmed();
|
|
||||||
else if (qstr.split(QString(" = "), QString::SkipEmptyParts)[0] == QString("ARTIST"))
|
|
||||||
value_artist = qstr.split(QString(" = "), QString::SkipEmptyParts)[1].trimmed();
|
|
||||||
else if ((qstr.at(0) == QChar('[')) && (!qstr.contains("[stopped]"))) {
|
|
||||||
QString time = qstr.split(QString(" "), QString::SkipEmptyParts)[2].trimmed();
|
|
||||||
value_progress = QString::number(time.split(QString("/"), QString::SkipEmptyParts)[0].split(QString(":"), QString::SkipEmptyParts)[0].toInt() * 60 +
|
|
||||||
time.split(QString("/"), QString::SkipEmptyParts)[0].split(QString(":"), QString::SkipEmptyParts)[1].toInt());
|
|
||||||
value_duration = QString::number(time.split(QString("/"), QString::SkipEmptyParts)[1].split(QString(":"), QString::SkipEmptyParts)[0].toInt() * 60 +
|
|
||||||
time.split(QString("/"), QString::SkipEmptyParts)[1].split(QString(":"), QString::SkipEmptyParts)[1].toInt());
|
|
||||||
}
|
|
||||||
else if (qstr.split(QString(" = "), QString::SkipEmptyParts)[0] == QString("TITLE"))
|
|
||||||
value = qstr.split(QString(" = "), QString::SkipEmptyParts)[1].trimmed();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
key = QString("qmmp_album");
|
|
||||||
setData(source, key, value_album);
|
|
||||||
key = QString("qmmp_artist");
|
|
||||||
setData(source, key, value_artist);
|
|
||||||
key = QString("qmmp_progress");
|
|
||||||
setData(source, key, value_progress);
|
|
||||||
key = QString("qmmp_duration");
|
|
||||||
setData(source, key, value_duration);
|
|
||||||
key = QString("qmmp_title");
|
|
||||||
setData(source, key, value);
|
|
||||||
// amarok
|
// amarok
|
||||||
qoutput = QString("");
|
value = getPlayerInfo(QString("amarok"));
|
||||||
value = QString("N\\A");
|
|
||||||
value_album = QString("N\\A");
|
|
||||||
value_artist = QString("N\\A");
|
|
||||||
value_progress = QString("0");
|
|
||||||
value_duration = QString("0");
|
|
||||||
player.start("qdbus org.kde.amarok /Player GetMetadata");
|
|
||||||
player.waitForFinished(-1);
|
|
||||||
qoutput = QTextCodec::codecForMib(106)->toUnicode(player.readAllStandardOutput());
|
|
||||||
for (int i=0; i<qoutput.split(QString("\n"), QString::SkipEmptyParts).count(); i++) {
|
|
||||||
qstr = qoutput.split(QString("\n"), QString::SkipEmptyParts)[i];
|
|
||||||
if (qstr.split(QString(": "), QString::SkipEmptyParts).count() > 1) {
|
|
||||||
if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("album"))
|
|
||||||
value_album = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
|
||||||
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("artist"))
|
|
||||||
value_artist = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
|
||||||
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("time"))
|
|
||||||
value_duration = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
|
||||||
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("title"))
|
|
||||||
value = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
player.start("qdbus org.kde.amarok /Player PositionGet");
|
|
||||||
player.waitForFinished(-1);
|
|
||||||
qoutput = player.readAllStandardOutput();
|
|
||||||
for (int i=0; i<qoutput.split(QString("\n"), QString::SkipEmptyParts).count(); i++) {
|
|
||||||
qstr = qoutput.split(QString("\n"), QString::SkipEmptyParts)[i];
|
|
||||||
int time = qstr.toInt() / 1000;
|
|
||||||
value_progress = QString::number(time);
|
|
||||||
}
|
|
||||||
key = QString("amarok_album");
|
key = QString("amarok_album");
|
||||||
setData(source, key, value_album);
|
setData(source, key, value[0]);
|
||||||
key = QString("amarok_artist");
|
key = QString("amarok_artist");
|
||||||
setData(source, key, value_artist);
|
setData(source, key, value[1]);
|
||||||
key = QString("amarok_progress");
|
key = QString("amarok_progress");
|
||||||
setData(source, key, value_progress);
|
setData(source, key, value[2]);
|
||||||
key = QString("amarok_duration");
|
key = QString("amarok_duration");
|
||||||
setData(source, key, value_duration);
|
setData(source, key, value[3]);
|
||||||
key = QString("amarok_title");
|
key = QString("amarok_title");
|
||||||
setData(source, key, value);
|
setData(source, key, value[4]);
|
||||||
// mpd
|
// mpd
|
||||||
value = QString("N\\A");
|
value = getPlayerInfo(QString("mpd"),
|
||||||
value_album = QString("N\\A");
|
configuration[QString("MPDADDRESS")],
|
||||||
value_artist = QString("N\\A");
|
configuration[QString("MPDPORT")]);
|
||||||
value_progress = QString("0");
|
|
||||||
value_duration = QString("0");
|
|
||||||
char commandStr[512];
|
|
||||||
sprintf(commandStr, "bash -c \"echo 'currentsong\nstatus\nclose' | curl --connect-timeout 1 -fsm 3 telnet://%s:%s 2> /dev/null\"", \
|
|
||||||
mpdAddress.toUtf8().data(), mpdPort.toUtf8().data());
|
|
||||||
qoutput = QString("");
|
|
||||||
player.start(QString(commandStr));
|
|
||||||
player.waitForFinished(-1);
|
|
||||||
qoutput = QTextCodec::codecForMib(106)->toUnicode(player.readAllStandardOutput());
|
|
||||||
for (int i=0; i<qoutput.split(QString("\n"), QString::SkipEmptyParts).count(); i++) {
|
|
||||||
qstr = qoutput.split(QString("\n"), QString::SkipEmptyParts)[i];
|
|
||||||
if (qstr.split(QString(": "), QString::SkipEmptyParts).count() > 1) {
|
|
||||||
if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("Album"))
|
|
||||||
value_album = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
|
||||||
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("Artist"))
|
|
||||||
value_artist = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
|
||||||
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("time")) {
|
|
||||||
value_duration = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed().split(QString(":"))[0];
|
|
||||||
value_progress = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed().split(QString(":"))[1];
|
|
||||||
}
|
|
||||||
else if (qstr.split(QString(": "), QString::SkipEmptyParts)[0] == QString("Title"))
|
|
||||||
value = qstr.split(QString(": "), QString::SkipEmptyParts)[1].trimmed();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
key = QString("mpd_album");
|
key = QString("mpd_album");
|
||||||
setData(source, key, value_album);
|
setData(source, key, value[0]);
|
||||||
key = QString("mpd_artist");
|
key = QString("mpd_artist");
|
||||||
setData(source, key, value_artist);
|
setData(source, key, value[1]);
|
||||||
key = QString("mpd_progress");
|
key = QString("mpd_progress");
|
||||||
setData(source, key, value_progress);
|
setData(source, key, value[2]);
|
||||||
key = QString("mpd_duration");
|
key = QString("mpd_duration");
|
||||||
setData(source, key, value_duration);
|
setData(source, key, value[3]);
|
||||||
key = QString("mpd_title");
|
key = QString("mpd_title");
|
||||||
setData(source, key, value);
|
setData(source, key, value[4]);
|
||||||
|
// qmmp
|
||||||
|
value = getPlayerInfo(QString("qmmp"));
|
||||||
|
key = QString("qmmp_album");
|
||||||
|
setData(source, key, value[0]);
|
||||||
|
key = QString("qmmp_artist");
|
||||||
|
setData(source, key, value[1]);
|
||||||
|
key = QString("qmmp_progress");
|
||||||
|
setData(source, key, value[2]);
|
||||||
|
key = QString("qmmp_duration");
|
||||||
|
setData(source, key, value[3]);
|
||||||
|
key = QString("qmmp_title");
|
||||||
|
setData(source, key, value[4]);
|
||||||
}
|
}
|
||||||
else if (source == QString("custom")) {
|
else if (source == QString("ps")) {
|
||||||
QProcess custom;
|
QStringList value = getPsStats();
|
||||||
custom.start(QString("bash -c \"") + QString(customCommand) + QString("\""));
|
key = QString("psCount");
|
||||||
custom.waitForFinished(-1);
|
setData(source, key, value[0].toInt());
|
||||||
value = QTextCodec::codecForMib(106)->toUnicode(custom.readAllStandardOutput()).trimmed();
|
key = QString("ps");
|
||||||
key = QString("custom");
|
setData(source, key, value[1]);
|
||||||
setData(source, key, value);
|
key = QString("psTotal");
|
||||||
|
setData(source, key, value[2].toInt());
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
K_EXPORT_PLASMA_DATAENGINE(extsysmon, ExtendedSysMon)
|
K_EXPORT_PLASMA_DATAENGINE(extsysmon, ExtendedSysMon)
|
||||||
|
|
||||||
#include "extsysmon.moc"
|
#include "extsysmon.moc"
|
||||||
|
@ -26,18 +26,31 @@ class ExtendedSysMon : public Plasma::DataEngine
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
ExtendedSysMon(QObject *parent, const QVariantList &args);
|
ExtendedSysMon(QObject *parent, const QVariantList &args);
|
||||||
|
// update functions
|
||||||
|
QString getCustomCmd(const QString cmd);
|
||||||
|
float getGpu(const QString device);
|
||||||
|
float getGpuTemp(const QString device);
|
||||||
|
float getHddTemp(const QString device);
|
||||||
|
QStringList getPlayerInfo(const QString playerName,
|
||||||
|
const QString mpdAddress = 0,
|
||||||
|
const QString mpdPort = 0);
|
||||||
|
QStringList getPsStats();
|
||||||
|
int getUpgradeInfo(const QString pkgCommand,
|
||||||
|
const int pkgNull = 0);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool sourceRequestEvent(const QString &name);
|
bool sourceRequestEvent(const QString &name);
|
||||||
bool updateSourceEvent(const QString &source);
|
bool updateSourceEvent(const QString &source);
|
||||||
bool readConfiguration();
|
|
||||||
QStringList sources() const;
|
QStringList sources() const;
|
||||||
// main configuration
|
|
||||||
QStringList hddDev;
|
private:
|
||||||
QString gpuDev;
|
// configuration
|
||||||
QString mpdAddress;
|
QMap<QString, QString> configuration;
|
||||||
QString mpdPort;
|
// reread configuration
|
||||||
QString customCommand;
|
QString getAllHdd();
|
||||||
|
QString getAutoGpu();
|
||||||
|
void readConfiguration();
|
||||||
|
QMap<QString, QString> updateConfiguration(const QMap<QString, QString> rawConfig);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* EXTSYSMON_H */
|
#endif /* EXTSYSMON_H */
|
||||||
|
@ -6,10 +6,7 @@ message (STATUS "Subproject ${SUBPROJECT}")
|
|||||||
|
|
||||||
# find required libaries
|
# find required libaries
|
||||||
find_package (KDE4 REQUIRED)
|
find_package (KDE4 REQUIRED)
|
||||||
include (KDE4Defaults)
|
add_definitions (${KDE4_DEFINITIONS})
|
||||||
|
|
||||||
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
||||||
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/../)
|
|
||||||
|
|
||||||
add_subdirectory (po)
|
add_subdirectory (po)
|
||||||
|
|
||||||
|
@ -27,8 +27,10 @@ class Config():
|
|||||||
self.applet = applet
|
self.applet = applet
|
||||||
self.config = self.applet.config()
|
self.config = self.applet.config()
|
||||||
|
|
||||||
|
|
||||||
def get(self, key, default = ''):
|
def get(self, key, default = ''):
|
||||||
return self.config.readEntry(key, default).toString()
|
return self.config.readEntry(key, default).toString()
|
||||||
|
|
||||||
|
|
||||||
def set(self, key, value):
|
def set(self, key, value):
|
||||||
self.config.writeEntry(key, value)
|
self.config.writeEntry(key, value)
|
||||||
|
@ -21,16 +21,17 @@ from PyQt4.QtCore import *
|
|||||||
from PyQt4.QtGui import *
|
from PyQt4.QtGui import *
|
||||||
from PyKDE4.kdecore import *
|
from PyKDE4.kdecore import *
|
||||||
from PyKDE4.kdeui import *
|
from PyKDE4.kdeui import *
|
||||||
import commands, os
|
import commands
|
||||||
import config
|
import config
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ConfigDefinition:
|
class ConfigDefinition:
|
||||||
def __init__(self, parent, configpage):
|
def __init__(self, parent, configpage, defaults):
|
||||||
"""class definition"""
|
"""class definition"""
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.configpage = configpage
|
self.configpage = configpage
|
||||||
|
self.defaults = defaults
|
||||||
|
|
||||||
|
|
||||||
def configAccepted(self):
|
def configAccepted(self):
|
||||||
@ -38,167 +39,88 @@ class ConfigDefinition:
|
|||||||
settings = config.Config(self.parent)
|
settings = config.Config(self.parent)
|
||||||
|
|
||||||
# update local variables
|
# update local variables
|
||||||
self.parent.interval = self.configpage.ui.spinBox_interval.value()
|
settings.set('interval', self.configpage.ui.spinBox_interval.value())
|
||||||
settings.set('interval', self.parent.interval)
|
settings.set('font_family', str(self.configpage.ui.fontComboBox.currentFont().family()))
|
||||||
self.parent.font_family = str(self.configpage.ui.fontComboBox.currentFont().family())
|
settings.set('font_size', self.configpage.ui.spinBox_fontSize.value())
|
||||||
settings.set('font_family', self.parent.font_family)
|
settings.set('font_color', str(self.configpage.ui.kcolorcombo.color().name()))
|
||||||
self.parent.font_size = self.configpage.ui.spinBox_fontSize.value()
|
settings.set('font_style', str(self.configpage.ui.comboBox_style.currentText()))
|
||||||
settings.set('font_size', self.parent.font_size)
|
settings.set('font_weight', self.configpage.ui.spinBox_weight.value())
|
||||||
self.parent.font_color = str(self.configpage.ui.kcolorcombo.color().name())
|
|
||||||
settings.set('font_color', self.parent.font_color)
|
|
||||||
if (self.configpage.ui.comboBox_style.currentIndex() == 0):
|
|
||||||
self.parent.font_style = 'normal'
|
|
||||||
else:
|
|
||||||
self.parent.font_style = 'italic'
|
|
||||||
settings.set('font_style', self.parent.font_style)
|
|
||||||
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', str(self.configpage.ui.lineEdit_timeFormat.text()))
|
||||||
settings.set('custom_time', self.parent.custom_time)
|
settings.set('custom_uptime', str(self.configpage.ui.lineEdit_uptimeFormat.text()))
|
||||||
self.parent.custom_uptime = str(self.configpage.ui.lineEdit_uptimeFormat.text())
|
settings.set('temp_units', str(self.configpage.ui.comboBox_tempUnits.currentText()))
|
||||||
settings.set('custom_uptime', self.parent.custom_uptime)
|
item = QStringList()
|
||||||
# temp and mount below
|
for i in range(self.configpage.ui.listWidget_tempDevice.count()):
|
||||||
self.parent.hddNames = []
|
item.append(self.configpage.ui.listWidget_tempDevice.item(i).text())
|
||||||
self.parent.hdd = {}
|
settings.set('temp_device', str(item.join(QString('@@'))))
|
||||||
|
item = QStringList()
|
||||||
|
for i in range(self.configpage.ui.listWidget_mount.count()):
|
||||||
|
item.append(self.configpage.ui.listWidget_mount.item(i).text())
|
||||||
|
settings.set('mount', str(item.join(QString('@@'))))
|
||||||
|
item = QStringList()
|
||||||
for i in range(self.configpage.ui.listWidget_hddDevice.count()):
|
for i in range(self.configpage.ui.listWidget_hddDevice.count()):
|
||||||
item = self.configpage.ui.listWidget_hddDevice.item(i).text()
|
item.append(self.configpage.ui.listWidget_hddDevice.item(i).text())
|
||||||
self.parent.hddNames.append(str(item))
|
settings.set('hdd', str(item.join(QString('@@'))))
|
||||||
self.parent.hdd[str(item)] =" 0.0"
|
item = QStringList()
|
||||||
settings.set('hdd', '@@'.join(self.parent.hddNames))
|
for i in range(self.configpage.ui.listWidget_hddSpeedDevice.count()):
|
||||||
self.parent.netdir = str(self.configpage.ui.lineEdit_netdir.text())
|
item.append(self.configpage.ui.listWidget_hddSpeedDevice.item(i).text())
|
||||||
settings.set('netdir', self.parent.netdir)
|
settings.set('disk', str(item.join(QString('@@'))))
|
||||||
self.parent.netdevBool = str(self.configpage.ui.checkBox_netdev.checkState())
|
settings.set('netdir', str(self.configpage.ui.lineEdit_netdir.text()))
|
||||||
settings.set('netdevBool', self.parent.netdevBool)
|
settings.set('netdevBool', self.configpage.ui.checkBox_netdev.checkState())
|
||||||
self.parent.custom_netdev = str(self.configpage.ui.comboBox_netdev.currentText())
|
settings.set('custom_netdev', str(self.configpage.ui.comboBox_netdev.currentText()))
|
||||||
settings.set('custom_netdev', self.parent.custom_netdev)
|
settings.set('battery_device', str(self.configpage.ui.lineEdit_batdev.text()))
|
||||||
self.parent.battery_device = str(self.configpage.ui.lineEdit_batdev.text())
|
settings.set('ac_device', str(self.configpage.ui.lineEdit_acdev.text()))
|
||||||
settings.set('battery_device', self.parent.battery_device)
|
settings.set('ac_online', str(self.configpage.ui.lineEdit_acOnline.text()))
|
||||||
self.parent.ac_device = str(self.configpage.ui.lineEdit_acdev.text())
|
settings.set('ac_offline', str(self.configpage.ui.lineEdit_acOffline.text()))
|
||||||
settings.set('ac_device', self.parent.ac_device)
|
settings.set('player_name', str(self.configpage.ui.comboBox_playerSelect.currentText()))
|
||||||
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.configpage.ui.spinBox_tooltipNum.value())
|
||||||
settings.set('tooltip_num', self.parent.tooltipNum)
|
|
||||||
for label in ['cpu', 'cpuclock', 'mem', 'swap', 'down', 'up']:
|
for label in ['cpu', 'cpuclock', 'mem', 'swap', 'down', 'up']:
|
||||||
exec ('self.parent.tooltipColors["' + label + '"] = str(self.configpage.kcolorcombo_' + label + '.color().name())')
|
settings.set(self.defaults['confColor'][label], str(self.configpage.kcolorcombos[label].color().name()))
|
||||||
exec ('settings.set("' + label + '_color", self.parent.tooltipColors["' + label + '"])')
|
|
||||||
|
|
||||||
dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf"
|
dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf"
|
||||||
try:
|
try:
|
||||||
with open(dataengineConfig, 'w') as deConfigFile:
|
with open(dataengineConfig, 'w') as deConfigFile:
|
||||||
|
item = QStringList()
|
||||||
|
for i in range(self.configpage.ui.listWidget_customCommand.count()):
|
||||||
|
item.append(self.configpage.ui.listWidget_customCommand.item(i).text())
|
||||||
|
deConfigFile.write("CUSTOM=" + str(item.join(QString('@@'))) + "\n")
|
||||||
deConfigFile.write("GPUDEV=" + str(self.configpage.ui.comboBox_gpudev.currentText()) + "\n")
|
deConfigFile.write("GPUDEV=" + str(self.configpage.ui.comboBox_gpudev.currentText()) + "\n")
|
||||||
deConfigFile.write("HDDDEV=" + str(self.configpage.ui.comboBox_hdddev.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("MPDADDRESS=" + str(self.configpage.ui.lineEdit_mpdaddress.text()) + "\n")
|
||||||
deConfigFile.write("MPDPORT=" + str(self.configpage.ui.spinBox_mpdport.value()) + "\n")
|
deConfigFile.write("MPDPORT=" + str(self.configpage.ui.spinBox_mpdport.value()) + "\n")
|
||||||
deConfigFile.write("CUSTOM=" + str(self.configpage.ui.lineEdit_customCommand.text()) + "\n")
|
item = QStringList()
|
||||||
|
for i in range(self.configpage.ui.listWidget_pkgCommand.count()):
|
||||||
|
item.append(self.configpage.ui.listWidget_pkgCommand.item(i).text())
|
||||||
|
pkgCmd = []
|
||||||
|
pkgNull = []
|
||||||
|
for command in item:
|
||||||
|
try:
|
||||||
|
pkgCmd.append(str(command.split(QString(":"))[0]))
|
||||||
|
pkgNull.append(str(command.split(QString(":"))[1]))
|
||||||
|
except:
|
||||||
|
pkgCmd.append(str(command))
|
||||||
|
pkgNull.append("0")
|
||||||
|
deConfigFile.write("PKGCMD=" + ','.join(pkgCmd) + "\n")
|
||||||
|
deConfigFile.write("PKGNULL=" + ','.join(pkgNull) + "\n")
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# disconnecting from source and clear layout
|
# disconnecting from source and clear layout
|
||||||
if (self.parent.uptimeBool > 0):
|
self.parent.disconnectFromSource()
|
||||||
self.parent.systemmonitor.disconnectSource("system/uptime", self.parent)
|
|
||||||
self.parent.label_uptime.setText('')
|
|
||||||
self.parent.layout.removeItem(self.parent.label_uptime)
|
|
||||||
if (self.parent.cpuBool > 0):
|
|
||||||
self.parent.systemmonitor.disconnectSource("cpu/system/TotalLoad", self.parent)
|
|
||||||
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)
|
|
||||||
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):
|
|
||||||
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('')
|
|
||||||
self.parent.layout.removeItem(self.parent.label_gpu)
|
|
||||||
if (self.parent.gputempBool > 0):
|
|
||||||
self.parent.extsysmon.disconnectSource("gputemp", self.parent)
|
|
||||||
self.parent.label_gputemp.setText('')
|
|
||||||
self.parent.layout.removeItem(self.parent.label_gputemp)
|
|
||||||
if (self.parent.memBool > 0):
|
|
||||||
self.parent.systemmonitor.disconnectSource("mem/physical/application", 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)
|
|
||||||
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 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('')
|
|
||||||
self.parent.layout.removeItem(self.parent.label_hddtemp)
|
|
||||||
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_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)
|
|
||||||
if (self.parent.playerBool > 0):
|
|
||||||
self.parent.extsysmon.disconnectSource("player", self.parent)
|
|
||||||
self.parent.label_player.setText('')
|
|
||||||
self.parent.layout.removeItem(self.parent.label_player)
|
|
||||||
if (self.parent.timeBool > 0):
|
|
||||||
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 = "---------------"
|
labelOrder = "---------------"
|
||||||
|
for label in self.defaults['order'].keys():
|
||||||
for label in self.parent.dict_orders.keys():
|
if (self.configpage.checkboxes[self.defaults['order'][label]].checkState() > 0):
|
||||||
exec ('self.parent.' + self.parent.dict_orders[label] + 'Bool = ' + str(self.configpage.checkboxes[self.parent.dict_orders[label]].checkState()))
|
pos = self.configpage.sliders[self.defaults['order'][label]].value() - 1
|
||||||
if (self.configpage.checkboxes[self.parent.dict_orders[label]].checkState() > 0):
|
labelOrder = labelOrder[:pos] + label + labelOrder[pos+1:]
|
||||||
pos = self.configpage.sliders[self.parent.dict_orders[label]].value() - 1
|
settings.set(self.defaults['confFormat'][self.defaults['order'][label]], str(self.configpage.lineedits[self.defaults['order'][label]].text()))
|
||||||
self.parent.label_order = self.parent.label_order[:pos] + label + self.parent.label_order[pos+1:]
|
settings.set(self.defaults['confBool'][self.defaults['order'][label]], self.configpage.checkboxes[self.defaults['order'][label]].checkState())
|
||||||
if (self.parent.dict_orders[label] == 'net'):
|
labelOrder = ''.join(labelOrder.split('-'))
|
||||||
exec ('self.parent.' + self.parent.dict_orders[label] + 'NonFormat = str(self.configpage.lineedits[self.parent.dict_orders[label]].text())')
|
settings.set('label_order', labelOrder)
|
||||||
exec ('settings.set("' + self.parent.dict_orders[label] + 'NonFormat", self.parent.' + self.parent.dict_orders[label] + 'NonFormat)')
|
|
||||||
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)')
|
|
||||||
self.parent.label_order = ''.join(self.parent.label_order.split('-'))
|
|
||||||
settings.set('label_order', self.parent.label_order)
|
|
||||||
|
|
||||||
# reinitializate
|
# reinitializate
|
||||||
self.parent.reinit.reinit(confAccept=True)
|
self.parent.reInit()
|
||||||
|
|
||||||
|
|
||||||
def createConfigurationInterface(self, parent):
|
def createConfigurationInterface(self, parent):
|
||||||
@ -219,6 +141,8 @@ class ConfigDefinition:
|
|||||||
|
|
||||||
self.configpage.ui.lineEdit_timeFormat.setText(str(settings.get('custom_time', '$hh:$mm')))
|
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')))
|
self.configpage.ui.lineEdit_uptimeFormat.setText(str(settings.get('custom_uptime', '$ds,$hs,$ms')))
|
||||||
|
index = self.configpage.ui.comboBox_tempUnits.findText(str(settings.get('temp_units', "Celsius")))
|
||||||
|
self.configpage.ui.comboBox_tempUnits.setCurrentIndex(index)
|
||||||
commandOut = commands.getoutput("sensors")
|
commandOut = commands.getoutput("sensors")
|
||||||
for item in commandOut.split("\n\n"):
|
for item in commandOut.split("\n\n"):
|
||||||
for device in item.split("\n"):
|
for device in item.split("\n"):
|
||||||
@ -251,6 +175,12 @@ class ConfigDefinition:
|
|||||||
self.configpage.ui.listWidget_hddDevice.clear()
|
self.configpage.ui.listWidget_hddDevice.clear()
|
||||||
for item in str(settings.get('hdd', '/dev/sda')).split('@@'):
|
for item in str(settings.get('hdd', '/dev/sda')).split('@@'):
|
||||||
self.configpage.ui.listWidget_hddDevice.addItem(item)
|
self.configpage.ui.listWidget_hddDevice.addItem(item)
|
||||||
|
self.configpage.ui.comboBox_hddSpeedDevice.clear()
|
||||||
|
for item in self.defaults['disk']:
|
||||||
|
self.configpage.ui.comboBox_hddSpeedDevice.addItem(item)
|
||||||
|
self.configpage.ui.listWidget_hddSpeedDevice.clear()
|
||||||
|
for item in str(settings.get('disk', 'disk/sda_(8:0)')).split('@@'):
|
||||||
|
self.configpage.ui.listWidget_hddSpeedDevice.addItem(item)
|
||||||
self.configpage.ui.lineEdit_netdir.setText(str(settings.get('netdir', '/sys/class/net')))
|
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])
|
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):
|
for item in QDir.entryList(QDir(str(settings.get('netdir', '/sys/class/net'))), QDir.Dirs | QDir.NoDotAndDotDot):
|
||||||
@ -259,7 +189,10 @@ class ConfigDefinition:
|
|||||||
self.configpage.ui.comboBox_netdev.setCurrentIndex(index)
|
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_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.lineEdit_acdev.setText(str(settings.get('ac_device', '/sys/class/power_supply/AC/online')))
|
||||||
self.configpage.ui.comboBox_playerSelect.setCurrentIndex(settings.get('player_name', 0).toInt()[0])
|
self.configpage.ui.lineEdit_acOnline.setText(str(settings.get('ac_online', '(*)')))
|
||||||
|
self.configpage.ui.lineEdit_acOffline.setText(str(settings.get('ac_offline', '( )')))
|
||||||
|
index = self.configpage.ui.comboBox_playerSelect.findText(str(settings.get('player_name', "amarok")))
|
||||||
|
self.configpage.ui.comboBox_playerSelect.setCurrentIndex(index)
|
||||||
|
|
||||||
self.configpage.ui.spinBox_tooltipNum.setValue(settings.get('tooltip_num', 100).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_cpu.setColor(QColor(str(settings.get('cpu_color', '#ff0000'))))
|
||||||
@ -269,8 +202,8 @@ class ConfigDefinition:
|
|||||||
self.configpage.ui.kcolorcombo_down.setColor(QColor(str(settings.get('down_color', '#00ffff'))))
|
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'))))
|
self.configpage.ui.kcolorcombo_up.setColor(QColor(str(settings.get('up_color', '#ff00ff'))))
|
||||||
|
|
||||||
deSettings = {'GPUDEV':'auto', 'HDDDEV':'all', 'MPDADDRESS':'localhost',
|
deSettings = {'CUSTOM':'wget -qO- http://ifconfig.me/ip', 'GPUDEV':'auto', 'HDDDEV':'all',
|
||||||
'MPDPORT':'6600', 'CUSTOM':'wget -qO- http://ifconfig.me/ip'}
|
'MPDADDRESS':'localhost', 'MPDPORT':'6600', 'PKGCMD':'pacman -Qu', 'PKGNULL':'0'}
|
||||||
dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf"
|
dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf"
|
||||||
try:
|
try:
|
||||||
with open(dataengineConfig, 'r') as deConfigFile:
|
with open(dataengineConfig, 'r') as deConfigFile:
|
||||||
@ -279,6 +212,8 @@ class ConfigDefinition:
|
|||||||
deSettings[line.split('=')[0]] = line.split('=')[1][:-1]
|
deSettings[line.split('=')[0]] = line.split('=')[1][:-1]
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
for item in deSettings['CUSTOM'].split('@@'):
|
||||||
|
self.configpage.ui.listWidget_customCommand.addItem(item)
|
||||||
index = self.configpage.ui.comboBox_gpudev.findText(deSettings['GPUDEV'])
|
index = self.configpage.ui.comboBox_gpudev.findText(deSettings['GPUDEV'])
|
||||||
self.configpage.ui.comboBox_gpudev.setCurrentIndex(index)
|
self.configpage.ui.comboBox_gpudev.setCurrentIndex(index)
|
||||||
self.configpage.ui.comboBox_hdddev.addItem("all")
|
self.configpage.ui.comboBox_hdddev.addItem("all")
|
||||||
@ -293,17 +228,23 @@ class ConfigDefinition:
|
|||||||
self.configpage.ui.lineEdit_mpdaddress.setText(deSettings['MPDADDRESS'])
|
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.spinBox_mpdport.setValue(int(deSettings['MPDPORT']))
|
self.configpage.ui.spinBox_mpdport.setValue(int(deSettings['MPDPORT']))
|
||||||
self.configpage.ui.lineEdit_customCommand.setText(deSettings['CUSTOM'])
|
self.configpage.ui.listWidget_pkgCommand.clear()
|
||||||
|
for i in range(len(deSettings['PKGCMD'].split(','))):
|
||||||
|
try:
|
||||||
|
num = deSettings['PKGNULL'].split(',')[i]
|
||||||
|
except:
|
||||||
|
num = "0"
|
||||||
|
self.configpage.ui.listWidget_pkgCommand.addItem(deSettings['PKGCMD'].split(',')[i] + ':' + num)
|
||||||
|
|
||||||
for label in self.parent.dict_orders.keys():
|
labelOrder = str(settings.get('label_order', '1345'))
|
||||||
exec ('bool = self.parent.' + self.parent.dict_orders[label] + 'Bool')
|
for label in self.defaults['order'].keys():
|
||||||
self.configpage.checkboxes[self.parent.dict_orders[label]].setCheckState(bool)
|
bool = settings.get(self.defaults['confBool'][self.defaults['order'][label]],
|
||||||
|
self.defaults['bool'][self.defaults['order'][label]]).toInt()[0]
|
||||||
|
self.configpage.checkboxes[self.defaults['order'][label]].setCheckState(bool)
|
||||||
if (bool > 0):
|
if (bool > 0):
|
||||||
self.configpage.sliders[self.parent.dict_orders[label]].setValue(self.parent.label_order.find(label)+1)
|
self.configpage.sliders[self.defaults['order'][label]].setValue(labelOrder.find(label) + 1)
|
||||||
if (self.parent.dict_orders[label] == 'net'):
|
self.configpage.lineedits[self.defaults['order'][label]].setText(str(settings.get(self.defaults['confFormat'][self.defaults['order'][label]],
|
||||||
self.configpage.lineedits[self.parent.dict_orders[label]].setText(str(settings.get(self.parent.dict_orders[label] + 'NonFormat', self.parent.dict_defFormat[self.parent.dict_orders[label]])))
|
self.defaults['format'][self.defaults['order'][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]])))
|
|
||||||
|
|
||||||
# add config page
|
# add config page
|
||||||
page = parent.addPage(self.configpage, i18n(self.parent.name()))
|
page = parent.addPage(self.configpage, i18n(self.parent.name()))
|
||||||
|
@ -21,7 +21,6 @@ from PyQt4.QtCore import *
|
|||||||
from PyQt4.QtGui import *
|
from PyQt4.QtGui import *
|
||||||
from PyKDE4.plasma import *
|
from PyKDE4.plasma import *
|
||||||
from PyQt4 import uic
|
from PyQt4 import uic
|
||||||
from PyKDE4 import plasmascript
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -31,38 +30,51 @@ class ConfigWindow(QWidget):
|
|||||||
QWidget.__init__(self)
|
QWidget.__init__(self)
|
||||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'configwindow.ui'), self)
|
self.ui = uic.loadUi(parent.package().filePath('ui', 'configwindow.ui'), self)
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
self.kcolorcombos = {'cpu':self.ui.kcolorcombo_cpu,
|
||||||
|
'cpuclock':self.ui.kcolorcombo_cpuclock, 'down':self.ui.kcolorcombo_down,
|
||||||
|
'mem':self.ui.kcolorcombo_mem, 'swap':self.ui.kcolorcombo_swap,
|
||||||
|
'up':self.ui.kcolorcombo_up}
|
||||||
self.checkboxes = {'bat':self.ui.checkBox_bat, 'cpu':self.ui.checkBox_cpu,
|
self.checkboxes = {'bat':self.ui.checkBox_bat, 'cpu':self.ui.checkBox_cpu,
|
||||||
'cpuclock':self.ui.checkBox_cpuclock, 'gpu':self.ui.checkBox_gpu,
|
'cpuclock':self.ui.checkBox_cpuclock, 'custom':self.ui.checkBox_custom,
|
||||||
|
'disk':self.ui.checkBox_hddSpeed, 'gpu':self.ui.checkBox_gpu,
|
||||||
'gputemp':self.ui.checkBox_gpuTemp, 'hdd':self.ui.checkBox_hdd,
|
'gputemp':self.ui.checkBox_gpuTemp, 'hdd':self.ui.checkBox_hdd,
|
||||||
'hddtemp':self.ui.checkBox_hddTemp, 'mem':self.ui.checkBox_mem,
|
'hddtemp':self.ui.checkBox_hddTemp, 'mem':self.ui.checkBox_mem,
|
||||||
'net':self.ui.checkBox_net, 'swap':self.ui.checkBox_swap,
|
'net':self.ui.checkBox_net, 'swap':self.ui.checkBox_swap,
|
||||||
'temp':self.ui.checkBox_temp, 'uptime':self.ui.checkBox_uptime,
|
'temp':self.ui.checkBox_temp, 'uptime':self.ui.checkBox_uptime,
|
||||||
'player':self.ui.checkBox_player, 'time':self.ui.checkBox_time,
|
'pkg':self.ui.checkBox_pkg, 'player':self.ui.checkBox_player,
|
||||||
'custom':self.ui.checkBox_custom}
|
'ps':self.ui.checkBox_ps, 'time':self.ui.checkBox_time}
|
||||||
self.lineedits = {'bat':self.ui.lineEdit_bat, 'cpu':self.ui.lineEdit_cpu,
|
self.lineedits = {'bat':self.ui.lineEdit_bat, 'cpu':self.ui.lineEdit_cpu,
|
||||||
'cpuclock':self.ui.lineEdit_cpuclock, 'gpu':self.ui.lineEdit_gpu,
|
'cpuclock':self.ui.lineEdit_cpuclock, 'custom':self.ui.lineEdit_custom,
|
||||||
|
'disk':self.ui.lineEdit_hddSpeed, 'gpu':self.ui.lineEdit_gpu,
|
||||||
'gputemp':self.ui.lineEdit_gpuTemp, 'hdd':self.ui.lineEdit_hdd,
|
'gputemp':self.ui.lineEdit_gpuTemp, 'hdd':self.ui.lineEdit_hdd,
|
||||||
'hddtemp':self.ui.lineEdit_hddTemp, 'mem':self.ui.lineEdit_mem,
|
'hddtemp':self.ui.lineEdit_hddTemp, 'mem':self.ui.lineEdit_mem,
|
||||||
'net':self.ui.lineEdit_net, 'swap':self.ui.lineEdit_swap,
|
'net':self.ui.lineEdit_net, 'swap':self.ui.lineEdit_swap,
|
||||||
'temp':self.ui.lineEdit_temp, 'uptime':self.ui.lineEdit_uptime,
|
'temp':self.ui.lineEdit_temp, 'uptime':self.ui.lineEdit_uptime,
|
||||||
'player':self.ui.lineEdit_player, 'time':self.ui.lineEdit_time,
|
'pkg':self.ui.lineEdit_pkg, 'player':self.ui.lineEdit_player,
|
||||||
'custom':self.ui.lineEdit_custom}
|
'ps':self.ui.lineEdit_ps, 'time':self.ui.lineEdit_time}
|
||||||
self.sliders = {'bat':self.ui.slider_bat, 'cpu':self.ui.slider_cpu,
|
self.sliders = {'bat':self.ui.slider_bat, 'cpu':self.ui.slider_cpu,
|
||||||
'cpuclock':self.ui.slider_cpuclock, 'gpu':self.ui.slider_gpu,
|
'cpuclock':self.ui.slider_cpuclock, 'custom':self.ui.slider_custom,
|
||||||
|
'disk':self.ui.slider_hddSpeed, 'gpu':self.ui.slider_gpu,
|
||||||
'gputemp':self.ui.slider_gpuTemp, 'hdd':self.ui.slider_hdd,
|
'gputemp':self.ui.slider_gpuTemp, 'hdd':self.ui.slider_hdd,
|
||||||
'hddtemp':self.ui.slider_hddTemp, 'mem':self.ui.slider_mem,
|
'hddtemp':self.ui.slider_hddTemp, 'mem':self.ui.slider_mem,
|
||||||
'net':self.ui.slider_net, 'swap':self.ui.slider_swap,
|
'net':self.ui.slider_net, 'swap':self.ui.slider_swap,
|
||||||
'temp':self.ui.slider_temp, 'uptime':self.ui.slider_uptime,
|
'temp':self.ui.slider_temp, 'uptime':self.ui.slider_uptime,
|
||||||
'player':self.ui.slider_player, 'time':self.ui.slider_time,
|
'pkg':self.ui.slider_pkg, 'player':self.ui.slider_player,
|
||||||
'custom':self.ui.slider_custom}
|
'ps':self.ui.slider_ps, 'time':self.ui.slider_time}
|
||||||
|
|
||||||
QObject.connect(self.ui.checkBox_netdev, SIGNAL("stateChanged(int)"), self.setNetdevEnabled)
|
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_hddDevice, SIGNAL("clicked()"), self.addHddDevice)
|
||||||
|
QObject.connect(self.ui.pushButton_hddSpeedDevice, SIGNAL("clicked()"), self.addHddSpeedDevice)
|
||||||
QObject.connect(self.ui.pushButton_mount, SIGNAL("clicked()"), self.addMount)
|
QObject.connect(self.ui.pushButton_mount, SIGNAL("clicked()"), self.addMount)
|
||||||
QObject.connect(self.ui.pushButton_tempDevice, SIGNAL("clicked()"), self.addTempDevice)
|
QObject.connect(self.ui.pushButton_tempDevice, SIGNAL("clicked()"), self.addTempDevice)
|
||||||
|
QObject.connect(self.ui.pushButton_customCommand, SIGNAL("clicked()"), self.addCustomCommand)
|
||||||
|
QObject.connect(self.ui.pushButton_pkgCommand, SIGNAL("clicked()"), self.addPkgCommand)
|
||||||
QObject.connect(self.ui.listWidget_hddDevice, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_hddDevice.openPersistentEditor)
|
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_mount, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_mount.openPersistentEditor)
|
||||||
QObject.connect(self.ui.listWidget_tempDevice, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_tempDevice.openPersistentEditor)
|
QObject.connect(self.ui.listWidget_tempDevice, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_tempDevice.openPersistentEditor)
|
||||||
|
QObject.connect(self.ui.listWidget_pkgCommand, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_pkgCommand.openPersistentEditor)
|
||||||
|
QObject.connect(self.ui.comboBox_pkgCommand, SIGNAL("currentIndexChanged(int)"), self.updatePkgNullValue)
|
||||||
|
QObject.connect(self.ui.comboBox_pkgCommand, SIGNAL("editTextChanged(QString)"), self.updatePkgNullValue)
|
||||||
for item in self.sliders.values():
|
for item in self.sliders.values():
|
||||||
QObject.connect(item, SIGNAL("valueChanged(int)"), self.setSlider)
|
QObject.connect(item, SIGNAL("valueChanged(int)"), self.setSlider)
|
||||||
for item in self.checkboxes.values():
|
for item in self.checkboxes.values():
|
||||||
@ -75,38 +87,76 @@ class ConfigWindow(QWidget):
|
|||||||
if (self.ui.listWidget_hddDevice.hasFocus() and
|
if (self.ui.listWidget_hddDevice.hasFocus() and
|
||||||
(self.ui.listWidget_hddDevice.currentRow() > -1)):
|
(self.ui.listWidget_hddDevice.currentRow() > -1)):
|
||||||
self.ui.listWidget_hddDevice.takeItem(self.ui.listWidget_hddDevice.currentRow())
|
self.ui.listWidget_hddDevice.takeItem(self.ui.listWidget_hddDevice.currentRow())
|
||||||
|
elif (self.ui.listWidget_hddSpeedDevice.hasFocus() and
|
||||||
|
(self.ui.listWidget_hddSpeedDevice.currentRow() > -1)):
|
||||||
|
self.ui.listWidget_hddSpeedDevice.takeItem(self.ui.listWidget_hddSpeedDevice.currentRow())
|
||||||
elif (self.ui.listWidget_mount.hasFocus() and
|
elif (self.ui.listWidget_mount.hasFocus() and
|
||||||
(self.ui.listWidget_mount.currentRow() > -1)):
|
(self.ui.listWidget_mount.currentRow() > -1)):
|
||||||
self.ui.listWidget_mount.takeItem(self.ui.listWidget_mount.currentRow())
|
self.ui.listWidget_mount.takeItem(self.ui.listWidget_mount.currentRow())
|
||||||
elif (self.ui.listWidget_tempDevice.hasFocus() and
|
elif (self.ui.listWidget_tempDevice.hasFocus() and
|
||||||
(self.ui.listWidget_tempDevice.currentRow() > -1)):
|
(self.ui.listWidget_tempDevice.currentRow() > -1)):
|
||||||
self.ui.listWidget_tempDevice.takeItem(self.ui.listWidget_tempDevice.currentRow())
|
self.ui.listWidget_tempDevice.takeItem(self.ui.listWidget_tempDevice.currentRow())
|
||||||
|
elif (self.ui.listWidget_customCommand.hasFocus() and
|
||||||
|
(self.ui.listWidget_customCommand.currentRow() > -1)):
|
||||||
|
self.ui.listWidget_customCommand.takeItem(self.ui.listWidget_customCommand.currentRow())
|
||||||
|
elif (self.ui.listWidget_pkgCommand.hasFocus() and
|
||||||
|
(self.ui.listWidget_pkgCommand.currentRow() > -1)):
|
||||||
|
self.ui.listWidget_pkgCommand.takeItem(self.ui.listWidget_pkgCommand.currentRow())
|
||||||
|
|
||||||
|
|
||||||
def addHddDevice(self):
|
def addHddDevice(self):
|
||||||
"""function to add mount points"""
|
"""function to add mount points"""
|
||||||
self.ui.listWidget_hddDevice.clearSelection()
|
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())
|
self.ui.listWidget_hddDevice.addItem(self.ui.comboBox_hddDevice.currentText())
|
||||||
|
|
||||||
|
|
||||||
|
def addHddSpeedDevice(self):
|
||||||
|
"""function to add disk device"""
|
||||||
|
self.ui.listWidget_hddSpeedDevice.clearSelection()
|
||||||
|
self.ui.listWidget_hddSpeedDevice.addItem(self.ui.comboBox_hddSpeedDevice.currentText())
|
||||||
|
|
||||||
|
|
||||||
def addMount(self):
|
def addMount(self):
|
||||||
"""function to add mount points"""
|
"""function to add mount points"""
|
||||||
self.ui.listWidget_mount.clearSelection()
|
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())
|
self.ui.listWidget_mount.addItem(self.ui.comboBox_mount.currentText())
|
||||||
|
|
||||||
|
|
||||||
def addTempDevice(self):
|
def addTempDevice(self):
|
||||||
"""function to add temperature device"""
|
"""function to add temperature device"""
|
||||||
self.ui.listWidget_tempDevice.clearSelection()
|
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())
|
self.ui.listWidget_tempDevice.addItem(self.ui.comboBox_tempDevice.currentText())
|
||||||
|
|
||||||
|
|
||||||
|
def addCustomCommand(self):
|
||||||
|
"""function to add custom command"""
|
||||||
|
self.ui.listWidget_customCommand.clearSelection()
|
||||||
|
self.ui.listWidget_customCommand.addItem(self.ui.lineEdit_customCommand.text())
|
||||||
|
|
||||||
|
|
||||||
|
def addPkgCommand(self):
|
||||||
|
"""function to add package manager command"""
|
||||||
|
self.ui.listWidget_pkgCommand.clearSelection()
|
||||||
|
self.ui.listWidget_pkgCommand.addItem(self.ui.comboBox_pkgCommand.currentText() +\
|
||||||
|
QString(":") + QString.number(self.ui.spinBox_pkgCommandNum.value()))
|
||||||
|
|
||||||
|
|
||||||
|
def updatePkgNullValue(self):
|
||||||
|
"""function to set default values to PKGNULL spinbox"""
|
||||||
|
if (self.ui.comboBox_pkgCommand.currentText().contains(QString("pacman -Qu"))):
|
||||||
|
self.ui.spinBox_pkgCommandNum.setValue(0)
|
||||||
|
elif (self.ui.comboBox_pkgCommand.currentText().contains(QString("apt-show-versions -u -b"))):
|
||||||
|
self.ui.spinBox_pkgCommandNum.setValue(0)
|
||||||
|
elif (self.ui.comboBox_pkgCommand.currentText().contains(QString("aptitude search '~U'"))):
|
||||||
|
self.ui.spinBox_pkgCommandNum.setValue(0)
|
||||||
|
elif (self.ui.comboBox_pkgCommand.currentText().contains(QString("yum list updates"))):
|
||||||
|
self.ui.spinBox_pkgCommandNum.setValue(3)
|
||||||
|
elif (self.ui.comboBox_pkgCommand.currentText().contains(QString("pkg_version -I -l '<'"))):
|
||||||
|
self.ui.spinBox_pkgCommandNum.setValue(0)
|
||||||
|
elif (self.ui.comboBox_pkgCommand.currentText().contains(QString("urpmq --auto-select"))):
|
||||||
|
self.ui.spinBox_pkgCommandNum.setValue(0)
|
||||||
|
|
||||||
|
|
||||||
def setNetdevEnabled(self):
|
def setNetdevEnabled(self):
|
||||||
"""function to set enabled netdev"""
|
"""function to set enabled netdev"""
|
||||||
if (self.ui.checkBox_netdev.checkState() == 0):
|
if (self.ui.checkBox_netdev.checkState() == 0):
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
from PyQt4.QtCore import *
|
from PyQt4.QtCore import *
|
||||||
from PyQt4.QtGui import *
|
from PyQt4.QtGui import *
|
||||||
from PyKDE4.plasma import Plasma
|
from PyKDE4.plasma import Plasma
|
||||||
from PyKDE4 import plasmascript
|
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
@ -36,260 +35,302 @@ class DataEngine:
|
|||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
|
||||||
|
|
||||||
def connectToEngine(self):
|
def connectToEngine(self, bools=None, dataEngines=None, interval=1000, names=None):
|
||||||
"""function to initializate engine"""
|
"""function to initializate engine"""
|
||||||
self.parent.systemmonitor = self.parent.dataEngine("systemmonitor")
|
if (bools['cpu'] > 0):
|
||||||
self.parent.extsysmon = self.parent.dataEngine("ext-sysmon")
|
dataEngines['system'].connectSource("cpu/system/TotalLoad", self.parent, interval)
|
||||||
|
for core in range(8):
|
||||||
|
dataEngines['system'].connectSource("cpu/cpu" + str(core) + "/TotalLoad", self.parent, interval)
|
||||||
|
if (bools['cpuclock'] > 0):
|
||||||
|
dataEngines['system'].connectSource("cpu/system/AverageClock", self.parent, interval)
|
||||||
|
for core in range(8):
|
||||||
|
dataEngines['system'].connectSource("cpu/cpu" + str(core) + "/clock", self.parent, interval)
|
||||||
|
if (bools['custom'] > 0):
|
||||||
|
dataEngines['ext'].connectSource("custom", self.parent, interval)
|
||||||
|
if (bools['disk'] > 0):
|
||||||
|
for item in names['disk']:
|
||||||
|
dataEngines['system'].connectSource(item + "/Rate/rblk", self.parent, interval)
|
||||||
|
dataEngines['system'].connectSource(item + "/Rate/wblk", self.parent, interval)
|
||||||
|
if (bools['gpu'] > 0):
|
||||||
|
dataEngines['ext'].connectSource("gpu", self.parent, interval)
|
||||||
|
if (bools['gputemp'] > 0):
|
||||||
|
dataEngines['ext'].connectSource("gputemp", self.parent, interval)
|
||||||
|
if (bools['hdd'] > 0):
|
||||||
|
for item in names['hdd']:
|
||||||
|
dataEngines['system'].connectSource("partitions" + item + "/filllevel", self.parent, interval)
|
||||||
|
dataEngines['system'].connectSource("partitions" + item + "/usedspace", self.parent, interval)
|
||||||
|
if (bools['hddtemp'] > 0):
|
||||||
|
dataEngines['ext'].connectSource("hddtemp", self.parent, interval)
|
||||||
|
if (bools['mem'] > 0):
|
||||||
|
dataEngines['system'].connectSource("mem/physical/free", self.parent, interval)
|
||||||
|
dataEngines['system'].connectSource("mem/physical/used", self.parent, interval)
|
||||||
|
dataEngines['system'].connectSource("mem/physical/application", self.parent, interval)
|
||||||
|
if (bools['net'] > 0):
|
||||||
|
self.updateNetdev = 0
|
||||||
|
dataEngines['system'].connectSource("network/interfaces/" + names['net'] + "/transmitter/data", self.parent, interval)
|
||||||
|
dataEngines['system'].connectSource("network/interfaces/" + names['net'] + "/receiver/data", self.parent, interval)
|
||||||
|
if (bools['pkg'] > 0):
|
||||||
|
dataEngines['ext'].connectSource("pkg", self.parent, 60*60*1000, Plasma.AlignToHour)
|
||||||
|
if (bools['player'] > 0):
|
||||||
|
dataEngines['ext'].connectSource("player", self.parent, interval)
|
||||||
|
if (bools['ps'] > 0):
|
||||||
|
dataEngines['ext'].connectSource("ps", self.parent, interval)
|
||||||
|
if (bools['swap'] > 0):
|
||||||
|
dataEngines['system'].connectSource("mem/swap/free", self.parent, interval)
|
||||||
|
dataEngines['system'].connectSource("mem/swap/used", self.parent, interval)
|
||||||
|
if (bools['temp'] > 0):
|
||||||
|
for item in names['temp']:
|
||||||
|
dataEngines['system'].connectSource(item, self.parent, interval)
|
||||||
|
if (bools['time'] > 0):
|
||||||
|
dataEngines['time'].connectSource("Local", self.parent, 1000)
|
||||||
|
if (bools['uptime'] > 0):
|
||||||
|
dataEngines['system'].connectSource("system/uptime", self.parent, interval)
|
||||||
|
|
||||||
if (self.parent.timeBool > 0):
|
|
||||||
self.parent.timemon = self.parent.dataEngine("time")
|
|
||||||
self.parent.timemon.connectSource("Local", self.parent, 1000)
|
|
||||||
|
|
||||||
if (self.parent.uptimeBool > 0):
|
def dataUpdated(self, sourceName, data, ptm):
|
||||||
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)
|
|
||||||
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)
|
|
||||||
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):
|
|
||||||
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):
|
|
||||||
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):
|
|
||||||
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 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):
|
|
||||||
self.parent.updateNetdev = 0
|
|
||||||
self.parent.systemmonitor.connectSource("network/interfaces/"+self.parent.netdev+"/transmitter/data", self.parent, self.parent.interval)
|
|
||||||
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"""
|
"""function to update data"""
|
||||||
|
adv = ptm['vars']['adv']
|
||||||
|
systemDataEngine = ptm['dataengine']['system']
|
||||||
|
formats = ptm['vars']['formats']
|
||||||
|
interval = ptm['vars']['app']['interval']
|
||||||
|
names = ptm['names']
|
||||||
|
updatedData = {'name':None, 'type':None, 'value':None}
|
||||||
try:
|
try:
|
||||||
if (sourceName == "system/uptime"):
|
if (sourceName == "cpu/system/TotalLoad"):
|
||||||
|
updatedData['name'] = "cpu"
|
||||||
|
updatedData['type'] = -1
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 1)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif ((sourceName[:7] == "cpu/cpu") and (sourceName.split('/')[2] == "TotalLoad")):
|
||||||
|
updatedData['name'] = "cpu"
|
||||||
|
updatedData['type'] = int(sourceName[7])
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 1)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif (sourceName == "cpu/system/AverageClock"):
|
||||||
|
updatedData['name'] = "cpuclock"
|
||||||
|
updatedData['type'] = -1
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 0)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif ((sourceName[:7] == "cpu/cpu") and (sourceName.split('/')[2] == "clock")):
|
||||||
|
updatedData['name'] = "cpuclock"
|
||||||
|
updatedData['type'] = int(sourceName[7])
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 0)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif (sourceName == "custom"):
|
||||||
|
updatedData['name'] = "custom"
|
||||||
|
updatedData['value'] = {}
|
||||||
|
for singleData in data.keys():
|
||||||
|
updatedData['value'][str(singleData.toLower())] = str(data[singleData].toUtf8()).decode("utf-8")
|
||||||
|
elif ((sourceName[:4] == "disk") and (sourceName[-4:] == "rblk")):
|
||||||
|
updatedData['name'] = "disk-r"
|
||||||
|
updatedData['type'] = '/'.join(str(sourceName).split('/')[0:2])
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 0)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif ((sourceName[:4] == "disk") and (sourceName[-4:] == "wblk")):
|
||||||
|
updatedData['name'] = "disk-w"
|
||||||
|
updatedData['type'] = '/'.join(str(sourceName).split('/')[0:2])
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 0)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif (sourceName == "gpu"):
|
||||||
|
updatedData['name'] = "gpu"
|
||||||
|
value = round(data[QString(u'GPU')], 1)
|
||||||
|
updatedData['value'] = "%4.1f" % (value)
|
||||||
|
elif (sourceName == "gputemp"):
|
||||||
|
updatedData['name'] = "gputemp"
|
||||||
|
value = round(data[QString(u'GPUTemp')], 1)
|
||||||
|
updatedData['value'] = "%4.1f" % (value)
|
||||||
|
elif (sourceName.split('/')[0] == "partitions") and (sourceName.split('/')[-1] == "filllevel"):
|
||||||
|
updatedData['name'] = "hdd"
|
||||||
|
updatedData['type'] = '/' + '/'.join(sourceName.split('/')[1:-1])
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 1)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif (sourceName.split('/')[0] == "partitions") and (sourceName.split('/')[-1] == "usedspace"):
|
||||||
|
updatedData['name'] = "hddmb"
|
||||||
|
updatedData['type'] = '/' + '/'.join(sourceName.split('/')[1:-1])
|
||||||
|
value = data[QString(u'value')].toFloat()[0]
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif (sourceName == "hddtemp"):
|
||||||
|
updatedData['name'] = "hddtemp"
|
||||||
|
updatedData['value'] = {}
|
||||||
|
for item in names['hddtemp']:
|
||||||
|
value = round(data[QString(item)], 1)
|
||||||
|
updatedData['value'][item] = "%4.1f" % (value)
|
||||||
|
elif (sourceName == "mem/physical/application"):
|
||||||
|
updatedData['name'] = "mem"
|
||||||
|
updatedData['type'] = "app"
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 1)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif (sourceName == "mem/physical/free"):
|
||||||
|
updatedData['name'] = "mem"
|
||||||
|
updatedData['type'] = "free"
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 1)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif (sourceName == "mem/physical/used"):
|
||||||
|
updatedData['name'] = "mem"
|
||||||
|
updatedData['type'] = "used"
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 1)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif ((sourceName.split('/')[0] == "network") and (sourceName.split('/')[3] == "receiver")):
|
||||||
|
updatedData['name'] = "net"
|
||||||
|
updatedData['type'] = "down"
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 0)
|
||||||
|
updatedData['value'] = value
|
||||||
|
# update network device
|
||||||
|
self.updateNetdev = self.updateNetdev + 1
|
||||||
|
if (self.updateNetdev == 30):
|
||||||
|
self.updateNetdev = 0
|
||||||
|
if (adv['netdevBool'] == 0):
|
||||||
|
systemDataEngine.disconnectSource("network/interfaces/" + names['net'] + "/transmitter/data", self.parent)
|
||||||
|
systemDataEngine.disconnectSource("network/interfaces/" + names['net'] + "/receiver/data", self.parent)
|
||||||
|
names['net'] = self.parent.setNetdev()
|
||||||
|
systemDataEngine.connectSource("network/interfaces/" + names['net'] + "/transmitter/data", self.parent, interval)
|
||||||
|
systemDataEngine.connectSource("network/interfaces/" + names['net'] + "/receiver/data", self.parent, interval)
|
||||||
|
elif ((sourceName.split('/')[0] == "network") and (sourceName.split('/')[3] == "transmitter")):
|
||||||
|
updatedData['name'] = "net"
|
||||||
|
updatedData['type'] = "up"
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 0)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif (sourceName == "pkg"):
|
||||||
|
updatedData['name'] = "pkg"
|
||||||
|
updatedData['value'] = {}
|
||||||
|
for singleData in data.keys():
|
||||||
|
updatedData['value'][str(singleData.toLower())] = "%i" % (data[singleData])
|
||||||
|
elif (sourceName == "player"):
|
||||||
|
updatedData['name'] = "player"
|
||||||
|
updatedData['value'] = {}
|
||||||
|
if (adv['player'] == "amarok"):
|
||||||
|
updatedData['value']['album'] = str(data[QString(u'amarok_album')].toUtf8()).decode("utf-8")
|
||||||
|
updatedData['value']['artist'] = str(data[QString(u'amarok_artist')].toUtf8()).decode("utf-8")
|
||||||
|
updatedData['value']['progress'] = str(data[QString(u'amarok_progress')].toUtf8()).decode("utf-8")
|
||||||
|
updatedData['value']['time'] = str(data[QString(u'amarok_duration')].toUtf8()).decode("utf-8")
|
||||||
|
updatedData['value']['title'] = str(data[QString(u'amarok_title')].toUtf8()).decode("utf-8")
|
||||||
|
elif (adv['player'] == "mpd"):
|
||||||
|
updatedData['value']['album'] = str(data[QString(u'mpd_album')].toUtf8()).decode("utf-8")
|
||||||
|
updatedData['value']['artist'] = str(data[QString(u'mpd_artist')].toUtf8()).decode("utf-8")
|
||||||
|
updatedData['value']['progress'] = str(data[QString(u'mpd_progress')].toUtf8()).decode("utf-8")
|
||||||
|
updatedData['value']['time'] = str(data[QString(u'mpd_duration')].toUtf8()).decode("utf-8")
|
||||||
|
updatedData['value']['title'] = str(data[QString(u'mpd_title')].toUtf8()).decode("utf-8")
|
||||||
|
elif (adv['player'] == "qmmp"):
|
||||||
|
updatedData['value']['album'] = str(data[QString(u'qmmp_album')].toUtf8()).decode("utf-8")
|
||||||
|
updatedData['value']['artist'] = str(data[QString(u'qmmp_artist')].toUtf8()).decode("utf-8")
|
||||||
|
updatedData['value']['progress'] = str(data[QString(u'qmmp_progress')].toUtf8()).decode("utf-8")
|
||||||
|
updatedData['value']['time'] = str(data[QString(u'qmmp_duration')].toUtf8()).decode("utf-8")
|
||||||
|
updatedData['value']['title'] = str(data[QString(u'qmmp_title')].toUtf8()).decode("utf-8")
|
||||||
|
elif (sourceName == "ps"):
|
||||||
|
updatedData['name'] = "ps"
|
||||||
|
updatedData['value'] = {}
|
||||||
|
updatedData['value']['num'] = "%i" % (data[QString(u'psCount')])
|
||||||
|
updatedData['value']['total'] = "%i" % (data[QString(u'psTotal')])
|
||||||
|
updatedData['value']['list'] = data[QString(u'ps')]
|
||||||
|
elif (sourceName == "mem/swap/free"):
|
||||||
|
updatedData['name'] = "swap"
|
||||||
|
updatedData['type'] = "free"
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 1)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif (sourceName == "mem/swap/used"):
|
||||||
|
updatedData['name'] = "swap"
|
||||||
|
updatedData['type'] = "used"
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 1)
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif (sourceName.split('/')[0] == "lmsensors"):
|
||||||
|
updatedData['name'] = "temp"
|
||||||
|
updatedData['type'] = sourceName
|
||||||
|
value = round(data[QString(u'value')].toFloat()[0], 1)
|
||||||
|
updatedData['value'] = "%4.1f" % (value)
|
||||||
|
elif (sourceName == "Local"):
|
||||||
|
updatedData['name'] = "time"
|
||||||
|
if (formats['time'].split('$time')[0] != formats['time']):
|
||||||
|
value = str(data[QString(u'DateTime')].toString(Qt.TextDate).toUtf8()).decode("utf-8")
|
||||||
|
elif (formats['time'].split('$isotime')[0] != formats['time']):
|
||||||
|
value = str(data[QString(u'DateTime')].toString(Qt.ISODate).toUtf8()).decode("utf-8")
|
||||||
|
elif (formats['time'].split('$shorttime')[0] != formats['time']):
|
||||||
|
value = str(data[QString(u'DateTime')].toString(Qt.SystemLocaleShortDate).toUtf8()).decode("utf-8")
|
||||||
|
elif (formats['time'].split('$longtime')[0] != formats['time']):
|
||||||
|
value = str(data[QString(u'DateTime')].toString(Qt.SystemLocaleLongDate).toUtf8()).decode("utf-8")
|
||||||
|
elif (formats['time'].split('$custom')[0] != formats['time']):
|
||||||
|
rawDate = data[QString(u'DateTime')]
|
||||||
|
value = adv['customTime']
|
||||||
|
for letters in timeLetters:
|
||||||
|
if (value.split('$' + letters)[0] != value):
|
||||||
|
value = value.split('$' + letters)[0] + str(rawDate.toString(letters).toUtf8()).decode("utf-8") + value.split('$' + letters)[1]
|
||||||
|
updatedData['value'] = value
|
||||||
|
elif (sourceName == "system/uptime"):
|
||||||
|
updatedData['name'] = "uptime"
|
||||||
value = datetime.timedelta(0, int(round(float(data[QString(u'value')]), 1)))
|
value = datetime.timedelta(0, int(round(float(data[QString(u'value')]), 1)))
|
||||||
days = value.days
|
days = value.days
|
||||||
hours = int(value.seconds / 60 / 60)
|
hours = int(value.seconds / 60 / 60)
|
||||||
minutes = int(value.seconds / 60 % 60)
|
minutes = int(value.seconds / 60 % 60)
|
||||||
line = self.parent.uptimeFormat
|
if (formats['uptime'].split('$uptime')[0] != formats['uptime']):
|
||||||
if (line.split('$uptime')[0] != line):
|
updatedData['value'] = "%3id%2ih%2im" % (days, hours, minutes)
|
||||||
uptimeText = "%3id%2ih%2im" % (days, hours, minutes)
|
elif (formats['uptime'].split('$custom')[0] != formats['uptime']):
|
||||||
line = line.split('$uptime')[0] + uptimeText + line.split('$uptime')[1]
|
updatedData['value'] = adv['customUptime']
|
||||||
elif (line.split('$custom')[0] != line):
|
if (updatedData['value'].split('$dd')[0] != updatedData['value']):
|
||||||
uptimeText = self.parent.custom_uptime
|
updatedData['value'] = "%s%03i%s" % (updatedData['value'].split('$dd')[0], days, updatedData['value'].split('$dd')[1])
|
||||||
if (uptimeText.split('$dd')[0] != uptimeText):
|
if (updatedData['value'].split('$d')[0] != updatedData['value']):
|
||||||
uptimeText = "%s%03i%s" % (uptimeText.split('$dd')[0], days, uptimeText.split('$dd')[1])
|
updatedData['value'] = "%s%i%s" % (updatedData['value'].split('$d')[0], days, updatedData['value'].split('$d')[1])
|
||||||
if (uptimeText.split('$d')[0] != uptimeText):
|
if (updatedData['value'].split('$hh')[0] != updatedData['value']):
|
||||||
uptimeText = "%s%3i%s" % (uptimeText.split('$d')[0], days, uptimeText.split('$d')[1])
|
updatedData['value'] = "%s%02i%s" % (updatedData['value'].split('$hh')[0], hours, updatedData['value'].split('$hh')[1])
|
||||||
if (uptimeText.split('$hh')[0] != uptimeText):
|
if (updatedData['value'].split('$h')[0] != updatedData['value']):
|
||||||
uptimeText = "%s%02i%s" % (uptimeText.split('$hh')[0], hours, uptimeText.split('$hh')[1])
|
updatedData['value'] = "%s%i%s" % (updatedData['value'].split('$h')[0], hours, updatedData['value'].split('$h')[1])
|
||||||
if (uptimeText.split('$h')[0] != uptimeText):
|
if (updatedData['value'].split('$mm')[0] != updatedData['value']):
|
||||||
uptimeText = "%s%2i%s" % (uptimeText.split('$h')[0], hours, uptimeText.split('$h')[1])
|
updatedData['value'] = "%s%02i%s" % (updatedData['value'].split('$mm')[0], minutes, updatedData['value'].split('$mm')[1])
|
||||||
if (uptimeText.split('$mm')[0] != uptimeText):
|
if (updatedData['value'].split('$m')[0] != updatedData['value']):
|
||||||
uptimeText = "%s%02i%s" % (uptimeText.split('$mm')[0], minutes, uptimeText.split('$mm')[1])
|
updatedData['value'] = "%s%i%s" % (updatedData['value'].split('$m')[0], minutes, updatedData['value'].split('$m')[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))
|
|
||||||
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))
|
|
||||||
self.parent.cpuCore[int(str(sourceName)[7])] = "%5s" % (value)
|
|
||||||
elif (sourceName == "cpu/system/AverageClock"):
|
|
||||||
value = str(data[QString(u'value')]).split('.')[0]
|
|
||||||
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]
|
|
||||||
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]
|
|
||||||
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]
|
|
||||||
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):
|
|
||||||
self.parent.updateNetdev = 0
|
|
||||||
if (self.parent.netNonFormat.split('@@')[0] == self.parent.netNonFormat):
|
|
||||||
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.netdev = self.parent.setupNetdev()
|
|
||||||
self.parent.systemmonitor.connectSource("network/interfaces/"+self.parent.netdev+"/transmitter/data", self.parent, self.parent.interval)
|
|
||||||
self.parent.systemmonitor.connectSource("network/interfaces/"+self.parent.netdev+"/receiver/data", self.parent, self.parent.interval)
|
|
||||||
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
|
|
||||||
elif (str(sourceName).split('/')[0] == "lmsensors"):
|
|
||||||
value = str(round(float(data[QString(u'value')]), 1))
|
|
||||||
self.parent.temp[str(sourceName)] = "%4s" % (value)
|
|
||||||
elif (str(sourceName).split('/')[0] == "partitions"):
|
|
||||||
value = str(round(float(data[QString(u'value')]), 1))
|
|
||||||
self.parent.mount['/'+'/'.join(str(sourceName).split('/')[1:-1])] = "%5s" % (value)
|
|
||||||
elif (sourceName == "mem/physical/free"):
|
|
||||||
self.parent.memValues['free'] = float(data[QString(u'value')])
|
|
||||||
elif (sourceName == "mem/physical/used"):
|
|
||||||
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)
|
|
||||||
if (self.parent.memFormat.split('$memmb')[0] != self.parent.memFormat):
|
|
||||||
line = self.parent.memFormat.split('$memmb')[0] + mem + self.parent.memFormat.split('$memmb')[1]
|
|
||||||
else:
|
|
||||||
line = self.parent.memFormat
|
|
||||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
|
||||||
self.parent.label_mem.setText(text)
|
|
||||||
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.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)
|
|
||||||
if (self.parent.swapFormat.split('$swapmb')[0] != self.parent.swapFormat):
|
|
||||||
line = self.parent.swapFormat.split('$swapmb')[0] + mem + self.parent.swapFormat.split('$swapmb')[1]
|
|
||||||
else:
|
|
||||||
line = self.parent.swapFormat
|
|
||||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
|
||||||
self.parent.label_swap.setText(text)
|
|
||||||
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)
|
|
||||||
if (self.parent.gpuFormat.split('$gpu')[0] != self.parent.gpuFormat):
|
|
||||||
line = self.parent.gpuFormat.split('$gpu')[0] + gpuText + self.parent.gpuFormat.split('$gpu')[1]
|
|
||||||
else:
|
|
||||||
line = self.parent.gpuFormat
|
|
||||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
|
||||||
self.parent.label_gpu.setText(text)
|
|
||||||
elif (sourceName == "gputemp"):
|
|
||||||
value = str(data[QString(u'GPUTemp')])
|
|
||||||
gputempText = "%4s" % (value)
|
|
||||||
if (self.parent.gputempFormat.split('$gputemp')[0] != self.parent.gputempFormat):
|
|
||||||
line = self.parent.gputempFormat.split('$gputemp')[0] + gputempText + self.parent.gputempFormat.split('$gputemp')[1]
|
|
||||||
else:
|
|
||||||
line = self.parent.gputempFormat
|
|
||||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
|
||||||
self.parent.label_gputemp.setText(text)
|
|
||||||
elif (sourceName == "hddtemp"):
|
|
||||||
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"):
|
|
||||||
if (self.parent.player_name == 0):
|
|
||||||
album = str(data[QString(u'amarok_album')].toUtf8()).decode("utf-8")
|
|
||||||
artist = str(data[QString(u'amarok_artist')].toUtf8()).decode("utf-8")
|
|
||||||
progress = str(data[QString(u'amarok_progress')].toUtf8()).decode("utf-8")
|
|
||||||
time = str(data[QString(u'amarok_duration')].toUtf8()).decode("utf-8")
|
|
||||||
title = str(data[QString(u'amarok_title')].toUtf8()).decode("utf-8")
|
|
||||||
elif (self.parent.player_name == 1):
|
|
||||||
album = str(data[QString(u'mpd_album')].toUtf8()).decode("utf-8")
|
|
||||||
artist = str(data[QString(u'mpd_artist')].toUtf8()).decode("utf-8")
|
|
||||||
progress = str(data[QString(u'mpd_progress')].toUtf8()).decode("utf-8")
|
|
||||||
time = str(data[QString(u'mpd_duration')].toUtf8()).decode("utf-8")
|
|
||||||
title = str(data[QString(u'mpd_title')].toUtf8()).decode("utf-8")
|
|
||||||
elif (self.parent.player_name == 2):
|
|
||||||
album = str(data[QString(u'qmmp_album')].toUtf8()).decode("utf-8")
|
|
||||||
artist = str(data[QString(u'qmmp_artist')].toUtf8()).decode("utf-8")
|
|
||||||
progress = str(data[QString(u'qmmp_progress')].toUtf8()).decode("utf-8")
|
|
||||||
time = str(data[QString(u'qmmp_duration')].toUtf8()).decode("utf-8")
|
|
||||||
title = str(data[QString(u'qmmp_title')].toUtf8()).decode("utf-8")
|
|
||||||
line = self.parent.playerFormat
|
|
||||||
if (line.split('$album')[0] != line):
|
|
||||||
line = line.split('$album')[0] + album + line.split('$album')[1]
|
|
||||||
if (line.split('$artist')[0] != line):
|
|
||||||
line = line.split('$artist')[0] + artist + line.split('$artist')[1]
|
|
||||||
if (line.split('$progress')[0] != line):
|
|
||||||
timeText = '%02i:%02i' % (int(time)/60, int(time)%60)
|
|
||||||
line = line.split('$progress')[0] + timeText + line.split('$progress')[1]
|
|
||||||
if (line.split('$time')[0] != line):
|
|
||||||
timeText = '%02i:%02i' % (int(time)/60, int(time)%60)
|
|
||||||
line = line.split('$time')[0] + timeText + line.split('$time')[1]
|
|
||||||
if (line.split('$title')[0] != line):
|
|
||||||
line = line.split('$title')[0] + title + line.split('$title')[1]
|
|
||||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
|
||||||
self.parent.label_player.setText(text)
|
|
||||||
elif (sourceName == "Local"):
|
|
||||||
if (self.parent.timeFormat.split('$time')[0] != self.parent.timeFormat):
|
|
||||||
value = str(data[QString(u'DateTime')].toString(Qt.TextDate).toUtf8())
|
|
||||||
line = self.parent.timeFormat.split('$time')[0] + value.decode("utf-8") + self.parent.timeFormat.split('$time')[1]
|
|
||||||
elif (self.parent.timeFormat.split('$isotime')[0] != self.parent.timeFormat):
|
|
||||||
value = str(data[QString(u'DateTime')].toString(Qt.ISODate).toUtf8())
|
|
||||||
line = self.parent.timeFormat.split('$isotime')[0] + value.decode("utf-8") + self.parent.timeFormat.split('$isotime')[1]
|
|
||||||
elif (self.parent.timeFormat.split('$shorttime')[0] != self.parent.timeFormat):
|
|
||||||
value = str(data[QString(u'DateTime')].toString(Qt.SystemLocaleShortDate).toUtf8())
|
|
||||||
line = self.parent.timeFormat.split('$shorttime')[0] + value.decode("utf-8") + self.parent.timeFormat.split('$shorttime')[1]
|
|
||||||
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('$custom')[0] != self.parent.timeFormat):
|
|
||||||
rawDate = data[QString(u'DateTime')]
|
|
||||||
value = self.parent.custom_time
|
|
||||||
for letters in timeLetters:
|
|
||||||
if (value.split('$'+letters)[0] != value):
|
|
||||||
value = value.split('$'+letters)[0] + \
|
|
||||||
str(data[QString(u'DateTime')].toString(letters).toUtf8()).decode("utf-8") + \
|
|
||||||
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:
|
except:
|
||||||
pass
|
pass
|
||||||
|
return updatedData
|
||||||
|
|
||||||
|
|
||||||
|
def disconnectFromSource(self, dataEngines=None, keys=None, name=None):
|
||||||
|
"""function to disconnect from sources"""
|
||||||
|
if (name == "bat"):
|
||||||
|
pass
|
||||||
|
elif (name == "cpu"):
|
||||||
|
dataEngines['system'].disconnectSource("cpu/system/TotalLoad", self.parent)
|
||||||
|
for item in keys['cpu']:
|
||||||
|
if (item != -1):
|
||||||
|
dataEngines['system'].disconnectSource("cpu/cpu" + str(item) + "/TotalLoad", self.parent)
|
||||||
|
elif (name == "cpuclock"):
|
||||||
|
dataEngines['system'].disconnectSource("cpu/system/AverageClock", self.parent)
|
||||||
|
for item in keys['cpuclock']:
|
||||||
|
if (item != -1):
|
||||||
|
dataEngines['system'].disconnectSource("cpu/cpu" + str(item) + "/clock", self.parent)
|
||||||
|
elif (name == "custom"):
|
||||||
|
dataEngines['ext'].disconnectSource("custom", self.parent)
|
||||||
|
elif (name == "disk"):
|
||||||
|
for item in keys['disk']:
|
||||||
|
dataEngines['system'].disconnectSource(item + "/Rate/rblk", self.parent)
|
||||||
|
dataEngines['system'].disconnectSource(item + "/Rate/rblk", self.parent)
|
||||||
|
elif (name == "gpu"):
|
||||||
|
dataEngines['ext'].disconnectSource("gpu", self.parent)
|
||||||
|
elif (name == "gputemp"):
|
||||||
|
dataEngines['ext'].disconnectSource("gputemp", self.parent)
|
||||||
|
elif (name == "hdd"):
|
||||||
|
for item in keys['hdd']:
|
||||||
|
dataEngines['system'].disconnectSource("partitions" + item + "/filllevel", self.parent)
|
||||||
|
dataEngines['system'].disconnectSource("partitions" + item + "/usedspace", self.parent)
|
||||||
|
elif (name == "hddtemp"):
|
||||||
|
dataEngines['ext'].disconnectSource("hddtemp", self.parent)
|
||||||
|
elif (name == "mem"):
|
||||||
|
dataEngines['system'].disconnectSource("mem/physical/application", self.parent)
|
||||||
|
dataEngines['system'].disconnectSource("mem/physical/free", self.parent)
|
||||||
|
dataEngines['system'].disconnectSource("mem/physical/used", self.parent)
|
||||||
|
elif (name == "net"):
|
||||||
|
dataEngines['system'].disconnectSource("network/interfaces/" + keys['net'] + "/transmitter/data", self.parent)
|
||||||
|
dataEngines['system'].disconnectSource("network/interfaces/" + keys['net'] + "/receiver/data", self.parent)
|
||||||
|
elif (name == "pkg"):
|
||||||
|
dataEngines['ext'].disconnectSource("pkg", self.parent)
|
||||||
|
elif (name == "player"):
|
||||||
|
dataEngines['ext'].disconnectSource("player", self.parent)
|
||||||
|
elif (name == "ps"):
|
||||||
|
dataEngines['ext'].disconnectSource("ps", self.parent)
|
||||||
|
elif (name == "swap"):
|
||||||
|
dataEngines['system'].disconnectSource("mem/swap/used", self.parent)
|
||||||
|
dataEngines['system'].disconnectSource("mem/swap/free", self.parent)
|
||||||
|
elif (name == "temp"):
|
||||||
|
for item in keys['temp']:
|
||||||
|
dataEngines['system'].disconnectSource(item, self.parent)
|
||||||
|
elif (name == "time"):
|
||||||
|
dataEngines['time'].disconnectSource("Local", self.parent)
|
||||||
|
elif (name == "uptime"):
|
||||||
|
dataEngines['system'].disconnectSource("system/uptime", self.parent)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/python2
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
@ -24,16 +25,44 @@ from PyKDE4.kdeui import *
|
|||||||
from PyKDE4.kio import *
|
from PyKDE4.kio import *
|
||||||
from PyKDE4 import plasmascript
|
from PyKDE4 import plasmascript
|
||||||
from PyKDE4.plasma import Plasma
|
from PyKDE4.plasma import Plasma
|
||||||
import commands, os, shutil, time
|
import commands, os, shutil
|
||||||
|
|
||||||
import configdef
|
import configdef
|
||||||
import configwindow
|
import configwindow
|
||||||
import dataengine
|
import dataengine
|
||||||
|
import ptmnotify
|
||||||
import reinit
|
import reinit
|
||||||
import tooltip
|
import tooltip
|
||||||
from util import *
|
from util import *
|
||||||
|
|
||||||
|
|
||||||
|
def getTemp(temp, unit):
|
||||||
|
"""function to return temperature"""
|
||||||
|
if (unit == "Celsius"):
|
||||||
|
pass
|
||||||
|
elif (unit == "Fahrenheit"):
|
||||||
|
temp = str(round(((float(temp) * 9.0 / 5.0) + 32.0), 1))
|
||||||
|
elif (unit == "Kelvin"):
|
||||||
|
temp = str(round((float(temp) + 273.15), 1))
|
||||||
|
return temp
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class CustomPlasmaLabel(Plasma.Label):
|
||||||
|
"""new Label with defined clicked() event"""
|
||||||
|
def __init__(self, applet, name):
|
||||||
|
"""class definition"""
|
||||||
|
Plasma.Label.__init__(self, applet)
|
||||||
|
self.name = name
|
||||||
|
self.notify = ptmnotify.PTMNotify(self)
|
||||||
|
|
||||||
|
|
||||||
|
def mousePressEvent(self, event):
|
||||||
|
"""mouse click event"""
|
||||||
|
if (event.button() == Qt.LeftButton):
|
||||||
|
self.notify.init(self.name)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class pyTextWidget(plasmascript.Applet):
|
class pyTextWidget(plasmascript.Applet):
|
||||||
def __init__(self, parent, args=None):
|
def __init__(self, parent, args=None):
|
||||||
@ -41,34 +70,90 @@ class pyTextWidget(plasmascript.Applet):
|
|||||||
plasmascript.Applet.__init__(self, parent)
|
plasmascript.Applet.__init__(self, parent)
|
||||||
|
|
||||||
|
|
||||||
|
# initialization
|
||||||
def init(self):
|
def init(self):
|
||||||
"""function to initializate widget"""
|
"""function to initializate widget"""
|
||||||
self._name = str(self.package().metadata().pluginName())
|
self._name = str(self.package().metadata().pluginName())
|
||||||
self.layout = QGraphicsLinearLayout(Qt.Horizontal, self.applet)
|
self.setupVar()
|
||||||
|
# actions
|
||||||
|
self.createActions()
|
||||||
|
|
||||||
|
|
||||||
self.dataengine = dataengine.DataEngine(self)
|
self.dataengine = dataengine.DataEngine(self)
|
||||||
self.reinit = reinit.Reinit(self)
|
self.reinit = reinit.Reinit(self, self.ptm['defaults'])
|
||||||
self.tooltipAgent = tooltip.Tooltip(self)
|
self.tooltipAgent = tooltip.Tooltip(self)
|
||||||
|
|
||||||
self.timer = QTimer()
|
self.timer = QTimer()
|
||||||
QObject.connect(self.timer, SIGNAL("timeout()"), self.updateLabel)
|
QObject.connect(self.timer, SIGNAL("timeout()"), self.updateLabel)
|
||||||
|
|
||||||
self.setupVar()
|
|
||||||
self.initTooltip()
|
self.initTooltip()
|
||||||
self.reinit.reinit(confAccept=False)
|
self.reInit()
|
||||||
|
self.applet.setLayout(self.ptm['layout'])
|
||||||
|
self.theme = Plasma.Svg(self)
|
||||||
|
self.theme.setImagePath("widgets/background")
|
||||||
|
self.setBackgroundHints(Plasma.Applet.DefaultBackground)
|
||||||
|
|
||||||
self.setHasConfigurationInterface(True)
|
self.setHasConfigurationInterface(True)
|
||||||
# Create notifyrc file if required
|
# create notifyrc file if required
|
||||||
kdehome = unicode(KGlobal.dirs().localkdedir())
|
kdehome = unicode(KGlobal.dirs().localkdedir())
|
||||||
if ((not os.path.exists(kdehome + "/share/apps/plasma_applet_pytextmonitor/plasma_applet_pytextmonitor.notifyrc")) and
|
if ((not os.path.exists(kdehome + "/share/apps/plasma_applet_pytextmonitor/plasma_applet_pytextmonitor.notifyrc")) and
|
||||||
(not os.path.exists("/usr" + "/share/apps/plasma_applet_pytextmonitor/plasma_applet_pytextmonitor.notifyrc"))):
|
(not os.path.exists("/usr" + "/share/apps/plasma_applet_pytextmonitor/plasma_applet_pytextmonitor.notifyrc"))):
|
||||||
self.createNotifyrc(kdehome)
|
self.createNotifyrc(kdehome)
|
||||||
|
|
||||||
|
|
||||||
|
# context menu
|
||||||
|
def createActions(self):
|
||||||
|
"""function to create actions"""
|
||||||
|
self.ptmActions = {}
|
||||||
|
self.ptmActions['ksysguard'] = QAction(i18n("Run ksysguard"), self)
|
||||||
|
QObject.connect(self.ptmActions['ksysguard'], SIGNAL("triggered(bool)"), self.runKsysguard)
|
||||||
|
self.ptmActions['readme'] = QAction(i18n("Show README"), self)
|
||||||
|
QObject.connect(self.ptmActions['readme'], SIGNAL("triggered(bool)"), self.showReadme)
|
||||||
|
|
||||||
|
|
||||||
|
def contextualActions(self):
|
||||||
|
"""function to create context menu"""
|
||||||
|
contextMenu = []
|
||||||
|
contextMenu.append(self.ptmActions['ksysguard'])
|
||||||
|
contextMenu.append(self.ptmActions['readme'])
|
||||||
|
return contextMenu
|
||||||
|
|
||||||
|
|
||||||
|
def runKsysguard(self, event):
|
||||||
|
"""function to run ksysguard"""
|
||||||
|
os.system("ksysguard &")
|
||||||
|
|
||||||
|
|
||||||
|
def showReadme(self):
|
||||||
|
"""function to show readme file"""
|
||||||
|
kdehome = unicode(KGlobal.dirs().localkdedir())
|
||||||
|
if (os.path.exists("/usr/share/pytextmonitor/")):
|
||||||
|
dirPath = "/usr/share/pytextmonitor/"
|
||||||
|
elif (os.path.exists(kdehome + "/share/pytextmonitor/")):
|
||||||
|
dirPath = kdehome + "/share/pytextmonitor/"
|
||||||
|
else:
|
||||||
|
return
|
||||||
|
locale = QLocale.system().name().split('_')[0]
|
||||||
|
if (os.path.exists(dirPath + locale + ".md")):
|
||||||
|
filePath = dirPath + locale + ".md"
|
||||||
|
elif (os.path.exists(dirPath + "en.md")):
|
||||||
|
filePath = dirPath + "en.md"
|
||||||
|
else:
|
||||||
|
return
|
||||||
|
os.system("kioclient exec " + str(filePath) + " &")
|
||||||
|
|
||||||
|
|
||||||
|
# internal functions
|
||||||
|
def addDiskDevice(self, sourceName):
|
||||||
|
diskRegexp = QRegExp("disk/(?:md|sd|hd)[a-z|0-9]_.*/Rate/(?:rblk)")
|
||||||
|
if (diskRegexp.indexIn(sourceName) > -1):
|
||||||
|
self.ptm['defaults']['disk'].append('/'.join(str(sourceName).split('/')[0:2]))
|
||||||
|
|
||||||
|
|
||||||
def createConfigurationInterface(self, parent):
|
def createConfigurationInterface(self, parent):
|
||||||
"""function to setup configuration window"""
|
"""function to setup configuration window"""
|
||||||
self.configpage = configwindow.ConfigWindow(self)
|
self.configpage = configwindow.ConfigWindow(self)
|
||||||
self.configdef = configdef.ConfigDefinition(self, self.configpage)
|
self.configdef = configdef.ConfigDefinition(self, self.configpage, self.ptm['defaults'])
|
||||||
self.configdef.createConfigurationInterface(parent)
|
self.configdef.createConfigurationInterface(parent)
|
||||||
|
|
||||||
|
|
||||||
@ -87,83 +172,91 @@ class pyTextWidget(plasmascript.Applet):
|
|||||||
self.tooltip.setSubText('')
|
self.tooltip.setSubText('')
|
||||||
Plasma.ToolTipManager.self().registerWidget(self.applet)
|
Plasma.ToolTipManager.self().registerWidget(self.applet)
|
||||||
# graphical tooltip
|
# graphical tooltip
|
||||||
self.tooltip_pixmap = QPixmap()
|
self.tooltipScene = QGraphicsScene()
|
||||||
self.tooltip_scene = QGraphicsScene()
|
self.tooltipView = QGraphicsView(self.tooltipScene)
|
||||||
self.tooltip_view = QGraphicsView(self.tooltip_scene)
|
self.tooltipView.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
||||||
self.tooltip_view.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
self.tooltipView.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
||||||
self.tooltip_view.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
|
||||||
# show tooltip
|
# show tooltip
|
||||||
Plasma.ToolTipManager.self().setContent(self.applet, self.tooltip)
|
Plasma.ToolTipManager.self().setContent(self.applet, self.tooltip)
|
||||||
|
|
||||||
|
|
||||||
def updateTooltip(self):
|
|
||||||
"""function to update tooltip"""
|
|
||||||
self.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):
|
|
||||||
"""function to doubleclick event"""
|
|
||||||
os.system("ksysguard &")
|
|
||||||
|
|
||||||
|
|
||||||
def setupNetdev(self):
|
|
||||||
"""function to setup network device"""
|
|
||||||
netdev = "lo"
|
|
||||||
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):
|
def setupVar(self):
|
||||||
"""function to setup variables"""
|
"""function to setup variables"""
|
||||||
self.cpuCore = {-1:" 0.0"}
|
self.ptm = {}
|
||||||
self.cpuClockCore = {-1:" 0"}
|
# dataengines
|
||||||
|
self.ptm['dataengine'] = {'ext':None, 'system':None, 'time':None}
|
||||||
|
# defaults
|
||||||
|
self.ptm['defaults'] = {}
|
||||||
|
self.ptm['defaults']['confBool'] = {'bat':'batBool', 'cpu':'cpuBool',
|
||||||
|
'cpuclock':'cpuclockBool', 'custom':'customBool', 'disk':'diskBool',
|
||||||
|
'gpu':'gpuBool', 'gputemp':'gputempBool', 'hdd':'hddBool',
|
||||||
|
'hddtemp':'hddtempBool', 'mem':'memBool', 'net':'netBool', 'pkg':'pkgBool',
|
||||||
|
'player':'playerBool', 'ps':'psBool', 'swap':'swapBool', 'temp':'tempBool',
|
||||||
|
'uptime':'uptimeBool', 'time':'timeBool'}
|
||||||
|
self.ptm['defaults']['confColor'] = {'cpu':'cpu_color', 'cpuclock':'cpuclock_color',
|
||||||
|
'down':'down_color', 'mem':'mem_color', 'swap':'swap_color', 'up':'up_color'}
|
||||||
|
self.ptm['defaults']['confFormat'] = {'bat':'batFormat', 'cpu':'cpuFormat',
|
||||||
|
'cpuclock':'cpuclockFormat', 'custom':'customFormat', 'disk':'diskFormat',
|
||||||
|
'gpu':'gpuFormat', 'gputemp':'gputempFormat', 'hdd':'hddFormat',
|
||||||
|
'hddtemp':'hddtempFormat', 'mem':'memFormat', 'net':'netFormat',
|
||||||
|
'pkg':'pkgFormat', 'player':'playerFormat', 'ps':'psFormat', 'swap':'swapFormat',
|
||||||
|
'temp':'tempFormat', 'time':'timeFormat', 'uptime':'uptimeFormat'}
|
||||||
|
self.ptm['defaults']['bool'] = {'bat':0, 'cpu':2, 'cpuclock':0, 'custom':0,
|
||||||
|
'disk':0, 'gpu':0, 'gputemp':0, 'hdd':0, 'hddtemp':0, 'mem':2, 'net':2,
|
||||||
|
'pkg':0, 'player':0, 'ps':0, 'swap':2, 'temp':0, 'time':0, 'uptime':0}
|
||||||
|
self.ptm['defaults']['format'] = {'bat':'[bat: $bat%$ac]', 'cpu':'[cpu: $cpu%]',
|
||||||
|
'cpuclock':'[mhz: $cpucl]', 'custom':'[$custom]', 'disk':'[disk: $hddr0/$hddw0 KB/s]',
|
||||||
|
'gpu':'[gpu: $gpu%]', 'gputemp':'[gpu temp: $gputemp°C]', 'hdd':'[hdd: $hdd0%]',
|
||||||
|
'hddtemp':'[hdd temp: $hddtemp0°C]', 'mem':'[mem: $mem%]',
|
||||||
|
'net':'[$netdev: $down/$upKB/s]', 'pkg':'[upgrade: $pkgcount0]',
|
||||||
|
'player':'[$artist - $title]', 'ps':'[proc: $pscount]', 'swap':'[swap: $swap%]',
|
||||||
|
'temp':'[temp: $temp0°C]', 'time':'[$time]', 'uptime':'[uptime: $uptime]'}
|
||||||
|
self.ptm['defaults']['order'] = {'1':'cpu', '2':'temp', '3':'mem', '4':'swap', '5':'net',
|
||||||
|
'6':'bat', '7':'cpuclock', '8':'uptime', '9':'gpu', 'a':'gputemp', 'b':'hdd',
|
||||||
|
'c':'hddtemp', 'd':'player', 'e':'time', 'f':'custom', 'g':'ps', 'h':'pkg', 'i':'disk'}
|
||||||
|
# disk devices for r/w speed
|
||||||
|
self.ptm['defaults']['disk'] = []
|
||||||
|
# labels
|
||||||
|
self.ptm['labels'] = {}
|
||||||
|
self.ptm['layout'] = QGraphicsLinearLayout(Qt.Horizontal, self.applet)
|
||||||
|
self.ptm['layout'].setContentsMargins(1, 1, 1, 1)
|
||||||
|
# names
|
||||||
|
self.ptm['names'] = {}
|
||||||
|
self.ptm['names']['disk'] = []
|
||||||
|
self.ptm['names']['hdd'] = []
|
||||||
|
self.ptm['names']['hddtemp'] = []
|
||||||
|
self.ptm['names']['net'] = ""
|
||||||
|
self.ptm['names']['temp'] = []
|
||||||
|
# tooltips
|
||||||
|
self.ptm['tooltip'] = {}
|
||||||
|
self.ptm['tooltip']['bounds'] = {'cpu':100.0, 'cpuclock':4000.0, 'mem':16000.0,
|
||||||
|
'swap':16000, 'down':10000.0, 'up':10000.0}
|
||||||
|
self.ptm['tooltip']['values'] = {'cpu':[0.0, 0.0], 'cpuclock':[0, 0], 'mem':[0, 0],
|
||||||
|
'swap':[0, 0], 'down':[0, 0], 'up':[0, 0]}
|
||||||
|
# values
|
||||||
|
self.ptm['values'] = {}
|
||||||
|
self.ptm['values']['cpu'] = {-1:0.0}
|
||||||
|
self.ptm['values']['cpuclock'] = {-1:0.0}
|
||||||
numCores = int(commands.getoutput("grep -c '^processor' /proc/cpuinfo"))
|
numCores = int(commands.getoutput("grep -c '^processor' /proc/cpuinfo"))
|
||||||
for i in range(numCores):
|
for i in range(numCores):
|
||||||
self.cpuCore[i] = str(" 0.0")
|
self.ptm['values']['cpu'][i] = 0.0
|
||||||
self.cpuClockCore[i] = str(" 0")
|
self.ptm['values']['cpuclock'][i] = 0.0
|
||||||
self.hddNames = []
|
self.ptm['values']['disk-r'] = {}
|
||||||
self.hdd = {}
|
self.ptm['values']['disk-w'] = {}
|
||||||
self.mountNames = []
|
self.ptm['values']['hdd'] = {}
|
||||||
self.mount = {}
|
self.ptm['values']['hddmb'] = {}
|
||||||
self.memValues = {'used':0.0, 'free':0.0, 'total':1.0}
|
self.ptm['values']['hddtemp'] = {}
|
||||||
self.netdev = ''
|
self.ptm['values']['mem'] = {'app':0.0, 'used':0.0, 'free':1.0}
|
||||||
self.netSpeed = {"up":" 0", "down":" 0"}
|
self.ptm['values']['net'] = {"up":0.0, "down":0.0}
|
||||||
self.swapValues = {'used':0.0, 'free':0.0, 'total':1.0}
|
self.ptm['values']['swap'] = {'used':0.0, 'free':1.0}
|
||||||
self.tempNames = []
|
self.ptm['values']['temp'] = {}
|
||||||
self.temp = {}
|
# variables
|
||||||
self.tooltipBound = {'cpu':100.0, 'cpuclock':4000.0, 'mem':16000.0,
|
self.ptm['vars'] = {}
|
||||||
'swap':16000, 'down':10000.0, 'up':10000.0}
|
self.ptm['vars']['adv'] = {}
|
||||||
self.tooltipColors = {}
|
self.ptm['vars']['app'] = {}
|
||||||
self.tooltipNum = 100
|
self.ptm['vars']['bools'] = {}
|
||||||
self.tooltipReq = []
|
self.ptm['vars']['formats'] = {}
|
||||||
self.tooltipValues = {'cpu':[0.0, 0.01], 'cpuclock':[0.0, 0.01], 'mem':[0.0, 0.01],
|
self.ptm['vars']['tooltip'] = {}
|
||||||
'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', '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]', '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):
|
def showConfigurationInterface(self):
|
||||||
@ -183,142 +276,410 @@ class pyTextWidget(plasmascript.Applet):
|
|||||||
|
|
||||||
def updateLabel(self):
|
def updateLabel(self):
|
||||||
"""function to update label"""
|
"""function to update label"""
|
||||||
if (self.batBool > 0):
|
if (self.ptm['vars']['bools']['bat'] > 0):
|
||||||
self.batText()
|
self.batText()
|
||||||
if (self.cpuBool > 0):
|
if (self.ptm['vars']['bools']['cpu'] > 0):
|
||||||
self.cpuText()
|
self.cpuText()
|
||||||
if (self.cpuclockBool > 0):
|
if (self.ptm['vars']['bools']['cpuclock'] > 0):
|
||||||
self.cpuclockText()
|
self.cpuclockText()
|
||||||
if (self.hddBool > 0):
|
if (self.ptm['vars']['bools']['disk'] > 0):
|
||||||
self.mountText()
|
self.diskText()
|
||||||
if ((self.memBool > 0) and (self.memInMb == False)):
|
if (self.ptm['vars']['bools']['hdd'] > 0):
|
||||||
|
self.hddText()
|
||||||
|
if (self.ptm['vars']['bools']['hddtemp'] > 0):
|
||||||
|
self.hddtempText()
|
||||||
|
if (self.ptm['vars']['bools']['mem'] > 0):
|
||||||
self.memText()
|
self.memText()
|
||||||
if (self.netBool > 0):
|
if (self.ptm['vars']['bools']['net'] > 0):
|
||||||
self.netText()
|
self.netText()
|
||||||
if ((self.swapBool > 0) and (self.swapInMb == False)):
|
if (self.ptm['vars']['bools']['swap'] > 0):
|
||||||
self.swapText()
|
self.swapText()
|
||||||
if (self.tempBool > 0):
|
if (self.ptm['vars']['bools']['temp'] > 0):
|
||||||
self.tempText()
|
self.tempText()
|
||||||
self.updateTooltip()
|
self.updateTooltip()
|
||||||
|
|
||||||
|
|
||||||
|
def updateTooltip(self):
|
||||||
|
"""function to update tooltip"""
|
||||||
|
self.tooltipView.resize(100.0*(len(self.ptm['vars']['tooltip']['required']) - self.ptm['vars']['tooltip']['required'].count('up')), 100.0)
|
||||||
|
self.tooltipAgent.createGraphic(self.ptm['vars']['tooltip'], self.ptm['tooltip'], self.tooltipScene)
|
||||||
|
self.tooltip.setImage(QPixmap.grabWidget(self.tooltipView))
|
||||||
|
Plasma.ToolTipManager.self().setContent(self.applet, self.tooltip)
|
||||||
|
|
||||||
|
|
||||||
|
# update functions
|
||||||
|
# update dataengines
|
||||||
|
@pyqtSignature("dataUpdated(const QString &, const Plasma::DataEngine::Data &)")
|
||||||
|
def dataUpdated(self, sourceName, data):
|
||||||
|
"""function to update label"""
|
||||||
|
updatedData = self.dataengine.dataUpdated(str(sourceName), data, self.ptm)
|
||||||
|
if (updatedData['value'] == None):
|
||||||
|
return
|
||||||
|
# update values where is needed
|
||||||
|
if (updatedData['type'] != None):
|
||||||
|
self.ptm['values'][updatedData['name']][updatedData['type']] = updatedData['value']
|
||||||
|
elif (updatedData['name'] in ['custom', 'gpu', 'gputemp', 'pkg', 'player', 'ps', 'time', 'uptime']):
|
||||||
|
text = self.textPrepare(updatedData['name'], updatedData['value'])
|
||||||
|
self.setText(updatedData['name'], text)
|
||||||
|
else:
|
||||||
|
self.ptm['values'][updatedData['name']] = updatedData['value']
|
||||||
|
# update tooltips
|
||||||
|
if ((updatedData['name'] in ['cpu', 'cpuclock', 'mem', 'swap', 'net']) and (self.ptm['vars']['bools'][updatedData['name']] == 2)):
|
||||||
|
if (updatedData['name'] == "net"):
|
||||||
|
if (len(self.ptm['tooltip']['values'][updatedData['type']]) > self.ptm['vars']['tooltip']['num']):
|
||||||
|
self.ptm['tooltip']['values'][updatedData['type']] = self.ptm['tooltip']['values'][updatedData['type']][1:]
|
||||||
|
else:
|
||||||
|
if (len(self.ptm['tooltip']['values'][updatedData['name']]) > self.ptm['vars']['tooltip']['num']):
|
||||||
|
self.ptm['tooltip']['values'][updatedData['name']] = self.ptm['tooltip']['values'][updatedData['name']][1:]
|
||||||
|
if ((updatedData['name'] in ['cpu', 'cpuclock']) and (updatedData['type'] == -1)):
|
||||||
|
self.ptm['tooltip']['values'][updatedData['name']].append(updatedData['value'])
|
||||||
|
elif ((updatedData['name'] == "mem") and (updatedData['type'] == "app")):
|
||||||
|
self.ptm['tooltip']['values'][updatedData['name']].append(updatedData['value'])
|
||||||
|
elif ((updatedData['name'] == "mem") and (updatedData['type'] == "used")):
|
||||||
|
self.ptm['tooltip']['bounds']['mem'] = self.ptm['values']['mem']['free'] + self.ptm['values']['mem']['used']
|
||||||
|
elif ((updatedData['name'] == "swap") and (updatedData['type'] == "used")):
|
||||||
|
self.ptm['tooltip']['values'][updatedData['name']].append(updatedData['value'])
|
||||||
|
self.ptm['tooltip']['bounds']['swap'] = self.ptm['values']['swap']['free'] + self.ptm['values']['swap']['used']
|
||||||
|
elif (updatedData['name'] == "net"):
|
||||||
|
self.ptm['tooltip']['values'][updatedData['type']].append(updatedData['value'])
|
||||||
|
self.update()
|
||||||
|
|
||||||
|
|
||||||
|
# update labels
|
||||||
def batText(self):
|
def batText(self):
|
||||||
"""function to set battery text"""
|
"""function to set battery text"""
|
||||||
line = self.batFormat
|
line = self.ptm['vars']['formats']['bat']
|
||||||
if (line.split('$bat')[0] != line):
|
if (line.split('$bat')[0] != line):
|
||||||
try:
|
try:
|
||||||
with open (self.battery_device, 'r') as bat_file:
|
with open (self.ptm['vars']['adv']['batDev'], 'r') as batFile:
|
||||||
bat = bat_file.readline().split('\n')[0]
|
bat = batFile.readline()[:-1]
|
||||||
except:
|
except:
|
||||||
bat = 'off'
|
bat = "off"
|
||||||
bat = "%3s" % (bat)
|
bat = "%3s" % (bat)
|
||||||
line = line.split('$bat')[0] + bat + line.split('$bat')[1]
|
line = line.split('$bat')[0] + bat + line.split('$bat')[1]
|
||||||
if (line.split('$ac')[0] != line):
|
if (line.split('$ac')[0] != line):
|
||||||
try:
|
try:
|
||||||
with open (self.ac_device, 'r') as bat_file:
|
with open (self.ptm['vars']['adv']['acDev'], 'r') as batFile:
|
||||||
bat = bat_file.readline().split('\n')[0]
|
bat = batFile.readline()[:-1]
|
||||||
if (bat == '1'):
|
if (bat == "1"):
|
||||||
bat = '(*)'
|
bat = self.ptm['vars']['adv']['acOnline']
|
||||||
else:
|
else:
|
||||||
bat = '( )'
|
bat = self.ptm['vars']['adv']['acOffline']
|
||||||
except:
|
except:
|
||||||
bat = '(?)'
|
bat = "N\\A"
|
||||||
line = line.split('$ac')[0] + bat + line.split('$ac')[1]
|
line = line.split('$ac')[0] + bat + line.split('$ac')[1]
|
||||||
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
self.label_bat.setText(text)
|
self.setText("bat", text)
|
||||||
|
|
||||||
|
|
||||||
def cpuText(self):
|
def cpuText(self):
|
||||||
"""function to set cpu text"""
|
"""function to set cpu text"""
|
||||||
line = self.cpuFormat
|
line = self.ptm['vars']['formats']['cpu']
|
||||||
for core in self.cpuCore.keys():
|
keys = self.ptm['values']['cpu'].keys()
|
||||||
if (core > -1):
|
keys.sort()
|
||||||
if (line.split('$cpu'+str(core))[0] != line):
|
keys.reverse()
|
||||||
line = line.split('$cpu'+str(core))[0] + self.cpuCore[core] + line.split('$cpu'+str(core))[1]
|
for core in keys[:-1]:
|
||||||
|
if (line.split('$cpu' + str(core))[0] != line):
|
||||||
|
value = "%5.1f" % (self.ptm['values']['cpu'][core])
|
||||||
|
line = line.split('$cpu' + str(core))[0] + value + line.split('$cpu' + str(core))[1]
|
||||||
if (line.split('$cpu')[0] != line):
|
if (line.split('$cpu')[0] != line):
|
||||||
line = line.split('$cpu')[0] + self.cpuCore[-1] + line.split('$cpu')[1]
|
value = "%5.1f" % (self.ptm['values']['cpu'][-1])
|
||||||
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
|
line = line.split('$cpu')[0] + value + line.split('$cpu')[1]
|
||||||
self.label_cpu.setText(text)
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
|
self.setText("cpu", text)
|
||||||
|
|
||||||
|
|
||||||
def cpuclockText(self):
|
def cpuclockText(self):
|
||||||
"""function to set cpu clock text"""
|
"""function to set cpu clock text"""
|
||||||
line = self.cpuclockFormat
|
line = self.ptm['vars']['formats']['cpuclock']
|
||||||
for core in self.cpuClockCore.keys():
|
keys = self.ptm['values']['cpuclock'].keys()
|
||||||
if (core > -1):
|
keys.sort()
|
||||||
if (line.split('$cpucl'+str(core))[0] != line):
|
keys.reverse()
|
||||||
line = line.split('$cpucl'+str(core))[0] + self.cpuClockCore[core] + line.split('$cpucl'+str(core))[1]
|
for core in keys[:-1]:
|
||||||
|
if (line.split('$cpucl' + str(core))[0] != line):
|
||||||
|
value = "%4.0f" % (self.ptm['values']['cpuclock'][core])
|
||||||
|
line = line.split('$cpucl' + str(core))[0] + value + line.split('$cpucl' + str(core))[1]
|
||||||
if (line.split('$cpucl')[0] != line):
|
if (line.split('$cpucl')[0] != line):
|
||||||
line = line.split('$cpucl')[0] + self.cpuClockCore[-1] + line.split('$cpucl')[1]
|
value = "%4.0f" % (self.ptm['values']['cpuclock'][-1])
|
||||||
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
|
line = line.split('$cpucl')[0] + value + line.split('$cpucl')[1]
|
||||||
self.label_cpuclock.setText(text)
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
|
self.setText("cpuclock", text)
|
||||||
|
|
||||||
|
|
||||||
|
def diskText(self):
|
||||||
|
line = self.ptm['vars']['formats']['disk']
|
||||||
|
devices = range(len(self.ptm['names']['disk']))
|
||||||
|
devices.reverse()
|
||||||
|
for i in devices:
|
||||||
|
if (line.split('$hddr' + str(i))[0] != line):
|
||||||
|
hdd = "%4i" % (self.ptm['values']['disk-r'][self.ptm['names']['disk'][i]])
|
||||||
|
line = line.split('$hddr' + str(i))[0] +\
|
||||||
|
hdd +\
|
||||||
|
line.split('$hddr' + str(i))[1]
|
||||||
|
if (line.split('$hddw' + str(i))[0] != line):
|
||||||
|
hdd = "%4i" % (self.ptm['values']['disk-w'][self.ptm['names']['disk'][i]])
|
||||||
|
line = line.split('$hddw' + str(i))[0] +\
|
||||||
|
hdd +\
|
||||||
|
line.split('$hddw' + str(i))[1]
|
||||||
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
|
self.setText("disk", text)
|
||||||
|
|
||||||
|
|
||||||
|
def hddText(self):
|
||||||
|
"""function to set hdd text"""
|
||||||
|
line = self.ptm['vars']['formats']['hdd']
|
||||||
|
devices = range(len(self.ptm['names']['hdd']))
|
||||||
|
devices.reverse()
|
||||||
|
for i in devices:
|
||||||
|
if (line.split('$hdd' + str(i))[0] != line):
|
||||||
|
hdd = "%4.1f" % (self.ptm['values']['hdd'][self.ptm['names']['hdd'][i]])
|
||||||
|
line = line.split('$hdd' + str(i))[0] +\
|
||||||
|
hdd +\
|
||||||
|
line.split('$hdd' + str(i))[1]
|
||||||
|
if (line.split('$hddmb' + str(i))[0] != line):
|
||||||
|
hdd = "%i" % (self.ptm['values']['hddmb'][self.ptm['names']['hdd'][i]] / 1024.0)
|
||||||
|
line = line.split('$hddmb' + str(i))[0] +\
|
||||||
|
str(int(self.ptm['values']['hddmb'][self.ptm['names']['hdd'][i]] / 1024.0)) +\
|
||||||
|
line.split('$hddmb' + str(i))[1]
|
||||||
|
if (line.split('$hddgb' + str(i))[0] != line):
|
||||||
|
hdd = "%4.1f" % (self.ptm['values']['hddmb'][self.ptm['names']['hdd'][i]] / (1024.0 * 1024.0))
|
||||||
|
line = line.split('$hddgb' + str(i))[0] +\
|
||||||
|
hdd +\
|
||||||
|
line.split('$hddgb' + str(i))[1]
|
||||||
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
|
self.setText("hdd", text)
|
||||||
|
|
||||||
|
|
||||||
|
def hddtempText(self):
|
||||||
|
"""function to set hddtemp text"""
|
||||||
|
line = self.ptm['vars']['formats']['hddtemp']
|
||||||
|
devices = range(len(self.ptm['names']['hddtemp']))
|
||||||
|
devices.reverse()
|
||||||
|
for i in devices:
|
||||||
|
if (line.split('$hddtemp' + str(i))[0] != line):
|
||||||
|
line = line.split('$hddtemp' + str(i))[0] +\
|
||||||
|
getTemp(str(self.ptm['values']['hddtemp'][self.ptm['names']['hddtemp'][i]]), self.ptm['vars']['adv']['tempUnit']) +\
|
||||||
|
line.split('$hddtemp' + str(i))[1]
|
||||||
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
|
self.setText("hddtemp", text)
|
||||||
|
|
||||||
|
|
||||||
def memText(self):
|
def memText(self):
|
||||||
"""function to set mem text"""
|
"""function to set mem text"""
|
||||||
|
line = self.ptm['vars']['formats']['mem']
|
||||||
|
if (line.split('$memgb')[0] != line):
|
||||||
|
mem = "%4.1f" % (self.ptm['values']['mem']['app'] / (1024.0 * 1024.0))
|
||||||
|
line = line.split('$memgb')[0] + mem + line.split('$memgb')[1]
|
||||||
|
if (line.split('$memmb')[0] != line):
|
||||||
|
mem = "%i" % (self.ptm['values']['mem']['app'] / 1024.0)
|
||||||
|
line = line.split('$memmb')[0] + mem + line.split('$memmb')[1]
|
||||||
|
if (line.split('$mem')[0] != line):
|
||||||
try:
|
try:
|
||||||
mem = 100 * self.memValues['used'] / self.memValues['total']
|
mem = 100 * self.ptm['values']['mem']['app'] / (self.ptm['values']['mem']['free'] + self.ptm['values']['mem']['used'])
|
||||||
mem = "%5s" % (str(round(mem, 1)))
|
mem = "%5.1f" % (round(mem, 1))
|
||||||
except:
|
except:
|
||||||
mem = " N\\A"
|
mem = " N\\A"
|
||||||
if (self.memFormat.split('$mem')[0] != self.memFormat):
|
line = line.split('$mem')[0] + mem + line.split('$mem')[1]
|
||||||
line = self.memFormat.split('$mem')[0] + mem + self.memFormat.split('$mem')[1]
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
else:
|
self.setText("mem", text)
|
||||||
line = self.memFormat
|
|
||||||
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
|
|
||||||
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):
|
def netText(self):
|
||||||
"""function to set network text"""
|
"""function to set network text"""
|
||||||
line = self.netFormat
|
line = self.ptm['vars']['formats']['net']
|
||||||
if (line.split('$up')[0] != line):
|
if (line.split('$netdev')[0] != 0):
|
||||||
line = line.split('$up')[0] + self.netSpeed['up'] + line.split('$up')[1]
|
line = line.split('$netdev')[0] + self.ptm['names']['net'] + line.split('$netdev')[1]
|
||||||
if (line.split('$down')[0] != line):
|
if (line.split('$down')[0] != line):
|
||||||
line = line.split('$down')[0] + self.netSpeed['down'] + line.split('$down')[1]
|
value = "%4.0f" %(self.ptm['values']['net']['down'])
|
||||||
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
|
line = line.split('$down')[0] + value + line.split('$down')[1]
|
||||||
self.label_net.setText(text)
|
if (line.split('$up')[0] != line):
|
||||||
|
value = "%4.0f" %(self.ptm['values']['net']['up'])
|
||||||
|
line = line.split('$up')[0] + value + line.split('$up')[1]
|
||||||
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
|
self.setText("net", text)
|
||||||
|
|
||||||
|
|
||||||
def swapText(self):
|
def swapText(self):
|
||||||
"""function to set swap text"""
|
"""function to set swap text"""
|
||||||
|
line = self.ptm['vars']['formats']['swap']
|
||||||
|
if (line.split('$swapgb')[0] != line):
|
||||||
|
mem = "%4.1f" % (self.ptm['values']['swap']['used'] / (1024.0 * 1024.0))
|
||||||
|
line = line.split('$swapgb')[0] + mem + line.split('$swapgb')[1]
|
||||||
|
if (line.split('$swapmb')[0] != line):
|
||||||
|
mem = "%i" % (self.ptm['values']['swap']['used'] / 1024.0)
|
||||||
|
line = line.split('$swapmb')[0] + mem + line.split('$swapmb')[1]
|
||||||
|
if (line.split('$swap')[0] != line):
|
||||||
try:
|
try:
|
||||||
mem = 100 * self.swapValues['used'] / self.swapValues['total']
|
mem = 100 * self.ptm['values']['swap']['used'] / (self.ptm['values']['swap']['free'] + self.ptm['values']['swap']['used'])
|
||||||
mem = "%5s" % (str(round(mem, 1)))
|
mem = "%5.1f" % (round(mem, 1))
|
||||||
except:
|
except:
|
||||||
mem = " N\\A"
|
mem = " N\\A"
|
||||||
if (self.swapFormat.split('$swap')[0] != self.swapFormat):
|
line = line.split('$swap')[0] + mem + line.split('$swap')[1]
|
||||||
line = self.swapFormat.split('$swap')[0] + mem + self.swapFormat.split('$swap')[1]
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
else:
|
self.setText("swap", text)
|
||||||
line = self.swapFormat
|
|
||||||
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
|
|
||||||
self.label_swap.setText(text)
|
|
||||||
|
|
||||||
|
|
||||||
def tempText(self):
|
def tempText(self):
|
||||||
"""function to set temperature text"""
|
"""function to set temperature text"""
|
||||||
line = self.tempFormat
|
line = self.ptm['vars']['formats']['temp']
|
||||||
for i in range(len(self.tempNames)):
|
devices = range(len(self.ptm['names']['temp']))
|
||||||
if (line.split('$temp'+str(i))[0] != line):
|
devices.reverse()
|
||||||
line = line.split('$temp'+str(i))[0] + self.temp[self.tempNames[i]] + line.split('$temp'+str(i))[1]
|
for i in devices:
|
||||||
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
|
if (line.split('$temp' + str(i))[0] != line):
|
||||||
self.label_temp.setText(text)
|
line = line.split('$temp' + str(i))[0] +\
|
||||||
|
getTemp(str(self.ptm['values']['temp'][self.ptm['names']['temp'][i]]), self.ptm['vars']['adv']['tempUnits']) +\
|
||||||
|
line.split('$temp' + str(i))[1]
|
||||||
|
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
|
self.setText("temp", text)
|
||||||
|
|
||||||
|
|
||||||
@pyqtSignature("dataUpdated(const QString &, const Plasma::DataEngine::Data &)")
|
# external functions
|
||||||
def dataUpdated(self, sourceName, data):
|
def addLabel(self, name=None, text=None, add=True):
|
||||||
"""function to update label"""
|
"""function to add new label"""
|
||||||
self.dataengine.dataUpdated(sourceName, data)
|
if (add):
|
||||||
|
self.ptm['labels'][name] = CustomPlasmaLabel(self.applet, name)
|
||||||
|
self.ptm['layout'].addItem(self.ptm['labels'][name])
|
||||||
|
self.setText(name, text)
|
||||||
|
else:
|
||||||
|
self.setText(name, '')
|
||||||
|
self.ptm['layout'].removeItem(self.ptm['labels'][name])
|
||||||
|
|
||||||
|
|
||||||
|
def applySettings(self, name=None, ptm=None):
|
||||||
|
"""function to read settings"""
|
||||||
|
self.ptm[name] = ptm
|
||||||
|
if (name == "names"):
|
||||||
|
for item in ['hddtemp', 'temp']:
|
||||||
|
for value in self.ptm['names'][item]:
|
||||||
|
self.ptm['values'][item][value] = 0.0
|
||||||
|
for value in self.ptm['names']['hdd']:
|
||||||
|
self.ptm['values']['hdd'][value] = 0.0
|
||||||
|
self.ptm['values']['hddmb'][value] = 0.0
|
||||||
|
for value in self.ptm['names']['disk']:
|
||||||
|
self.ptm['values']['disk-r'][value] = 0.0
|
||||||
|
self.ptm['values']['disk-w'][value] = 0.0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def connectToEngine(self):
|
||||||
|
"""function to connect to dataengines"""
|
||||||
|
self.ptm['dataengine']['ext'] = self.dataEngine("ext-sysmon")
|
||||||
|
self.ptm['dataengine']['system'] = self.dataEngine("systemmonitor")
|
||||||
|
self.ptm['dataengine']['time'] = self.dataEngine("time")
|
||||||
|
QObject.connect(self.ptm['dataengine']['system'], SIGNAL("sourceAdded(QString)"), self.addDiskDevice)
|
||||||
|
self.dataengine.connectToEngine(self.ptm['vars']['bools'], self.ptm['dataengine'],
|
||||||
|
self.ptm['vars']['app']['interval'], self.ptm['names'])
|
||||||
|
|
||||||
|
|
||||||
|
def disconnectFromSource(self):
|
||||||
|
"""function to disconnect from sources"""
|
||||||
|
for label in self.ptm['defaults']['format'].keys():
|
||||||
|
if (self.ptm['vars']['bools'][label] > 0):
|
||||||
|
self.addLabel(label, None, False)
|
||||||
|
keys = {'cpu':self.ptm['values']['cpu'].keys(), 'cpuclock':self.ptm['values']['cpuclock'].keys(),
|
||||||
|
'disk':self.ptm['values']['disk-r'].keys(), 'hdd':self.ptm['values']['hdd'].keys(),
|
||||||
|
'net':self.ptm['names']['net'], 'temp':self.ptm['values']['temp'].keys()}
|
||||||
|
self.dataengine.disconnectFromSource(self.ptm['dataengine'], keys, label)
|
||||||
|
|
||||||
|
|
||||||
|
def reInit(self):
|
||||||
|
"""function to run reinit"""
|
||||||
|
self.reinit.reinit()
|
||||||
|
if (self.ptm['vars']['adv']['netdevBool'] == 0):
|
||||||
|
self.ptm['names']['net'] = self.setNetdev()
|
||||||
|
self.resize(10, 10)
|
||||||
|
|
||||||
|
# create dataengines
|
||||||
|
self.thread().wait(60000)
|
||||||
|
self.connectToEngine()
|
||||||
|
|
||||||
|
self.timer.setInterval(self.ptm['vars']['app']['interval'])
|
||||||
|
self.startPolling()
|
||||||
|
|
||||||
|
|
||||||
|
def setNetdev(self):
|
||||||
|
"""function to set network device"""
|
||||||
|
netdev = "lo"
|
||||||
|
netdir = self.ptm['vars']['adv']['netDir']
|
||||||
|
interfaces = QDir.entryList(QDir(netdir), QDir.Dirs | QDir.NoDotAndDotDot)
|
||||||
|
for device in interfaces:
|
||||||
|
if (str(device) != "lo"):
|
||||||
|
#try:
|
||||||
|
if True:
|
||||||
|
with open(netdir + '/' + str(device) + '/operstate', 'r') as stateFile:
|
||||||
|
if (stateFile.readline() == "up\n"):
|
||||||
|
netdev = str(device)
|
||||||
|
#except:
|
||||||
|
#pass
|
||||||
|
return netdev
|
||||||
|
|
||||||
|
|
||||||
|
def setText(self, name=None, text=None):
|
||||||
|
"""function to set text to labels"""
|
||||||
|
self.ptm['labels'][name].setText(text)
|
||||||
|
|
||||||
|
|
||||||
|
def textPrepare(self, name=None, text=None):
|
||||||
|
"""function to prepare text"""
|
||||||
|
line = self.ptm['vars']['formats'][name]
|
||||||
|
if (name == "custom"):
|
||||||
|
cmds = range(len(text.keys()))
|
||||||
|
cmds.reverse()
|
||||||
|
for i in cmds:
|
||||||
|
if (line.split('$custom' + str(i))[0] != line):
|
||||||
|
line = line.split('$custom' + str(i))[0] + \
|
||||||
|
text['custom'+str(i)] + \
|
||||||
|
line.split('$custom' + str(i))[1]
|
||||||
|
elif (name == "gpu"):
|
||||||
|
if (line.split('$gpu')[0] != line):
|
||||||
|
line = line.split('$gpu')[0] + text + line.split('$gpu')[1]
|
||||||
|
elif (name == "gputemp"):
|
||||||
|
if (line.split('$gputemp')[0] != line):
|
||||||
|
line = line.split('$gputemp')[0] + getTemp(text, self.ptm['vars']['adv']['tempUnits']) + line.split('$gputemp')[1]
|
||||||
|
elif (name == "pkg"):
|
||||||
|
pkgs = range(len(text.keys()))
|
||||||
|
pkgs.reverse()
|
||||||
|
for i in pkgs:
|
||||||
|
if (line.split('$pkgcount' + str(i))[0] != line):
|
||||||
|
line = line.split('$pkgcount' + str(i))[0] + \
|
||||||
|
text['pkgcount'+str(i)] + \
|
||||||
|
line.split('$pkgcount' + str(i))[1]
|
||||||
|
elif (name == "player"):
|
||||||
|
if (line.split('$album')[0] != line):
|
||||||
|
line = line.split('$album')[0] + text['album'] + line.split('$album')[1]
|
||||||
|
if (line.split('$artist')[0] != line):
|
||||||
|
line = line.split('$artist')[0] + text['artist'] + line.split('$artist')[1]
|
||||||
|
if (line.split('$progress')[0] != line):
|
||||||
|
line = line.split('$progress')[0] + text['progress'] + line.split('$progress')[1]
|
||||||
|
if (line.split('$time')[0] != line):
|
||||||
|
line = line.split('$time')[0] + text['time'] + line.split('$time')[1]
|
||||||
|
if (line.split('$title')[0] != line):
|
||||||
|
line = line.split('$title')[0] + text['title'] + line.split('$title')[1]
|
||||||
|
elif (name == "ps"):
|
||||||
|
if (line.split('$pscount')[0] != line):
|
||||||
|
line = line.split('$pscount')[0] + text['num'] + line.split('$pscount')[1]
|
||||||
|
if (line.split('$pstotal')[0] != line):
|
||||||
|
line = line.split('$pstotal')[0] + text['total'] + line.split('$pstotal')[1]
|
||||||
|
if (line.split('$ps')[0] != line):
|
||||||
|
line = line.split('$ps')[0] + text['list'] + line.split('$ps')[1]
|
||||||
|
elif (name == "time"):
|
||||||
|
if (line.split('$time')[0] != line):
|
||||||
|
line = line.split('$time')[0] + text + line.split('$time')[1]
|
||||||
|
elif (line.split('$isotime')[0] != line):
|
||||||
|
line = line.split('$isotime')[0] + text + line.split('$isotime')[1]
|
||||||
|
elif (line.split('$shorttime')[0] != line):
|
||||||
|
line = line.split('$shorttime')[0] + text + line.split('$shorttime')[1]
|
||||||
|
elif (line.split('$longtime')[0] != line):
|
||||||
|
line = line.split('$longtime')[0] + text + line.split('$longtime')[1]
|
||||||
|
elif (line.split('$custom')[0] != line):
|
||||||
|
line = line.split('$custom')[0] + text + line.split('$custom')[1]
|
||||||
|
elif (name == "uptime"):
|
||||||
|
if (line.split('$uptime')[0] != line):
|
||||||
|
line = line.split('$uptime')[0] + text + line.split('$uptime')[1]
|
||||||
|
elif (line.split('$custom')[0] != line):
|
||||||
|
line = line.split('$custom')[0] + text + line.split('$custom')[1]
|
||||||
|
output = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||||
|
return output
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,12 +26,11 @@ import commands
|
|||||||
class PTMNotify:
|
class PTMNotify:
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
"""class definition"""
|
"""class definition"""
|
||||||
self.parent = parent
|
|
||||||
|
|
||||||
|
|
||||||
def init(self):
|
def init(self, name=None):
|
||||||
"""function to init notification"""
|
"""function to init notification"""
|
||||||
content = self.initText(self.parent)
|
content = self.initText(name)
|
||||||
self.createNotify(content)
|
self.createNotify(content)
|
||||||
|
|
||||||
|
|
||||||
@ -47,27 +46,15 @@ class PTMNotify:
|
|||||||
def createText(self, type):
|
def createText(self, type):
|
||||||
"""function to create text"""
|
"""function to create text"""
|
||||||
text = ""
|
text = ""
|
||||||
if (type == "system"):
|
if (type == "battery"):
|
||||||
try:
|
try:
|
||||||
text = text + "Kernel: %s\n" %(commands.getoutput("uname -rsm"))
|
text = "%s" %(commands.getoutput("acpi -abi"))
|
||||||
text = text + "Hostname: %s\n" %(commands.getoutput("uname -n"))
|
|
||||||
text = text + "Whoami: %s\n" %(commands.getoutput("whoami"))
|
|
||||||
text = text + "Uptime: %s\n" %(commands.getoutput("uptime"))
|
|
||||||
except:
|
except:
|
||||||
text = "Something wrong"
|
text = "Something wrong"
|
||||||
elif (type == "processor"):
|
elif (type == "disk"):
|
||||||
try:
|
try:
|
||||||
output = commands.getoutput("grep 'model name' /proc/cpuinfo | head -1")
|
for line in commands.getoutput("df -h --output='source,target,used,size,pcent' --exclude-type=fuseblk --exclude-type=tmpfs --exclude-type=devtmpfs").split("\n")[1:]:
|
||||||
text = text + "Model: %s\n" %(' '.join(output.split()[3:]))
|
text = text + "%s (to %s): %s of %s (%s)\n" % (line.split()[0], line.split()[1], line.split()[2], line.split()[3], line.split()[4])
|
||||||
output = commands.getoutput("sar -u | tail -1")
|
|
||||||
text = text + "CPU Usage: %s%%\n" %(str(100-float(output.split()[-1])))
|
|
||||||
output = commands.getoutput("grep MHz /proc/cpuinfo | head -1")
|
|
||||||
text = text + "CPU Freq: %s MHz\n" %(str(int(float(output.split()[-1]))))
|
|
||||||
output = commands.getoutput("sensors -u")
|
|
||||||
text = text + "Temps:"
|
|
||||||
for line in output.split("\n"):
|
|
||||||
if (line.find("_input") > -1):
|
|
||||||
text = text + " %s\xb0C" %(str(round(float(line.split()[-1]), 0)))
|
|
||||||
except:
|
except:
|
||||||
text = "Something wrong"
|
text = "Something wrong"
|
||||||
elif (type == "graphical"):
|
elif (type == "graphical"):
|
||||||
@ -78,87 +65,83 @@ class PTMNotify:
|
|||||||
elif (output.lower().find('radeon') > -1):
|
elif (output.lower().find('radeon') > -1):
|
||||||
gpudev = "ati"
|
gpudev = "ati"
|
||||||
for line in output.split("\n"):
|
for line in output.split("\n"):
|
||||||
text = text + "%s %s\n" %(line.split('"')[0], line.split('"')[5])
|
text = text + "%s %s\n" % (line.split('"')[0], line.split('"')[5])
|
||||||
if (gpudev == 'nvidia'):
|
if (gpudev == 'nvidia'):
|
||||||
output = commands.getoutput("nvidia-smi -q -d UTILIZATION | grep Gpu | tail -n1")
|
output = commands.getoutput("nvidia-smi -q -d UTILIZATION | grep Gpu | tail -n1")
|
||||||
try:
|
try:
|
||||||
value = "%5s" % (str(round(float(output.split()[2][:-1]), 1)))
|
value = "%5.1f" % (round(float(output.split()[2]), 1))
|
||||||
except:
|
except:
|
||||||
value = " N\A"
|
value = " N\A"
|
||||||
elif (gpudev == 'ati'):
|
elif (gpudev == 'ati'):
|
||||||
output = commands.getoutput("aticonfig --od-getclocks | grep load | tail -n1")
|
output = commands.getoutput("aticonfig --od-getclocks | grep load | tail -n1")
|
||||||
try:
|
try:
|
||||||
value = "%5s" % (str(round(float(output.split()[3][:-1]), 1)))
|
value = "%5.1f" % (round(float(output.split()[3]), 1))
|
||||||
except:
|
except:
|
||||||
value = " N\A"
|
value = " N\A"
|
||||||
else:
|
else:
|
||||||
value = " N\A"
|
value = " N\A"
|
||||||
text = text + "Load: %s%%\n" %(value)
|
text = text + "Load: %s%%\n" % (value)
|
||||||
if (gpudev == 'nvidia'):
|
if (gpudev == 'nvidia'):
|
||||||
output = commands.getoutput("nvidia-smi -q -d TEMPERATURE | grep Gpu | tail -n1")
|
output = commands.getoutput("nvidia-smi -q -d TEMPERATURE | grep Gpu | tail -n1")
|
||||||
try:
|
try:
|
||||||
value = "%5s" % (str(round(float(output.split()[2][:-1]), 1)))
|
value = "%5.1f" % (round(float(output.split()[2]), 1))
|
||||||
except:
|
except:
|
||||||
value = " N\A"
|
value = " N\A"
|
||||||
elif (gpudev == 'ati'):
|
elif (gpudev == 'ati'):
|
||||||
output = commands.getoutput("aticonfig --od-gettemperature | grep Temperature | tail -n1")
|
output = commands.getoutput("aticonfig --od-gettemperature | grep Temperature | tail -n1")
|
||||||
try:
|
try:
|
||||||
value = "%5s" % (str(round(float(output.split()[3][:-1]), 1)))
|
value = "%5.1f" % (round(float(output.split()[3]), 1))
|
||||||
except:
|
except:
|
||||||
value = " N\A"
|
value = " N\A"
|
||||||
else:
|
else:
|
||||||
value = " N\A"
|
value = " N\A"
|
||||||
text = text + "Temp: %s\xb0C\n" %(value)
|
text = text + "Temp: %s\xb0C\n" % (value)
|
||||||
except:
|
except:
|
||||||
text = "Something wrong"
|
text = "Something wrong"
|
||||||
elif (type == "memory"):
|
elif (type == "memory"):
|
||||||
try:
|
try:
|
||||||
output = commands.getoutput("free -m -o").split("\n")
|
output = commands.getoutput("free -m -o").split("\n")
|
||||||
memusage = int(output[1].split()[1]) - (int(output[1].split()[3]) + int(output[1].split()[5]) + int(output[1].split()[6]))
|
memUsage = int(output[1].split()[1]) - (int(output[1].split()[3]) + int(output[1].split()[5]) + int(output[1].split()[6]))
|
||||||
text = text + "Memory: %s of %s (%s%%)\n" %(str(memusage), output[1].split()[1], str(int(100*memusage/int(output[1].split()[1]))))
|
text = text + "Memory: %i of %s (%i%%)\n" % (memUsage, output[1].split()[1], int(100*memUsage/int(output[1].split()[1])))
|
||||||
text = text + "Swap: %s of %s (%s%%)\n" %(output[2].split()[2], output[2].split()[1], str(int(100*int(output[2].split()[2])/int(output[2].split()[1]))))
|
text = text + "Swap: %s of %s (%i%%)\n" % (output[2].split()[2], output[2].split()[1], int(100*int(output[2].split()[2])/int(output[2].split()[1])))
|
||||||
output = commands.getoutput("swapon --show").split("\n")
|
output = commands.getoutput("swapon --show").split("\n")
|
||||||
text = text + "Swap Device: %s (%s)" %(output[1].split()[0], output[1].split()[1])
|
text = text + "Swap Device: %s (%s)" % (output[1].split()[0], output[1].split()[1])
|
||||||
except:
|
|
||||||
text = "Something wrong"
|
|
||||||
elif (type == "disk"):
|
|
||||||
try:
|
|
||||||
output = commands.getoutput("df -h --output='source,target,used,size,pcent' --exclude-type=fuseblk --exclude-type=tmpfs --exclude-type=devtmpfs").split("\n")[1:]
|
|
||||||
for line in output:
|
|
||||||
text = text + "%s (to %s): %s of %s (%s)\n" %(line.split()[0], line.split()[1], line.split()[2], line.split()[3], line.split()[4])
|
|
||||||
except:
|
except:
|
||||||
text = "Something wrong"
|
text = "Something wrong"
|
||||||
elif (type == "network"):
|
elif (type == "network"):
|
||||||
try:
|
try:
|
||||||
output = commands.getoutput("ifconfig -a -s").split("\n")[1:]
|
output = commands.getoutput("ifconfig -a -s").split("\n")[1:]
|
||||||
text = text + "Devices:"
|
devices = [line.split()[0] for line in output]
|
||||||
for line in output:
|
text = text + "Devices: %s\n" % (' '.join(devices))
|
||||||
text = text + " %s" %(line.split()[0])
|
for dev in devices:
|
||||||
output = commands.getoutput("ifconfig -a -s " + self.parent.parent.netdev + " && sleep 0.2 && ifconfig -a -s " + self.parent.parent.netdev).split("\n")
|
output = commands.getoutput("ifconfig -a -s " + dev + " && sleep 0.2 && ifconfig -a -s " + dev).split("\n")
|
||||||
download = int((int(output[3].split()[2]) - int(output[1].split()[2])) / (0.2 * 1024))
|
download = int((int(output[3].split()[2]) - int(output[1].split()[2])) / (0.2 * 1024))
|
||||||
upload = int((int(output[3].split()[6]) - int(output[1].split()[6])) / (0.2 * 1024))
|
upload = int((int(output[3].split()[6]) - int(output[1].split()[6])) / (0.2 * 1024))
|
||||||
text = text + "\n%s: %s/%s KB/s\n" %(self.parent.parent.netdev, download, upload)
|
text = text + "%s: %i/%i KB/s" % (dev, download, upload)
|
||||||
output = commands.getoutput("ifconfig " + self.parent.parent.netdev + " | grep 'inet '").split()[1]
|
output = commands.getoutput("ifconfig " + dev + " | grep 'inet ' || echo ' inet Null'").split()[1]
|
||||||
text = text + "IP: %s\n" %(output[:-1])
|
text = text + " (IP: %s)\n" % (output)
|
||||||
output = commands.getoutput("wget http://checkip.dyndns.org/ -q -O - | awk '{print $6}' | sed 's/<.*>//g'")
|
output = commands.getoutput("wget -qO- http://ifconfig.me/ip")
|
||||||
text = text + "External IP: %s" %(output[:-1])
|
text = text + "External IP: %s" % (output)
|
||||||
except:
|
except:
|
||||||
text = "Something wrong"
|
text = "Something wrong"
|
||||||
elif (type == "battery"):
|
elif (type == "player"):
|
||||||
try:
|
|
||||||
text = text + "%s" %(commands.getoutput("acpi -abi"))
|
|
||||||
except:
|
|
||||||
text = "Something wrong"
|
|
||||||
elif (type == "musicplayer"):
|
|
||||||
try:
|
try:
|
||||||
artist = "N\\A"
|
artist = "N\\A"
|
||||||
album = "N\\A"
|
album = "N\\A"
|
||||||
title = "N\\A"
|
title = "N\\A"
|
||||||
if (self.parent.parent.player_name == 0):
|
if (len(commands.getoutput("pgrep amarok")) > 0):
|
||||||
|
player = "amarok"
|
||||||
|
elif (len(commands.getoutput("pgrep mpd")) > 0):
|
||||||
|
player = "mpd"
|
||||||
|
elif (len(commands.getoutput("pgrep qmmp")) > 0):
|
||||||
|
player = "qmmp"
|
||||||
|
else:
|
||||||
|
player = ""
|
||||||
|
if (player == "amarok"):
|
||||||
artist = commands.getoutput("qdbus org.kde.amarok /Player GetMetadata 2> /dev/null | grep albumartist: | cut -c14-")
|
artist = commands.getoutput("qdbus org.kde.amarok /Player GetMetadata 2> /dev/null | grep albumartist: | cut -c14-")
|
||||||
album = commands.getoutput("qdbus org.kde.amarok /Player GetMetadata 2> /dev/null | grep album: | cut -c8-")
|
album = commands.getoutput("qdbus org.kde.amarok /Player GetMetadata 2> /dev/null | grep album: | cut -c8-")
|
||||||
title = commands.getoutput("qdbus org.kde.amarok /Player GetMetadata 2> /dev/null | grep title: | cut -c8-")
|
title = commands.getoutput("qdbus org.kde.amarok /Player GetMetadata 2> /dev/null | grep title: | cut -c8-")
|
||||||
elif (self.parent.parent.player_name == 1):
|
elif (player == "mpd"):
|
||||||
output = commands.getoutput("echo 'currentsong\nclose' | curl --connect-timeout 1 -fsm 3 telnet://localhost:6600 2> /dev/null")
|
output = commands.getoutput("echo 'currentsong\nclose' | curl --connect-timeout 1 -fsm 3 telnet://localhost:6600 2> /dev/null")
|
||||||
for line in output.split("\n"):
|
for line in output.split("\n"):
|
||||||
if (line.split(": ")[0] == "Artist"):
|
if (line.split(": ")[0] == "Artist"):
|
||||||
@ -167,107 +150,77 @@ class PTMNotify:
|
|||||||
album = line.split(": ")[1]
|
album = line.split(": ")[1]
|
||||||
elif (line.split(": ")[0] == "Title"):
|
elif (line.split(": ")[0] == "Title"):
|
||||||
title = line.split(": ")[1]
|
title = line.split(": ")[1]
|
||||||
elif (self.parent.parent.player_name == 2):
|
elif (player == "qmmp"):
|
||||||
artist = commands.getoutput("qmmp --nowplaying '%if(%p,%p,Unknown)' 2> /dev/null")
|
artist = commands.getoutput("qmmp --nowplaying '%if(%p,%p,Unknown)' 2> /dev/null")
|
||||||
album = commands.getoutput("qmmp --nowplaying '%if(%a,%a,Unknown)' 2> /dev/null")
|
album = commands.getoutput("qmmp --nowplaying '%if(%a,%a,Unknown)' 2> /dev/null")
|
||||||
title = commands.getoutput("qmmp --nowplaying '%if(%t,%t,Unknown)' 2> /dev/null")
|
title = commands.getoutput("qmmp --nowplaying '%if(%t,%t,Unknown)' 2> /dev/null")
|
||||||
text = text + "Artist: %s\nAlbum: %s\nTitle: %s" %(artist, album, title)
|
text = text + "Artist: %s\nAlbum: %s\nTitle: %s" % (artist, album, title)
|
||||||
|
except:
|
||||||
|
text = "Something wrong"
|
||||||
|
elif (type == "processor"):
|
||||||
|
try:
|
||||||
|
output = commands.getoutput("grep 'model name' /proc/cpuinfo | head -1")
|
||||||
|
text = text + "Model: %s\n" % (' '.join(output.split()[3:]))
|
||||||
|
output = commands.getoutput("sar -u | tail -1")
|
||||||
|
text = text + "CPU Usage: %5.1f%%\n" % (100-float(output.split()[-1]))
|
||||||
|
output = commands.getoutput("grep MHz /proc/cpuinfo | head -1")
|
||||||
|
text = text + "CPU Freq: %i MHz\n" % (int(float(output.split()[-1])))
|
||||||
|
output = commands.getoutput("sensors -u")
|
||||||
|
text = text + "Temps:"
|
||||||
|
for line in output.split("\n"):
|
||||||
|
if (line.find("_input") > -1):
|
||||||
|
text = text + " %3.0f\xb0C" % (round(float(line.split()[-1]), 0))
|
||||||
|
except:
|
||||||
|
text = "Something wrong"
|
||||||
|
elif (type == "system"):
|
||||||
|
try:
|
||||||
|
text = text + "Kernel: %s\n" % (commands.getoutput("uname -rsm"))
|
||||||
|
text = text + "Hostname: %s\n" % (commands.getoutput("uname -n"))
|
||||||
|
text = text + "Whoami: %s\n" % (commands.getoutput("whoami"))
|
||||||
|
text = text + "Uptime: %s\n" % (commands.getoutput("uptime"))
|
||||||
except:
|
except:
|
||||||
text = "Something wrong"
|
text = "Something wrong"
|
||||||
|
|
||||||
content = [type, text]
|
content = [type, text]
|
||||||
return content
|
return content
|
||||||
|
|
||||||
|
|
||||||
def initText(self, sender):
|
def initText(self, name):
|
||||||
"""function to send text"""
|
"""function to send text"""
|
||||||
try:
|
if (name == "bat"):
|
||||||
if (sender == self.parent.parent.label_time):
|
return self.createText("battery")
|
||||||
content = self.createText("system")
|
elif (name == "cpu"):
|
||||||
return content
|
return self.createText("processor")
|
||||||
except:
|
elif (name == "cpuclock"):
|
||||||
pass
|
return self.createText("processor")
|
||||||
try:
|
elif (name == "custom"):
|
||||||
if (sender == self.parent.parent.label_uptime):
|
return self.createText("system")
|
||||||
content = self.createText("system")
|
elif (name == "disk"):
|
||||||
return content
|
return self.createText("disk")
|
||||||
except:
|
elif (name == "gpu"):
|
||||||
pass
|
return self.createText("graphical")
|
||||||
try:
|
elif (name == "gputemp"):
|
||||||
if (sender == self.parent.parent.label_cpu):
|
return self.createText("graphical")
|
||||||
content = self.createText("processor")
|
elif (name == "hdd"):
|
||||||
return content
|
return self.createText("disk")
|
||||||
except:
|
elif (name == "hddtemp"):
|
||||||
pass
|
return self.createText("disk")
|
||||||
try:
|
elif (name == "mem"):
|
||||||
if (sender == self.parent.parent.label_cpuclock):
|
return self.createText("memory")
|
||||||
content = self.createText("processor")
|
elif (name == "net"):
|
||||||
return content
|
return self.createText("network")
|
||||||
except:
|
elif (name == "pkg"):
|
||||||
pass
|
return self.createText("system")
|
||||||
try:
|
elif (name == "player"):
|
||||||
if (sender == self.parent.parent.label_temp):
|
return self.createText("player")
|
||||||
content = self.createText("processor")
|
elif (name == "ps"):
|
||||||
return content
|
return self.createText("system")
|
||||||
except:
|
elif (name == "swap"):
|
||||||
pass
|
return self.createText("memory")
|
||||||
try:
|
elif (name == "temp"):
|
||||||
if (sender == self.parent.parent.label_gpu):
|
return self.createText("processor")
|
||||||
content = self.createText("graphical")
|
elif (name == "time"):
|
||||||
return content
|
return self.createText("system")
|
||||||
except:
|
elif (name == "uptime"):
|
||||||
pass
|
return self.createText("system")
|
||||||
try:
|
else:
|
||||||
if (sender == self.parent.parent.label_gputemp):
|
return None
|
||||||
content = self.createText("graphical")
|
|
||||||
return content
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
if (sender == self.parent.parent.label_mem):
|
|
||||||
content = self.createText("memory")
|
|
||||||
return content
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
if (sender == self.parent.parent.label_swap):
|
|
||||||
content = self.createText("memory")
|
|
||||||
return content
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
if (sender == self.parent.parent.label_hdd):
|
|
||||||
content = self.createText("disk")
|
|
||||||
return content
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
if (sender == self.parent.parent.label_hddtemp):
|
|
||||||
content = self.createText("disk")
|
|
||||||
return content
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
if (sender == self.parent.parent.label_net):
|
|
||||||
content = self.createText("network")
|
|
||||||
return content
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
if (sender == self.parent.parent.label_bat):
|
|
||||||
content = self.createText("battery")
|
|
||||||
return content
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
if (sender == self.parent.parent.label_player):
|
|
||||||
content = self.createText("musicplayer")
|
|
||||||
return content
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
if (sender == self.parent.parent.label_custom):
|
|
||||||
content = self.createText("system")
|
|
||||||
return content
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
@ -19,247 +19,80 @@
|
|||||||
|
|
||||||
from PyQt4.QtCore import *
|
from PyQt4.QtCore import *
|
||||||
from PyQt4.QtGui import *
|
from PyQt4.QtGui import *
|
||||||
from PyKDE4.plasma import Plasma
|
|
||||||
import config
|
import config
|
||||||
import ptmnotify
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class NewPlasmaLabel(Plasma.Label):
|
|
||||||
"""new Label with defined clicked() event"""
|
|
||||||
def __init__(self, applet, parent):
|
|
||||||
"""class definition"""
|
|
||||||
Plasma.Label.__init__(self, applet)
|
|
||||||
self.parent = parent
|
|
||||||
self.notify = ptmnotify.PTMNotify(self)
|
|
||||||
|
|
||||||
|
|
||||||
def mousePressEvent(self, event):
|
|
||||||
"""mouse click event"""
|
|
||||||
if (event.button() == Qt.LeftButton):
|
|
||||||
self.notify.init()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Reinit():
|
class Reinit():
|
||||||
def __init__(self, parent):
|
def __init__(self, parent, defaults=None):
|
||||||
"""class definition"""
|
"""class definition"""
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
self.defaults = defaults
|
||||||
|
self.labels = defaults['format'].keys()
|
||||||
|
|
||||||
|
|
||||||
def reinit(self, confAccept=False):
|
def reinit(self):
|
||||||
"""function to reinitializate widget"""
|
"""function to reinitializate widget"""
|
||||||
settings = config.Config(self.parent)
|
settings = config.Config(self.parent)
|
||||||
self.parent.interval = settings.get('interval', 2000).toInt()[0]
|
ptmVars = {}
|
||||||
self.parent.font_family = str(settings.get('font_family', 'Terminus'))
|
|
||||||
self.parent.font_size = settings.get('font_size', 12).toInt()[0]
|
|
||||||
self.parent.font_color = str(settings.get('font_color', '#000000'))
|
|
||||||
self.parent.font_style = str(settings.get('font_style', 'normal'))
|
|
||||||
self.parent.font_weight = settings.get('font_weight', 400).toInt()[0]
|
|
||||||
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'))
|
ptmVars['adv'] = {}
|
||||||
self.parent.custom_uptime = str(settings.get('custom_uptime', '$ds,$hs,$ms'))
|
ptmVars['adv']['acDev'] = str(settings.get('ac_device', '/sys/class/power_supply/AC/online'))
|
||||||
self.parent.tempNames = []
|
ptmVars['adv']['acOnline'] = str(settings.get('ac_online', '(*)'))
|
||||||
self.parent.temp = {}
|
ptmVars['adv']['acOffline'] = str(settings.get('ac_offline', '( )'))
|
||||||
for item in str(settings.get('temp_device', '')).split('@@'):
|
ptmVars['adv']['tempUnits'] = str(settings.get('temp_units', 'Celsius'))
|
||||||
self.parent.tempNames.append(item)
|
ptmVars['adv']['batDev'] = str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity'))
|
||||||
self.parent.temp[item] =" 0.0"
|
ptmVars['adv']['customTime'] = str(settings.get('custom_time', '$hh:$mm'))
|
||||||
self.parent.mountNames = []
|
ptmVars['adv']['customUptime'] = str(settings.get('custom_uptime', '$dd,$hh,$mm'))
|
||||||
self.parent.mount = {}
|
ptmVars['adv']['netdevBool'] = settings.get('netdevBool', 0).toInt()[0]
|
||||||
for item in str(settings.get('mount', '/')).split('@@'):
|
ptmVars['adv']['netDir'] = str(settings.get('netdir', '/sys/class/net'))
|
||||||
self.parent.mountNames.append(item)
|
ptmVars['adv']['player'] = str(settings.get('player_name', "amarok"))
|
||||||
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]
|
ptmVars['app'] = {}
|
||||||
self.parent.tooltipColors['cpu'] = str(settings.get('cpu_color', '#ff0000'))
|
ptmVars['app']['format'] = ["<pre><p align=\"center\"><span style=\" font-family:'" + str(settings.get('font_family', 'Terminus')) +\
|
||||||
self.parent.tooltipColors['cpuclock'] = str(settings.get('cpuclock_color', '#00ff00'))
|
"'; font-style:" + str(settings.get('font_style', 'normal')) + "; font-size:" + str(settings.get('font_size', 12)) +\
|
||||||
self.parent.tooltipColors['mem'] = str(settings.get('mem_color', '#0000ff'))
|
"pt; font-weight:" + str(settings.get('font_weight', 400)) + "; color:" + str(settings.get('font_color', '#000000')) +\
|
||||||
self.parent.tooltipColors['swap'] = str(settings.get('swap_color', '#ffff00'))
|
";\">", "</span></p></pre>"]
|
||||||
self.parent.tooltipColors['down'] = str(settings.get('down_color', '#00ffff'))
|
ptmVars['app']['interval'] = settings.get('interval', 2000).toInt()[0]
|
||||||
self.parent.tooltipColors['up'] = str(settings.get('up_color', '#ff00ff'))
|
ptmVars['app']['order'] = str(settings.get('label_order', '1345'))
|
||||||
|
|
||||||
self.parent.tooltipReq = []
|
ptmVars['tooltip'] = {}
|
||||||
self.parent.label_order = str(settings.get('label_order', '1345'))
|
ptmVars['tooltip']['colors'] = {}
|
||||||
for label in self.parent.dict_orders.values():
|
ptmVars['tooltip']['colors']['cpu'] = str(settings.get('cpu_color', '#ff0000'))
|
||||||
if ((label == 'cpu') or (label == 'mem') or (label == 'swap') or (label == 'net')):
|
ptmVars['tooltip']['colors']['cpuclock'] = str(settings.get('cpuclock_color', '#00ff00'))
|
||||||
exec ('self.parent.' + label + 'Bool = settings.get("' + label + 'Bool", 2).toInt()[0]')
|
ptmVars['tooltip']['colors']['mem'] = str(settings.get('mem_color', '#0000ff'))
|
||||||
|
ptmVars['tooltip']['colors']['swap'] = str(settings.get('swap_color', '#ffff00'))
|
||||||
|
ptmVars['tooltip']['colors']['down'] = str(settings.get('down_color', '#00ffff'))
|
||||||
|
ptmVars['tooltip']['colors']['up'] = str(settings.get('up_color', '#ff00ff'))
|
||||||
|
ptmVars['tooltip']['num'] = settings.get('tooltip_num', 100).toInt()[0]
|
||||||
|
|
||||||
|
ptmVars['bools'] = {}
|
||||||
|
for label in self.labels:
|
||||||
|
ptmVars['bools'][label] = settings.get(self.defaults['confBool'][label], self.defaults['bool'][label]).toInt()[0]
|
||||||
|
|
||||||
|
ptmNames = {}
|
||||||
|
ptmNames['disk'] = str(settings.get('disk', 'disk/sda_(8:0)')).split('@@')
|
||||||
|
ptmNames['hdd'] = str(settings.get('mount', '/')).split('@@')
|
||||||
|
ptmNames['hddtemp'] = str(settings.get('hdd', '/dev/sda')).split('@@')
|
||||||
|
if (ptmVars['adv']['netdevBool'] > 0):
|
||||||
|
ptmNames['net'] = str(settings.get('custom_netdev', 'lo'))
|
||||||
else:
|
else:
|
||||||
exec ('self.parent.' + label + 'Bool = settings.get("' + label + 'Bool", 0).toInt()[0]')
|
ptmNames['net'] = ""
|
||||||
|
ptmNames['temp'] = str(settings.get('temp_device', '')).split('@@')
|
||||||
|
self.parent.applySettings('names', ptmNames)
|
||||||
|
|
||||||
# labels
|
ptmVars['formats'] = {}
|
||||||
for order in self.parent.label_order:
|
ptmVars['tooltip']['required'] = []
|
||||||
if (order == "1"):
|
for order in ptmVars['app']['order']:
|
||||||
if (self.parent.cpuBool > 0):
|
label = self.defaults['order'][order]
|
||||||
self.parent.cpuFormat = str(settings.get('cpuFormat', '[cpu: $cpu%]'))
|
if (ptmVars['bools'][label] > 0):
|
||||||
self.parent.label_cpu = NewPlasmaLabel(self.parent.applet, self.parent)
|
ptmVars['formats'][label] = str(settings.get(self.defaults['confFormat'][label], self.defaults['format'][label]))
|
||||||
line = self.parent.cpuFormat
|
text = ptmVars['app']['format'][0] + ptmVars['formats'][label] + ptmVars['app']['format'][1]
|
||||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
self.parent.addLabel(label, text, True)
|
||||||
self.parent.label_cpu.setText(text)
|
if ((label in ['cpu', 'cpuclock', 'mem', 'net', 'swap']) and (ptmVars['bools'][label] == 2)):
|
||||||
self.parent.layout.addItem(self.parent.label_cpu)
|
if (label == 'net'):
|
||||||
if (self.parent.cpuBool == 2):
|
ptmVars['tooltip']['required'].append("down")
|
||||||
self.parent.tooltipReq.append('cpu')
|
ptmVars['tooltip']['required'].append("up")
|
||||||
elif (order == "2"):
|
|
||||||
if (self.parent.tempBool > 0):
|
|
||||||
self.parent.tempFormat = str(settings.get('tempFormat', '[temp: $temp0°C]'))
|
|
||||||
self.parent.label_temp = NewPlasmaLabel(self.parent.applet, self.parent)
|
|
||||||
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
|
|
||||||
elif (self.parent.memFormat.split('$mem')[0] != self.parent.memFormat):
|
|
||||||
self.parent.memInMb = False
|
|
||||||
line = self.parent.memFormat
|
|
||||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
|
||||||
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
|
|
||||||
elif (self.parent.swapFormat.split('$swap')[0] != self.parent.swapFormat):
|
|
||||||
self.parent.swapInMb = False
|
|
||||||
line = self.parent.swapFormat
|
|
||||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
|
||||||
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: $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:
|
else:
|
||||||
self.parent.netdev = self.parent.setupNetdev()
|
ptmVars['tooltip']['required'].append(label)
|
||||||
if (self.parent.netNonFormat.split('$netdev')[0] != self.parent.netNonFormat):
|
self.parent.applySettings('vars', ptmVars)
|
||||||
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
|
|
||||||
line = self.parent.netFormat
|
|
||||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
|
||||||
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.label_bat = NewPlasmaLabel(self.parent.applet, self.parent)
|
|
||||||
line = self.parent.batFormat
|
|
||||||
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]'))
|
|
||||||
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)
|
|
||||||
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)
|
|
||||||
elif (order == "9"):
|
|
||||||
if (self.parent.gpuBool > 0):
|
|
||||||
self.parent.gpuFormat = str(settings.get('gpuFormat', '[gpu: $gpu%]'))
|
|
||||||
self.parent.label_gpu = NewPlasmaLabel(self.parent.applet, self.parent)
|
|
||||||
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)
|
|
||||||
elif (order == "a"):
|
|
||||||
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)
|
|
||||||
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: $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: $hddtemp0°C]'))
|
|
||||||
self.parent.label_hddtemp = NewPlasmaLabel(self.parent.applet, self.parent)
|
|
||||||
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.label_player = NewPlasmaLabel(self.parent.applet, self.parent)
|
|
||||||
line = self.parent.playerFormat
|
|
||||||
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)
|
|
||||||
elif (order == "e"):
|
|
||||||
if (self.parent.timeBool > 0):
|
|
||||||
self.parent.timeFormat = str(settings.get('timeFormat', '[$time]'))
|
|
||||||
self.parent.label_time = NewPlasmaLabel(self.parent.applet, self.parent)
|
|
||||||
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)
|
|
||||||
self.parent.theme = Plasma.Svg(self.parent)
|
|
||||||
self.parent.theme.setImagePath("widgets/background")
|
|
||||||
self.parent.setBackgroundHints(Plasma.Applet.DefaultBackground)
|
|
||||||
self.parent.resize(10, 10)
|
|
||||||
|
|
||||||
# create dataengines
|
|
||||||
self.parent.thread().wait(60000)
|
|
||||||
self.parent.dataengine.connectToEngine()
|
|
||||||
|
|
||||||
self.parent.timer.setInterval(self.parent.interval)
|
|
||||||
self.parent.startPolling()
|
|
||||||
|
@ -28,18 +28,15 @@ class Tooltip():
|
|||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
|
||||||
|
|
||||||
def addValue(self, type, value=0.0, tooltipNum=100):
|
def createGraphic(self, ptmVars, ptmTooltip, widget):
|
||||||
"""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"""
|
"""function to create graph"""
|
||||||
widget.clear()
|
widget.clear()
|
||||||
maxOne = [100.0, 100.0]
|
|
||||||
pen = QPen()
|
pen = QPen()
|
||||||
|
bounds = ptmTooltip['bounds']
|
||||||
|
colors = ptmVars['colors']
|
||||||
|
types = ptmVars['required']
|
||||||
|
values = ptmTooltip['values']
|
||||||
|
maxOne = [100.0, 100.0]
|
||||||
bounds['down'] = 1.0
|
bounds['down'] = 1.0
|
||||||
for value in values['down']:
|
for value in values['down']:
|
||||||
if (bounds['down'] < value):
|
if (bounds['down'] < value):
|
||||||
|
@ -34,7 +34,7 @@ class Util():
|
|||||||
try:
|
try:
|
||||||
os.mkdir(name)
|
os.mkdir(name)
|
||||||
except:
|
except:
|
||||||
print 'Failed to create directory: ' + name
|
print ('Failed to create directory: ' + name)
|
||||||
|
|
||||||
|
|
||||||
def kdeHome(self):
|
def kdeHome(self):
|
||||||
@ -42,9 +42,8 @@ class Util():
|
|||||||
|
|
||||||
|
|
||||||
def createNotifyrc(self):
|
def createNotifyrc(self):
|
||||||
print '[%s] creating notifyrc' % (self.applet._name)
|
print ('[%s] creating notifyrc' % (self.applet._name))
|
||||||
self.createDirectory(self.kdeHome() + 'share/apps/%s' % self.applet._name)
|
self.createDirectory(self.kdeHome() + 'share/apps/%s' % self.applet._name)
|
||||||
|
|
||||||
source = self.applet.package().path() + 'contents/misc/%s.notifyrc' % self.applet._name
|
source = self.applet.package().path() + 'contents/misc/%s.notifyrc' % self.applet._name
|
||||||
destination = self.kdeHome() + 'share/apps/%s/%s.notifyrc' % (self.applet._name, self.applet._name)
|
destination = self.kdeHome() + 'share/apps/%s/%s.notifyrc' % (self.applet._name, self.applet._name)
|
||||||
copyfile(source, destination)
|
copyfile(source, destination)
|
||||||
@ -52,7 +51,6 @@ class Util():
|
|||||||
|
|
||||||
def createConfig(self):
|
def createConfig(self):
|
||||||
self.createDirectory(self.kdeHome() + 'share/apps/%s' % self.applet._name)
|
self.createDirectory(self.kdeHome() + 'share/apps/%s' % self.applet._name)
|
||||||
|
|
||||||
source = self.applet.package().path() + 'contents/misc/%s.ini' % self.applet._name
|
source = self.applet.package().path() + 'contents/misc/%s.ini' % self.applet._name
|
||||||
destination = self.kdeHome() + 'share/apps/%s/%s.ini' % (self.applet._name, self.applet._name)
|
destination = self.kdeHome() + 'share/apps/%s/%s.ini' % (self.applet._name, self.applet._name)
|
||||||
copyfile(source, destination)
|
copyfile(source, destination)
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -3,14 +3,14 @@ IconName=system
|
|||||||
Name=PyTextMonitor
|
Name=PyTextMonitor
|
||||||
Comment=PyTextMonitor information
|
Comment=PyTextMonitor information
|
||||||
|
|
||||||
[Event/system]
|
[Event/battery]
|
||||||
Name=System information
|
Name=Battery information
|
||||||
Comment=System information
|
Comment=Battery information
|
||||||
Action=Popup
|
Action=Popup
|
||||||
|
|
||||||
[Event/processor]
|
[Event/disk]
|
||||||
Name=Processor information
|
Name=Disk information
|
||||||
Comment=Processor information
|
Comment=Disk information
|
||||||
Action=Popup
|
Action=Popup
|
||||||
|
|
||||||
[Event/graphical]
|
[Event/graphical]
|
||||||
@ -23,27 +23,22 @@ Name=Memory information
|
|||||||
Comment=Memory information
|
Comment=Memory information
|
||||||
Action=Popup
|
Action=Popup
|
||||||
|
|
||||||
[Event/disk]
|
|
||||||
Name=Disk information
|
|
||||||
Comment=Disk information
|
|
||||||
Action=Popup
|
|
||||||
|
|
||||||
[Event/network]
|
[Event/network]
|
||||||
Name=Network information
|
Name=Network information
|
||||||
Comment=Network information
|
Comment=Network information
|
||||||
Action=Popup
|
Action=Popup
|
||||||
|
|
||||||
[Event/battery]
|
[Event/player]
|
||||||
Name=Battery information
|
|
||||||
Comment=Battery information
|
|
||||||
Action=Popup
|
|
||||||
|
|
||||||
[Event/graphinfo]
|
|
||||||
Name=Graphical Information
|
|
||||||
Comment=Graphical Information
|
|
||||||
Action=Popup
|
|
||||||
|
|
||||||
[Event/musicplayer]
|
|
||||||
Name=Now playing
|
Name=Now playing
|
||||||
Comment=Now playing
|
Comment=Now playing
|
||||||
Action=Popup
|
Action=Popup
|
||||||
|
|
||||||
|
[Event/processor]
|
||||||
|
Name=Processor information
|
||||||
|
Comment=Processor information
|
||||||
|
Action=Popup
|
||||||
|
|
||||||
|
[Event/system]
|
||||||
|
Name=System information
|
||||||
|
Comment=System information
|
||||||
|
Action=Popup
|
||||||
|
@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||||
"POT-Creation-Date: 2014-04-03 02:22+0400\n"
|
"POT-Creation-Date: 2014-05-19 11:55+0400\n"
|
||||||
"PO-Revision-Date: 2014-04-03 02:23+0400\n"
|
"PO-Revision-Date: 2014-05-19 11:56+0400\n"
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||||
"Language: ru\n"
|
"Language: ru\n"
|
||||||
@ -18,20 +18,22 @@ msgstr ""
|
|||||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||||
"X-Generator: Lokalize 1.5\n"
|
"X-Generator: Lokalize 1.5\n"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:32
|
#: code/main.py:108
|
||||||
#. i18n: ectx: property (windowTitle), widget (QWidget, ConfigWindow)
|
msgid "Run ksysguard"
|
||||||
|
msgstr "Run ksysguard"
|
||||||
|
|
||||||
|
#: code/main.py:110
|
||||||
|
msgid "Show README"
|
||||||
|
msgstr "Show README"
|
||||||
|
|
||||||
#: rc.cpp:3
|
#: rc.cpp:3
|
||||||
msgid "Form"
|
msgid "Form"
|
||||||
msgstr "Form"
|
msgstr "Form"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:42
|
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, settings)
|
|
||||||
#: rc.cpp:6
|
#: rc.cpp:6
|
||||||
msgid "Widget settings"
|
msgid "Widget settings"
|
||||||
msgstr "Widget settings"
|
msgstr "Widget settings"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:48
|
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label)
|
|
||||||
#: rc.cpp:9
|
#: rc.cpp:9
|
||||||
msgid ""
|
msgid ""
|
||||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||||
@ -40,14 +42,10 @@ msgstr ""
|
|||||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||||
"pytextmonitor/\">project homepage</a>"
|
"pytextmonitor/\">project homepage</a>"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:69
|
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
|
|
||||||
#: rc.cpp:12
|
#: rc.cpp:12
|
||||||
msgid "Time"
|
msgid "Time"
|
||||||
msgstr "Time"
|
msgstr "Time"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:83
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
|
|
||||||
#: rc.cpp:15
|
#: rc.cpp:15
|
||||||
msgid ""
|
msgid ""
|
||||||
"$time - time in default format\n"
|
"$time - time in default format\n"
|
||||||
@ -62,14 +60,10 @@ msgstr ""
|
|||||||
"$longtime - time in log format\n"
|
"$longtime - time in log format\n"
|
||||||
"$custom - custom time format"
|
"$custom - custom time format"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:128
|
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
|
|
||||||
#: rc.cpp:22
|
#: rc.cpp:22
|
||||||
msgid "Uptime"
|
msgid "Uptime"
|
||||||
msgstr "Uptime"
|
msgstr "Uptime"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:139
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
|
|
||||||
#: rc.cpp:25
|
#: rc.cpp:25
|
||||||
msgid ""
|
msgid ""
|
||||||
"$uptime - system uptime\n"
|
"$uptime - system uptime\n"
|
||||||
@ -78,156 +72,139 @@ msgstr ""
|
|||||||
"$uptime - system uptime\n"
|
"$uptime - system uptime\n"
|
||||||
"$custom - custom format"
|
"$custom - custom format"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:187
|
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
|
|
||||||
#: rc.cpp:29
|
#: rc.cpp:29
|
||||||
msgid "CPU"
|
msgid "CPU"
|
||||||
msgstr "CPU"
|
msgstr "CPU"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:203
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
|
|
||||||
#: rc.cpp:33
|
#: rc.cpp:33
|
||||||
#, no-c-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$cpu - total load CPU, %\n"
|
"$cpu - total load CPU, %\n"
|
||||||
"$cpu0 - load CPU for core 0, %\n"
|
"$cpu0 - load CPU for core 0, %\n"
|
||||||
"...\n"
|
"...\n"
|
||||||
"$cpu7 - load CPU for core 7, %"
|
"$cpu9 - load CPU for core 9, %\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuN - load CPU for core N, %"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"$cpu - total load CPU, %\n"
|
"$cpu - total load CPU, %\n"
|
||||||
"$cpu0 - load CPU for core 0, %\n"
|
"$cpu0 - load CPU for core 0, %\n"
|
||||||
"...\n"
|
"...\n"
|
||||||
"$cpu7 - load CPU for core 7, %"
|
"$cpu9 - load CPU for core 9, %\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuN - load CPU for core N, %"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:251
|
#: rc.cpp:41
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
|
|
||||||
#: rc.cpp:39
|
|
||||||
msgid "CPU Clock"
|
msgid "CPU Clock"
|
||||||
msgstr "CPU Clock"
|
msgstr "CPU Clock"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:267
|
#: rc.cpp:44
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
|
|
||||||
#: rc.cpp:42
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$cpucl - average CPU clock, MHz\n"
|
"$cpucl - average CPU clock, MHz\n"
|
||||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
"$cpucl0 - CPU clock for core 0, MHz\n"
|
||||||
"...\n"
|
"...\n"
|
||||||
"$cpucl7 - CPU clock for core 7, MHz"
|
"$cpucl9 - CPU clock for core 9, MHz\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuclN - CPU clock for core N, MHz"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"$cpucl - average CPU clock, MHz\n"
|
"$cpucl - average CPU clock, MHz\n"
|
||||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
"$cpucl0 - CPU clock for core 0, MHz\n"
|
||||||
"...\n"
|
"...\n"
|
||||||
"$cpucl7 - CPU clock for core 7, MHz"
|
"$cpucl9 - CPU clock for core 9, MHz\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuclN - CPU clock for core N, MHz"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:315
|
#: rc.cpp:52
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
|
|
||||||
#: rc.cpp:48
|
|
||||||
msgid "Temperature"
|
msgid "Temperature"
|
||||||
msgstr "Temperature"
|
msgstr "Temperature"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:325
|
#: rc.cpp:55
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
|
|
||||||
#: rc.cpp:51
|
|
||||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||||
msgstr "$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:373
|
#: rc.cpp:58
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
|
|
||||||
#: rc.cpp:54
|
|
||||||
msgid "GPU"
|
msgid "GPU"
|
||||||
msgstr "GPU"
|
msgstr "GPU"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:383
|
#: rc.cpp:62
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
|
|
||||||
#: rc.cpp:58
|
|
||||||
#, no-c-format
|
|
||||||
msgid "$gpu - gpu usage, %"
|
msgid "$gpu - gpu usage, %"
|
||||||
msgstr "$gpu - gpu usage, %"
|
msgstr "$gpu - gpu usage, %"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:431
|
#: rc.cpp:65
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
|
|
||||||
#: rc.cpp:61
|
|
||||||
msgid "GPU Temp"
|
msgid "GPU Temp"
|
||||||
msgstr "GPU Temp"
|
msgstr "GPU Temp"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:441
|
#: rc.cpp:68
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
|
|
||||||
#: rc.cpp:64
|
|
||||||
msgid "$gputemp - physical temperature on GPU"
|
msgid "$gputemp - physical temperature on GPU"
|
||||||
msgstr "$gputemp - physical temperature on GPU"
|
msgstr "$gputemp - physical temperature on GPU"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:489
|
#: rc.cpp:71
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
|
|
||||||
#: rc.cpp:67
|
|
||||||
msgid "Memory"
|
msgid "Memory"
|
||||||
msgstr "Memory"
|
msgstr "Memory"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:503
|
#: rc.cpp:75
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
|
|
||||||
#: rc.cpp:71
|
|
||||||
#, no-c-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$mem - RAM usage, %\n"
|
"$mem - RAM usage, %\n"
|
||||||
"$memmb - RAM usage, MB"
|
"$memmb - RAM usage, MB\n"
|
||||||
|
"$memgb - RAM usage, GB"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"$mem - RAM usage, %\n"
|
"$mem - RAM usage, %\n"
|
||||||
"$memmb - RAM usage, MB"
|
"$memmb - RAM usage, MB\n"
|
||||||
|
"$memgb - RAM usage, GB"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:551
|
#: rc.cpp:80
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
|
|
||||||
#: rc.cpp:75
|
|
||||||
msgid "Swap"
|
msgid "Swap"
|
||||||
msgstr "Swap"
|
msgstr "Swap"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:565
|
#: rc.cpp:84
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
|
|
||||||
#: rc.cpp:79
|
|
||||||
#, no-c-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$swap - swap usage, %\n"
|
"$swap - swap usage, %\n"
|
||||||
"$swapmb - swap usage, MB"
|
"$swapmb - swap usage, MB\n"
|
||||||
|
"$swapgb - swap usage, GB"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"$swap - swap usage, %\n"
|
"$swap - swap usage, %\n"
|
||||||
"$swapmb - swap usage, MB"
|
"$swapmb - swap usage, MB\n"
|
||||||
|
"$swapgb - swap usage, GB"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:613
|
#: rc.cpp:89 rc.cpp:341
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
|
|
||||||
#. i18n: file: ui/configwindow.ui:2097
|
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_hdddev)
|
|
||||||
#: rc.cpp:83 rc.cpp:289
|
|
||||||
msgid "HDD"
|
msgid "HDD"
|
||||||
msgstr "HDD"
|
msgstr "HDD"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:623
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
|
|
||||||
#: rc.cpp:87
|
|
||||||
#, no-c-format
|
|
||||||
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:671
|
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
|
|
||||||
#: rc.cpp:90
|
|
||||||
msgid "HDD Temp"
|
|
||||||
msgstr "HDD Temp"
|
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:681
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
|
|
||||||
#: rc.cpp:93
|
#: rc.cpp:93
|
||||||
msgid ""
|
msgid ""
|
||||||
|
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
||||||
|
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
||||||
|
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0"
|
||||||
|
msgstr ""
|
||||||
|
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
||||||
|
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
||||||
|
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0"
|
||||||
|
|
||||||
|
#: rc.cpp:98
|
||||||
|
msgid "HDD speed"
|
||||||
|
msgstr "HDD speed"
|
||||||
|
|
||||||
|
#: rc.cpp:101
|
||||||
|
msgid ""
|
||||||
|
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
||||||
|
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
||||||
|
msgstr ""
|
||||||
|
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
||||||
|
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
||||||
|
|
||||||
|
#: rc.cpp:105
|
||||||
|
msgid "HDD temp"
|
||||||
|
msgstr "HDD temp"
|
||||||
|
|
||||||
|
#: rc.cpp:108
|
||||||
|
msgid ""
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:729
|
#: rc.cpp:111
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
|
|
||||||
#: rc.cpp:96
|
|
||||||
msgid "Network"
|
msgid "Network"
|
||||||
msgstr "Network"
|
msgstr "Network"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:744
|
#: rc.cpp:114
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
|
|
||||||
#: rc.cpp:99
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$down - download speed, KB/s\n"
|
"$down - download speed, KB/s\n"
|
||||||
"$up - upload speed, KB/s\n"
|
"$up - upload speed, KB/s\n"
|
||||||
@ -237,16 +214,11 @@ msgstr ""
|
|||||||
"$up - upload speed, KB/s\n"
|
"$up - upload speed, KB/s\n"
|
||||||
"$netdev - current network device"
|
"$netdev - current network device"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:792
|
#: rc.cpp:119
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
|
|
||||||
#: rc.cpp:104
|
|
||||||
msgid "Battery"
|
msgid "Battery"
|
||||||
msgstr "Battery"
|
msgstr "Battery"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:803
|
#: rc.cpp:123
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
|
|
||||||
#: rc.cpp:108
|
|
||||||
#, no-c-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$bat - battery charge, %\n"
|
"$bat - battery charge, %\n"
|
||||||
"$ac - AC status"
|
"$ac - AC status"
|
||||||
@ -254,17 +226,11 @@ msgstr ""
|
|||||||
"$bat - battery charge, %\n"
|
"$bat - battery charge, %\n"
|
||||||
"$ac - AC status"
|
"$ac - AC status"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:851
|
#: rc.cpp:127 rc.cpp:271
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
|
|
||||||
#. i18n: file: ui/configwindow.ui:1338
|
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_playerSelect)
|
|
||||||
#: rc.cpp:112 rc.cpp:214
|
|
||||||
msgid "Music player"
|
msgid "Music player"
|
||||||
msgstr "Music player"
|
msgstr "Music player"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:865
|
#: rc.cpp:130
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
|
|
||||||
#: rc.cpp:115
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$album - song album\n"
|
"$album - song album\n"
|
||||||
"$artist - song artist\n"
|
"$artist - song artist\n"
|
||||||
@ -278,33 +244,51 @@ msgstr ""
|
|||||||
"$time - song duration\n"
|
"$time - song duration\n"
|
||||||
"$title - song title"
|
"$title - song title"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:913
|
#: rc.cpp:137
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_custom)
|
msgid "Processes"
|
||||||
#: rc.cpp:122
|
msgstr "Processes"
|
||||||
|
|
||||||
|
#: rc.cpp:140
|
||||||
|
msgid ""
|
||||||
|
"$pscount - number of running processes\n"
|
||||||
|
"$pstotal - total number of running processes\n"
|
||||||
|
"$ps - list of running processes comma separated"
|
||||||
|
msgstr ""
|
||||||
|
"$pscount - number of running processes\n"
|
||||||
|
"$pstotal - total number of running processes\n"
|
||||||
|
"$ps - list of running processes comma separated"
|
||||||
|
|
||||||
|
#: rc.cpp:145 rc.cpp:350
|
||||||
|
msgid "Package manager"
|
||||||
|
msgstr "Package manager"
|
||||||
|
|
||||||
|
#: rc.cpp:148
|
||||||
|
msgid ""
|
||||||
|
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||||
|
"For example $pkgcount0"
|
||||||
|
msgstr ""
|
||||||
|
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||||
|
"For example $pkgcount0"
|
||||||
|
|
||||||
|
#: rc.cpp:151
|
||||||
msgid "Custom"
|
msgid "Custom"
|
||||||
msgstr "Custom"
|
msgstr "Custom"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:923
|
#: rc.cpp:154
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_custom)
|
msgid ""
|
||||||
#: rc.cpp:125
|
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||||
msgid "$custom - get output from custom command"
|
msgstr ""
|
||||||
msgstr "$custom - get output from custom command"
|
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:977
|
#: rc.cpp:157
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, advanced)
|
|
||||||
#: rc.cpp:128
|
|
||||||
msgid "Advanced"
|
msgid "Advanced"
|
||||||
msgstr "Advanced"
|
msgstr "Advanced"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:991
|
#: rc.cpp:160
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_timeFormat)
|
|
||||||
#: rc.cpp:131
|
|
||||||
msgid "Custom time format"
|
msgid "Custom time format"
|
||||||
msgstr "Custom time format"
|
msgstr "Custom time format"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1013
|
#: rc.cpp:163
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_timeFormat)
|
|
||||||
#: rc.cpp:134
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$dddd - long weekday\n"
|
"$dddd - long weekday\n"
|
||||||
"$ddd - short weekday\n"
|
"$ddd - short weekday\n"
|
||||||
@ -340,47 +324,39 @@ msgstr ""
|
|||||||
"$ss - seconds\n"
|
"$ss - seconds\n"
|
||||||
"$s - seconds w\\o zero"
|
"$s - seconds w\\o zero"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1033
|
#: rc.cpp:181
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_uptimeFormat)
|
|
||||||
#: rc.cpp:152
|
|
||||||
msgid "Custom uptime format"
|
msgid "Custom uptime format"
|
||||||
msgstr "Custom uptime format"
|
msgstr "Custom uptime format"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1042
|
#: rc.cpp:184
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptimeFormat)
|
|
||||||
#: rc.cpp:155
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$ds - uptime days\n"
|
"$dd - uptime days\n"
|
||||||
"$hs - uptime hours\n"
|
"$d - uptime days without zero\n"
|
||||||
"$ms - uptime minutes"
|
"$hh - uptime hours\n"
|
||||||
|
"$h - uptime hours without zero\n"
|
||||||
|
"$mm - uptime minutes\n"
|
||||||
|
"$m - uptime minutes without zero"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"$ds - uptime days\n"
|
"$dd - uptime days\n"
|
||||||
"$hs - uptime hours\n"
|
"$d - uptime days without zero\n"
|
||||||
"$ms - uptime minutes"
|
"$hh - uptime hours\n"
|
||||||
|
"$h - uptime hours without zero\n"
|
||||||
|
"$mm - uptime minutes\n"
|
||||||
|
"$m - uptime minutes without zero"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1064
|
#: rc.cpp:192
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_tempDevice)
|
msgid "Temperature units"
|
||||||
#: rc.cpp:160
|
msgstr "Temperature units"
|
||||||
|
|
||||||
|
#: rc.cpp:195
|
||||||
msgid "Temperature devices"
|
msgid "Temperature devices"
|
||||||
msgstr "Temperature devices"
|
msgstr "Temperature devices"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1090
|
#: rc.cpp:198 rc.cpp:208 rc.cpp:218 rc.cpp:228 rc.cpp:331 rc.cpp:374
|
||||||
#. 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"
|
msgid "Add"
|
||||||
msgstr "Add"
|
msgstr "Add"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1100
|
#: rc.cpp:201 rc.cpp:211 rc.cpp:221 rc.cpp:231 rc.cpp:334 rc.cpp:377
|
||||||
#. 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 ""
|
msgid ""
|
||||||
"Editable\n"
|
"Editable\n"
|
||||||
"del - remove item"
|
"del - remove item"
|
||||||
@ -388,93 +364,71 @@ msgstr ""
|
|||||||
"Editable\n"
|
"Editable\n"
|
||||||
"del - remove item"
|
"del - remove item"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1119
|
#: rc.cpp:205
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_mount)
|
|
||||||
#: rc.cpp:170
|
|
||||||
msgid "Mount points"
|
msgid "Mount points"
|
||||||
msgstr "Mount points"
|
msgstr "Mount points"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1174
|
#: rc.cpp:215
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_hddDevice)
|
msgid "HDD devices (speed)"
|
||||||
#: rc.cpp:180
|
msgstr "HDD (speed)"
|
||||||
msgid "HDD devices"
|
|
||||||
msgstr "HDD devices"
|
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1227
|
#: rc.cpp:225
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_netdir)
|
msgid "HDD devices (temp)"
|
||||||
#: rc.cpp:190
|
msgstr "HDD (temp)"
|
||||||
|
|
||||||
|
#: rc.cpp:235
|
||||||
msgid "Network directory"
|
msgid "Network directory"
|
||||||
msgstr "Network directory"
|
msgstr "Network directory"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1234
|
#: rc.cpp:238
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_netdir)
|
|
||||||
#: rc.cpp:193
|
|
||||||
msgid "\"/sys/class/net\" by default"
|
msgid "\"/sys/class/net\" by default"
|
||||||
msgstr "\"/sys/class/net\" by default"
|
msgstr "\"/sys/class/net\" by default"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1254
|
#: rc.cpp:241
|
||||||
#. i18n: ectx: property (toolTip), widget (QCheckBox, checkBox_netdev)
|
|
||||||
#: rc.cpp:196
|
|
||||||
msgid "Disable auto select device and set specified device"
|
msgid "Disable auto select device and set specified device"
|
||||||
msgstr "Disable auto select device and set specified device"
|
msgstr "Disable auto select device and set specified device"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1257
|
#: rc.cpp:244
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_netdev)
|
|
||||||
#: rc.cpp:199
|
|
||||||
msgid "Set network device"
|
msgid "Set network device"
|
||||||
msgstr "Set network device"
|
msgstr "Set network device"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1290
|
#: rc.cpp:247
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
|
|
||||||
#: rc.cpp:202
|
|
||||||
msgid "Battery device"
|
msgid "Battery device"
|
||||||
msgstr "Battery device"
|
msgstr "Battery device"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1297
|
#: rc.cpp:250
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
|
|
||||||
#: rc.cpp:205
|
|
||||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
msgstr "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1314
|
#: rc.cpp:253
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
|
msgid "AC online tag"
|
||||||
#: rc.cpp:208
|
msgstr "AC online tag"
|
||||||
|
|
||||||
|
#: rc.cpp:256
|
||||||
|
msgid "Line, which returns when AC is online"
|
||||||
|
msgstr "Line, which returns when AC is online"
|
||||||
|
|
||||||
|
#: rc.cpp:259
|
||||||
|
msgid "AC offline tag"
|
||||||
|
msgstr "AC offline tag"
|
||||||
|
|
||||||
|
#: rc.cpp:262
|
||||||
|
msgid "Line, which returns when AC is offline"
|
||||||
|
msgstr "Line, which returns when AC is offline"
|
||||||
|
|
||||||
|
#: rc.cpp:265
|
||||||
msgid "AC device"
|
msgid "AC device"
|
||||||
msgstr "AC device"
|
msgstr "AC device"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1321
|
#: rc.cpp:268
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
|
|
||||||
#: rc.cpp:211
|
|
||||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||||
msgstr "\"/sys/class/power_supply/AC/online\" by default"
|
msgstr "\"/sys/class/power_supply/AC/online\" by default"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1358
|
#: rc.cpp:274
|
||||||
#. 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"
|
msgid "Tooltip"
|
||||||
msgstr "Tooltip"
|
msgstr "Tooltip"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1398
|
#: rc.cpp:277
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltip)
|
|
||||||
#: rc.cpp:229
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||||
"To enable them just make needed checkbox fully checked."
|
"To enable them just make needed checkbox fully checked."
|
||||||
@ -482,154 +436,154 @@ msgstr ""
|
|||||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||||
"To enable them just make needed checkbox fully checked."
|
"To enable them just make needed checkbox fully checked."
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1419
|
#: rc.cpp:280
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltipNum)
|
|
||||||
#: rc.cpp:232
|
|
||||||
msgid "Number of values for tooltips"
|
msgid "Number of values for tooltips"
|
||||||
msgstr "Number of values for tooltips"
|
msgstr "Number of values for tooltips"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1474
|
#: rc.cpp:283
|
||||||
#. 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"
|
msgid "CPU clock color"
|
||||||
msgstr "CPU clock color"
|
msgstr "CPU clock color"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1554
|
#: rc.cpp:286
|
||||||
#. 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"
|
msgid "Swap color"
|
||||||
msgstr "Swap color"
|
msgstr "Swap color"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1634
|
#: rc.cpp:289
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_downColor)
|
msgid "CPU color"
|
||||||
#: rc.cpp:247
|
msgstr "CPU color"
|
||||||
|
|
||||||
|
#: rc.cpp:292
|
||||||
msgid "Download speed color"
|
msgid "Download speed color"
|
||||||
msgstr "Download speed color"
|
msgstr "Download speed color"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1674
|
#: rc.cpp:295
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_upColor)
|
msgid "Memory color"
|
||||||
#: rc.cpp:250
|
msgstr "Memory color"
|
||||||
|
|
||||||
|
#: rc.cpp:298
|
||||||
msgid "Upload speed color"
|
msgid "Upload speed color"
|
||||||
msgstr "Upload speed color"
|
msgstr "Upload speed color"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1720
|
#: rc.cpp:301
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, appearance)
|
|
||||||
#: rc.cpp:253
|
|
||||||
msgid "Appearance"
|
msgid "Appearance"
|
||||||
msgstr "Appearance"
|
msgstr "Appearance"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1734
|
#: rc.cpp:304
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
|
||||||
#: rc.cpp:256
|
|
||||||
msgid "Time interval"
|
msgid "Time interval"
|
||||||
msgstr "Time interval"
|
msgstr "Time interval"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1789
|
#: rc.cpp:307
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
|
||||||
#: rc.cpp:259
|
|
||||||
msgid "Font"
|
msgid "Font"
|
||||||
msgstr "Font"
|
msgstr "Font"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1829
|
#: rc.cpp:310
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
|
||||||
#: rc.cpp:262
|
|
||||||
msgid "Font size"
|
msgid "Font size"
|
||||||
msgstr "Font size"
|
msgstr "Font size"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1884
|
#: rc.cpp:313
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_color)
|
|
||||||
#: rc.cpp:265
|
|
||||||
msgid "Font color"
|
msgid "Font color"
|
||||||
msgstr "Font color"
|
msgstr "Font color"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1924
|
#: rc.cpp:316
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_style)
|
|
||||||
#: rc.cpp:268
|
|
||||||
msgid "Font style"
|
msgid "Font style"
|
||||||
msgstr "Font style"
|
msgstr "Font style"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1974
|
#: rc.cpp:319
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_weight)
|
|
||||||
#: rc.cpp:271
|
|
||||||
msgid "Font weight"
|
msgid "Font weight"
|
||||||
msgstr "Font weight"
|
msgstr "Font weight"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:2035
|
#: rc.cpp:322
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, dataengine)
|
|
||||||
#: rc.cpp:274
|
|
||||||
msgid "DataEngine"
|
msgid "DataEngine"
|
||||||
msgstr "DataEngine"
|
msgstr "DataEngine"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:2049
|
#: rc.cpp:325
|
||||||
#. 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"
|
msgid "Custom command"
|
||||||
msgstr "Custom command"
|
msgstr "Custom command"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:2216
|
#: rc.cpp:328
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_customCommand)
|
|
||||||
#: rc.cpp:301
|
|
||||||
msgid "Custom command to run"
|
msgid "Custom command to run"
|
||||||
msgstr "Custom command to run"
|
msgstr "Custom command to run"
|
||||||
|
|
||||||
#: rc.cpp:302
|
#: rc.cpp:338
|
||||||
|
msgid "GPU device"
|
||||||
|
msgstr "GPU device"
|
||||||
|
|
||||||
|
#: rc.cpp:344
|
||||||
|
msgid "MPD address"
|
||||||
|
msgstr "MPD address"
|
||||||
|
|
||||||
|
#: rc.cpp:347
|
||||||
|
msgid "MPD port"
|
||||||
|
msgstr "MPD port"
|
||||||
|
|
||||||
|
#: rc.cpp:353
|
||||||
|
msgid "pacman -Qu"
|
||||||
|
msgstr "pacman -Qu"
|
||||||
|
|
||||||
|
#: rc.cpp:356
|
||||||
|
msgid "apt-show-versions -u -b"
|
||||||
|
msgstr "apt-show-versions -u -b"
|
||||||
|
|
||||||
|
#: rc.cpp:359
|
||||||
|
msgid "aptitude search '~U'"
|
||||||
|
msgstr "aptitude search '~U'"
|
||||||
|
|
||||||
|
#: rc.cpp:362
|
||||||
|
msgid "yum list updates"
|
||||||
|
msgstr "yum list updates"
|
||||||
|
|
||||||
|
#: rc.cpp:365
|
||||||
|
msgid "pkg_version -I -l '<'"
|
||||||
|
msgstr "pkg_version -I -l '<'"
|
||||||
|
|
||||||
|
#: rc.cpp:368
|
||||||
|
msgid "urpmq --auto-select"
|
||||||
|
msgstr "urpmq --auto-select"
|
||||||
|
|
||||||
|
#: rc.cpp:371
|
||||||
|
msgid "Number of null lines"
|
||||||
|
msgstr "Number of null lines"
|
||||||
|
|
||||||
|
#: rc.cpp:379
|
||||||
msgctxt "NAME OF TRANSLATORS"
|
msgctxt "NAME OF TRANSLATORS"
|
||||||
msgid "Your names"
|
msgid "Your names"
|
||||||
msgstr "Evgeniy Alekseev"
|
msgstr "Evgeniy Alekseev"
|
||||||
|
|
||||||
#: rc.cpp:303
|
#: rc.cpp:380
|
||||||
msgctxt "EMAIL OF TRANSLATORS"
|
msgctxt "EMAIL OF TRANSLATORS"
|
||||||
msgid "Your emails"
|
msgid "Your emails"
|
||||||
msgstr "esalexeev@gmail.com"
|
msgstr "esalexeev@gmail.com"
|
||||||
|
|
||||||
|
#~ msgid "amarok"
|
||||||
|
#~ msgstr "amarok"
|
||||||
|
|
||||||
|
#~ msgid "mpd"
|
||||||
|
#~ msgstr "mpd"
|
||||||
|
|
||||||
|
#~ msgid "qmmp"
|
||||||
|
#~ msgstr "qmmp"
|
||||||
|
|
||||||
|
#~ msgid "auto"
|
||||||
|
#~ msgstr "auto"
|
||||||
|
|
||||||
|
#~ msgid "nvidia"
|
||||||
|
#~ msgstr "nvidia"
|
||||||
|
|
||||||
|
#~ msgid "ati"
|
||||||
|
#~ msgstr "ati"
|
||||||
|
|
||||||
|
#~ msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
||||||
|
#~ msgstr "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "$ds - uptime days\n"
|
||||||
|
#~ "$hs - uptime hours\n"
|
||||||
|
#~ "$ms - uptime minutes"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "$ds - uptime days\n"
|
||||||
|
#~ "$hs - uptime hours\n"
|
||||||
|
#~ "$ms - uptime minutes"
|
||||||
|
|
||||||
#~ msgid ""
|
#~ msgid ""
|
||||||
#~ "Command to run, example:\n"
|
#~ "Command to run, example:\n"
|
||||||
#~ "wget -qO- http://ifconfig.me/ip - get external IP"
|
#~ "wget -qO- http://ifconfig.me/ip - get external IP"
|
||||||
|
565
sources/ptm/po/es.po
Normal file
565
sources/ptm/po/es.po
Normal file
@ -0,0 +1,565 @@
|
|||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
#
|
||||||
|
# Ernesto Avilés Vzqz <whippiii@gmail.com>, 2014.
|
||||||
|
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: \n"
|
||||||
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||||
|
"POT-Creation-Date: 2014-05-19 11:55+0400\n"
|
||||||
|
"PO-Revision-Date: 2014-05-19 23:02+0400\n"
|
||||||
|
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||||
|
"Language-Team: Spanish <kde-russian@lists.kde.ru>\n"
|
||||||
|
"Language: es\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
"X-Generator: Lokalize 1.5\n"
|
||||||
|
|
||||||
|
#: code/main.py:108
|
||||||
|
msgid "Run ksysguard"
|
||||||
|
msgstr "Ejecutar ksysguard"
|
||||||
|
|
||||||
|
#: code/main.py:110
|
||||||
|
msgid "Show README"
|
||||||
|
msgstr "Mostrar el README"
|
||||||
|
|
||||||
|
#: rc.cpp:3
|
||||||
|
msgid "Form"
|
||||||
|
msgstr "Formulario"
|
||||||
|
|
||||||
|
#: rc.cpp:6
|
||||||
|
msgid "Widget settings"
|
||||||
|
msgstr "Configuración del componente"
|
||||||
|
|
||||||
|
#: rc.cpp:9
|
||||||
|
msgid ""
|
||||||
|
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||||
|
"pytextmonitor/\">project homepage</a>"
|
||||||
|
msgstr ""
|
||||||
|
"Puede encontrar información detallada en el <a href=\"http://arcanis.name/"
|
||||||
|
"projects/pytextmonitor/\">sitio del proyecto</a>"
|
||||||
|
|
||||||
|
#: rc.cpp:12
|
||||||
|
msgid "Time"
|
||||||
|
msgstr "Hora"
|
||||||
|
|
||||||
|
#: rc.cpp:15
|
||||||
|
msgid ""
|
||||||
|
"$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 - custom time format"
|
||||||
|
msgstr ""
|
||||||
|
"$time - hora en el formato por defecto\n"
|
||||||
|
"$isotime - hora en formato ISO\n"
|
||||||
|
"$shorttime - hora en formato corto\n"
|
||||||
|
"$longtime - hora en formato largo\n"
|
||||||
|
"$custom - hora en formato personalizado"
|
||||||
|
|
||||||
|
#: rc.cpp:22
|
||||||
|
msgid "Uptime"
|
||||||
|
msgstr "Tiempo de actividad"
|
||||||
|
|
||||||
|
#: rc.cpp:25
|
||||||
|
msgid ""
|
||||||
|
"$uptime - system uptime\n"
|
||||||
|
"$custom - custom format"
|
||||||
|
msgstr ""
|
||||||
|
"$uptime - tiempo de actividad del sistema\n"
|
||||||
|
"$custom - formato personalizado"
|
||||||
|
|
||||||
|
#: rc.cpp:29
|
||||||
|
msgid "CPU"
|
||||||
|
msgstr "CPU"
|
||||||
|
|
||||||
|
#: rc.cpp:33
|
||||||
|
msgid ""
|
||||||
|
"$cpu - total load CPU, %\n"
|
||||||
|
"$cpu0 - load CPU for core 0, %\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpu9 - load CPU for core 9, %\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuN - load CPU for core N, %"
|
||||||
|
msgstr ""
|
||||||
|
"$cpu - carga total de la CPU, %\n"
|
||||||
|
"$cpu0 - carga de la CPU para el núcleo 0, %\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpu9 - carga de la CPU para el núcleo 9, %\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuN - carga de la CPU para el núcleo N, %"
|
||||||
|
|
||||||
|
#: rc.cpp:41
|
||||||
|
msgid "CPU Clock"
|
||||||
|
msgstr "Frecuencia de la CPU"
|
||||||
|
|
||||||
|
#: rc.cpp:44
|
||||||
|
msgid ""
|
||||||
|
"$cpucl - average CPU clock, MHz\n"
|
||||||
|
"$cpucl0 - CPU clock for core 0, MHz\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpucl9 - CPU clock for core 9, MHz\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuclN - CPU clock for core N, MHz"
|
||||||
|
msgstr ""
|
||||||
|
"$cpucl - frecuencia de la CPU promedio, MHz\n"
|
||||||
|
"$cpucl0 - frecuencia de la CPU para el núcleo 0, MHz\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpucl9 - frecuencia de la CPU para el núcleo 9, MHz\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuclN - frecuencia de la CPU para el núcleo N, MHz"
|
||||||
|
|
||||||
|
#: rc.cpp:52
|
||||||
|
msgid "Temperature"
|
||||||
|
msgstr "Temperatura"
|
||||||
|
|
||||||
|
#: rc.cpp:55
|
||||||
|
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||||
|
msgstr ""
|
||||||
|
"$tempN - temperatura física en el dispositivo N (a partir de 0). Ejemplo: "
|
||||||
|
"$temp0"
|
||||||
|
|
||||||
|
#: rc.cpp:58
|
||||||
|
msgid "GPU"
|
||||||
|
msgstr "GPU"
|
||||||
|
|
||||||
|
#: rc.cpp:62
|
||||||
|
msgid "$gpu - gpu usage, %"
|
||||||
|
msgstr "$gpu - uso de la GPU, %"
|
||||||
|
|
||||||
|
#: rc.cpp:65
|
||||||
|
msgid "GPU Temp"
|
||||||
|
msgstr "Temperatura de la GPU"
|
||||||
|
|
||||||
|
#: rc.cpp:68
|
||||||
|
msgid "$gputemp - physical temperature on GPU"
|
||||||
|
msgstr "$gputemp - temperatura física de la GPU"
|
||||||
|
|
||||||
|
#: rc.cpp:71
|
||||||
|
msgid "Memory"
|
||||||
|
msgstr "Memoria"
|
||||||
|
|
||||||
|
#: rc.cpp:75
|
||||||
|
msgid ""
|
||||||
|
"$mem - RAM usage, %\n"
|
||||||
|
"$memmb - RAM usage, MB\n"
|
||||||
|
"$memgb - RAM usage, GB"
|
||||||
|
msgstr ""
|
||||||
|
"$mem - uso de la RAM, %\n"
|
||||||
|
"$memmb - uso de la RAM, MB\n"
|
||||||
|
"$memgb - uso de la RAM, GB"
|
||||||
|
|
||||||
|
#: rc.cpp:80
|
||||||
|
msgid "Swap"
|
||||||
|
msgstr "Swap"
|
||||||
|
|
||||||
|
#: rc.cpp:84
|
||||||
|
msgid ""
|
||||||
|
"$swap - swap usage, %\n"
|
||||||
|
"$swapmb - swap usage, MB\n"
|
||||||
|
"$swapgb - swap usage, GB"
|
||||||
|
msgstr ""
|
||||||
|
"$swap - uso de la swap, %\n"
|
||||||
|
"$swapmb - uso de la swap, MB\n"
|
||||||
|
"$swapgb - uso de la swap, GB"
|
||||||
|
|
||||||
|
#: rc.cpp:89 rc.cpp:341
|
||||||
|
msgid "HDD"
|
||||||
|
msgstr "Disco duro"
|
||||||
|
|
||||||
|
#: rc.cpp:93
|
||||||
|
msgid ""
|
||||||
|
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
||||||
|
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
||||||
|
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0"
|
||||||
|
msgstr ""
|
||||||
|
"$hddN - uso para el punto de montaje N (a partir de 0), %. Ejemplo: $hdd0\n"
|
||||||
|
"$hddmbN - uso para el punto de montaje N (a partir de 0), MB. Ejemplo: "
|
||||||
|
"$hddmb0\n"
|
||||||
|
"$hddgbN - uso para el punto de montaje N (a partir de 0), GB. Ejemplo: $hddgb0"
|
||||||
|
|
||||||
|
#: rc.cpp:98
|
||||||
|
msgid "HDD speed"
|
||||||
|
msgstr "Velocidad del disco duro"
|
||||||
|
|
||||||
|
#: rc.cpp:101
|
||||||
|
msgid ""
|
||||||
|
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
||||||
|
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
||||||
|
msgstr ""
|
||||||
|
"$hddrN - leer la velocidad del disco N (a partir de 0), KB/s. Por ejemplo: "
|
||||||
|
"$hddr0\n"
|
||||||
|
"$hddwN - velocidad de escritura del disco N (a partir de 0), KB/s. Por "
|
||||||
|
"ejemplo: $hddw0"
|
||||||
|
|
||||||
|
#: rc.cpp:105
|
||||||
|
msgid "HDD temp"
|
||||||
|
msgstr "Temperatura del disco duro"
|
||||||
|
|
||||||
|
#: rc.cpp:108
|
||||||
|
msgid ""
|
||||||
|
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||||
|
msgstr ""
|
||||||
|
"$hddtempN - temperatura física en el dispositivo N (a partir de 0). Ejemplo: "
|
||||||
|
"$hddtemp0"
|
||||||
|
|
||||||
|
#: rc.cpp:111
|
||||||
|
msgid "Network"
|
||||||
|
msgstr "Red"
|
||||||
|
|
||||||
|
#: rc.cpp:114
|
||||||
|
msgid ""
|
||||||
|
"$down - download speed, KB/s\n"
|
||||||
|
"$up - upload speed, KB/s\n"
|
||||||
|
"$netdev - current network device"
|
||||||
|
msgstr ""
|
||||||
|
"$down - velocidad de recepción, KB/s\n"
|
||||||
|
"$up - velocidad de envío, KB/s\n"
|
||||||
|
"$netdev - dispositivo de red actual"
|
||||||
|
|
||||||
|
#: rc.cpp:119
|
||||||
|
msgid "Battery"
|
||||||
|
msgstr "Batería"
|
||||||
|
|
||||||
|
#: rc.cpp:123
|
||||||
|
msgid ""
|
||||||
|
"$bat - battery charge, %\n"
|
||||||
|
"$ac - AC status"
|
||||||
|
msgstr ""
|
||||||
|
"$bat - carga de la batería, %\n"
|
||||||
|
"$ac - estado de la alimentación"
|
||||||
|
|
||||||
|
#: rc.cpp:127 rc.cpp:271
|
||||||
|
msgid "Music player"
|
||||||
|
msgstr "Reproductor de música"
|
||||||
|
|
||||||
|
#: rc.cpp:130
|
||||||
|
msgid ""
|
||||||
|
"$album - song album\n"
|
||||||
|
"$artist - song artist\n"
|
||||||
|
"$progress - song progress\n"
|
||||||
|
"$time - song duration\n"
|
||||||
|
"$title - song title"
|
||||||
|
msgstr ""
|
||||||
|
"$album - álbum de la canción\n"
|
||||||
|
"$artist - artista de la canción\n"
|
||||||
|
"$progress - progreso de la canción\n"
|
||||||
|
"$time - duración de la canción\n"
|
||||||
|
"$title - título de la canción"
|
||||||
|
|
||||||
|
#: rc.cpp:137
|
||||||
|
msgid "Processes"
|
||||||
|
msgstr "Procesos"
|
||||||
|
|
||||||
|
#: rc.cpp:140
|
||||||
|
msgid ""
|
||||||
|
"$pscount - number of running processes\n"
|
||||||
|
"$pstotal - total number of running processes\n"
|
||||||
|
"$ps - list of running processes comma separated"
|
||||||
|
msgstr ""
|
||||||
|
"$pscount - número de procesos en ejecución\n"
|
||||||
|
"$pstotal - total de procesos en ejecución\n"
|
||||||
|
"$ps - listado de procesos en ejecución separados por coma"
|
||||||
|
|
||||||
|
#: rc.cpp:145 rc.cpp:350
|
||||||
|
msgid "Package manager"
|
||||||
|
msgstr "Gestor de paquetes"
|
||||||
|
|
||||||
|
#: rc.cpp:148
|
||||||
|
msgid ""
|
||||||
|
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||||
|
"For example $pkgcount0"
|
||||||
|
msgstr ""
|
||||||
|
"$pkgcountN - número de paquetes con actualizaciones disponibles, comando N. "
|
||||||
|
"Por ejemplo $pkgcount0"
|
||||||
|
|
||||||
|
#: rc.cpp:151
|
||||||
|
msgid "Custom"
|
||||||
|
msgstr "Personalizado"
|
||||||
|
|
||||||
|
#: rc.cpp:154
|
||||||
|
msgid ""
|
||||||
|
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||||
|
msgstr ""
|
||||||
|
"$customN - obtener la salida de ejecución del comando personalizado N "
|
||||||
|
"(apartir de 0). Por ejemplo: $custom0"
|
||||||
|
|
||||||
|
#: rc.cpp:157
|
||||||
|
msgid "Advanced"
|
||||||
|
msgstr "Avanzado"
|
||||||
|
|
||||||
|
#: rc.cpp:160
|
||||||
|
msgid "Custom time format"
|
||||||
|
msgstr "Formato personalizado para la hora"
|
||||||
|
|
||||||
|
#: rc.cpp:163
|
||||||
|
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 - día de la semana largo\n"
|
||||||
|
"$ddd - día de la semana corto\n"
|
||||||
|
"$dd - día\n"
|
||||||
|
"$d - día (sin ceros)\n"
|
||||||
|
"$MMMM - mes largo\n"
|
||||||
|
"$MMM - mes corto\n"
|
||||||
|
"$MM - mes\n"
|
||||||
|
"$M - mes (sin ceros)\n"
|
||||||
|
"$yyyy - año\n"
|
||||||
|
"$yy - año largo\n"
|
||||||
|
"$hh - horas (solo formato de 24 horas)\n"
|
||||||
|
"$h - horas (sin ceros, solo formato de 24 horas)\n"
|
||||||
|
"$mm - minutos\n"
|
||||||
|
"$m - minutos (sin ceros)\n"
|
||||||
|
"$ss - segundos\n"
|
||||||
|
"$s - segundos (sin ceros)"
|
||||||
|
|
||||||
|
#: rc.cpp:181
|
||||||
|
msgid "Custom uptime format"
|
||||||
|
msgstr "Formato personalizado para el tiempo de actividad del sistema"
|
||||||
|
|
||||||
|
#: rc.cpp:184
|
||||||
|
msgid ""
|
||||||
|
"$dd - uptime days\n"
|
||||||
|
"$d - uptime days without zero\n"
|
||||||
|
"$hh - uptime hours\n"
|
||||||
|
"$h - uptime hours without zero\n"
|
||||||
|
"$mm - uptime minutes\n"
|
||||||
|
"$m - uptime minutes without zero"
|
||||||
|
msgstr ""
|
||||||
|
"$dd - días\n"
|
||||||
|
"$d - días (sin ceros)\n"
|
||||||
|
"$hh - horas\n"
|
||||||
|
"$h - horas (sin ceros)\n"
|
||||||
|
"$mm - minutos\n"
|
||||||
|
"$m - minutos (sin ceros)"
|
||||||
|
|
||||||
|
#: rc.cpp:192
|
||||||
|
msgid "Temperature units"
|
||||||
|
msgstr "Unidades de temperatura"
|
||||||
|
|
||||||
|
#: rc.cpp:195
|
||||||
|
msgid "Temperature devices"
|
||||||
|
msgstr "Dispositivos de temperatura"
|
||||||
|
|
||||||
|
#: rc.cpp:198 rc.cpp:208 rc.cpp:218 rc.cpp:228 rc.cpp:331 rc.cpp:374
|
||||||
|
msgid "Add"
|
||||||
|
msgstr "Añadir"
|
||||||
|
|
||||||
|
#: rc.cpp:201 rc.cpp:211 rc.cpp:221 rc.cpp:231 rc.cpp:334 rc.cpp:377
|
||||||
|
msgid ""
|
||||||
|
"Editable\n"
|
||||||
|
"del - remove item"
|
||||||
|
msgstr ""
|
||||||
|
"Editable\n"
|
||||||
|
"del - eliminar elemento"
|
||||||
|
|
||||||
|
#: rc.cpp:205
|
||||||
|
msgid "Mount points"
|
||||||
|
msgstr "Puntos de montaje"
|
||||||
|
|
||||||
|
#: rc.cpp:215
|
||||||
|
msgid "HDD devices (speed)"
|
||||||
|
msgstr "Disco duro (velocidad)"
|
||||||
|
|
||||||
|
#: rc.cpp:225
|
||||||
|
msgid "HDD devices (temp)"
|
||||||
|
msgstr "Disco duro (temperatura)"
|
||||||
|
|
||||||
|
#: rc.cpp:235
|
||||||
|
msgid "Network directory"
|
||||||
|
msgstr "Directorio de la red"
|
||||||
|
|
||||||
|
#: rc.cpp:238
|
||||||
|
msgid "\"/sys/class/net\" by default"
|
||||||
|
msgstr "\"/sys/class/net\" por defecto"
|
||||||
|
|
||||||
|
#: rc.cpp:241
|
||||||
|
msgid "Disable auto select device and set specified device"
|
||||||
|
msgstr "Inhabilitar selección automática del dispositivo y especificar uno"
|
||||||
|
|
||||||
|
#: rc.cpp:244
|
||||||
|
msgid "Set network device"
|
||||||
|
msgstr "Establecer dispositivo de red"
|
||||||
|
|
||||||
|
#: rc.cpp:247
|
||||||
|
msgid "Battery device"
|
||||||
|
msgstr "Dispositivo de batería"
|
||||||
|
|
||||||
|
#: rc.cpp:250
|
||||||
|
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||||
|
msgstr "\"/sys/class/power_supply/BAT0/capacity\" por defecto"
|
||||||
|
|
||||||
|
#: rc.cpp:253
|
||||||
|
msgid "AC online tag"
|
||||||
|
msgstr "Etiqueta para alimentación conectada"
|
||||||
|
|
||||||
|
#: rc.cpp:256
|
||||||
|
msgid "Line, which returns when AC is online"
|
||||||
|
msgstr "Línea que devuelve si la alimentación está conectada"
|
||||||
|
|
||||||
|
#: rc.cpp:259
|
||||||
|
msgid "AC offline tag"
|
||||||
|
msgstr "Etiqueta para la alimentación desconectada"
|
||||||
|
|
||||||
|
#: rc.cpp:262
|
||||||
|
msgid "Line, which returns when AC is offline"
|
||||||
|
msgstr "Línea que devuelve si la alimentación está desconectada"
|
||||||
|
|
||||||
|
#: rc.cpp:265
|
||||||
|
msgid "AC device"
|
||||||
|
msgstr "Dispositivo de alimentación"
|
||||||
|
|
||||||
|
#: rc.cpp:268
|
||||||
|
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||||
|
msgstr "\"/sys/class/power_supply/AC/online\" por defecto"
|
||||||
|
|
||||||
|
#: rc.cpp:274
|
||||||
|
msgid "Tooltip"
|
||||||
|
msgstr "Ventana emergente"
|
||||||
|
|
||||||
|
#: rc.cpp:277
|
||||||
|
msgid ""
|
||||||
|
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||||
|
"To enable them just make needed checkbox fully checked."
|
||||||
|
msgstr ""
|
||||||
|
"Las etiquetas para CPU, frecuencia de la CPU, memoria, swap y red soportan "
|
||||||
|
"ventanas emergentes. "
|
||||||
|
"Para habilitarlas habilite la caja de seleccione la casilla de verificación "
|
||||||
|
"pertinente."
|
||||||
|
|
||||||
|
#: rc.cpp:280
|
||||||
|
msgid "Number of values for tooltips"
|
||||||
|
msgstr "Número de valores para las ventanas emergentes"
|
||||||
|
|
||||||
|
#: rc.cpp:283
|
||||||
|
msgid "CPU clock color"
|
||||||
|
msgstr "Color de la frecuencia de la CPU"
|
||||||
|
|
||||||
|
#: rc.cpp:286
|
||||||
|
msgid "Swap color"
|
||||||
|
msgstr "Color de la swap"
|
||||||
|
|
||||||
|
#: rc.cpp:289
|
||||||
|
msgid "CPU color"
|
||||||
|
msgstr "Color de la CPU"
|
||||||
|
|
||||||
|
#: rc.cpp:292
|
||||||
|
msgid "Download speed color"
|
||||||
|
msgstr "Color de la velocidad de recepción"
|
||||||
|
|
||||||
|
#: rc.cpp:295
|
||||||
|
msgid "Memory color"
|
||||||
|
msgstr "Color de la memoria"
|
||||||
|
|
||||||
|
#: rc.cpp:298
|
||||||
|
msgid "Upload speed color"
|
||||||
|
msgstr "Color de la velocidad de envío"
|
||||||
|
|
||||||
|
#: rc.cpp:301
|
||||||
|
msgid "Appearance"
|
||||||
|
msgstr "Apariencia"
|
||||||
|
|
||||||
|
#: rc.cpp:304
|
||||||
|
msgid "Time interval"
|
||||||
|
msgstr "Intervalo de tiempo"
|
||||||
|
|
||||||
|
#: rc.cpp:307
|
||||||
|
msgid "Font"
|
||||||
|
msgstr "Fuente"
|
||||||
|
|
||||||
|
#: rc.cpp:310
|
||||||
|
msgid "Font size"
|
||||||
|
msgstr "Tamaño de fuente"
|
||||||
|
|
||||||
|
#: rc.cpp:313
|
||||||
|
msgid "Font color"
|
||||||
|
msgstr "Color de fuente"
|
||||||
|
|
||||||
|
#: rc.cpp:316
|
||||||
|
msgid "Font style"
|
||||||
|
msgstr "Estilo de fuente"
|
||||||
|
|
||||||
|
#: rc.cpp:319
|
||||||
|
msgid "Font weight"
|
||||||
|
msgstr "Grosor de la fuente"
|
||||||
|
|
||||||
|
#: rc.cpp:322
|
||||||
|
msgid "DataEngine"
|
||||||
|
msgstr "DataEngine"
|
||||||
|
|
||||||
|
#: rc.cpp:325
|
||||||
|
msgid "Custom command"
|
||||||
|
msgstr "Comando personalizado"
|
||||||
|
|
||||||
|
#: rc.cpp:328
|
||||||
|
msgid "Custom command to run"
|
||||||
|
msgstr "Comando personalizado para ejecutar"
|
||||||
|
|
||||||
|
#: rc.cpp:338
|
||||||
|
msgid "GPU device"
|
||||||
|
msgstr "Dispositivo de GPU"
|
||||||
|
|
||||||
|
#: rc.cpp:344
|
||||||
|
msgid "MPD address"
|
||||||
|
msgstr "Dirección de MPD"
|
||||||
|
|
||||||
|
#: rc.cpp:347
|
||||||
|
msgid "MPD port"
|
||||||
|
msgstr "Puerto de MPD"
|
||||||
|
|
||||||
|
#: rc.cpp:353
|
||||||
|
msgid "pacman -Qu"
|
||||||
|
msgstr "pacman -Qu"
|
||||||
|
|
||||||
|
#: rc.cpp:356
|
||||||
|
msgid "apt-show-versions -u -b"
|
||||||
|
msgstr "apt-show-versions -u -b"
|
||||||
|
|
||||||
|
#: rc.cpp:359
|
||||||
|
msgid "aptitude search '~U'"
|
||||||
|
msgstr "aptitude search '~U'"
|
||||||
|
|
||||||
|
#: rc.cpp:362
|
||||||
|
msgid "yum list updates"
|
||||||
|
msgstr "yum list updates"
|
||||||
|
|
||||||
|
#: rc.cpp:365
|
||||||
|
msgid "pkg_version -I -l '<'"
|
||||||
|
msgstr "pkg_version -I -l '<'"
|
||||||
|
|
||||||
|
#: rc.cpp:368
|
||||||
|
msgid "urpmq --auto-select"
|
||||||
|
msgstr "urpmq --auto-select"
|
||||||
|
|
||||||
|
#: rc.cpp:371
|
||||||
|
msgid "Number of null lines"
|
||||||
|
msgstr "Número de líneas nulas"
|
||||||
|
|
||||||
|
#: rc.cpp:379
|
||||||
|
msgctxt "NAME OF TRANSLATORS"
|
||||||
|
msgid "Your names"
|
||||||
|
msgstr "Tu nombre"
|
||||||
|
|
||||||
|
#: rc.cpp:380
|
||||||
|
msgctxt "EMAIL OF TRANSLATORS"
|
||||||
|
msgid "Your emails"
|
||||||
|
msgstr "Tus correos"
|
||||||
|
|
@ -31,7 +31,7 @@ add_list()
|
|||||||
echo "Preparing rc files"
|
echo "Preparing rc files"
|
||||||
cd ${BASEDIR}
|
cd ${BASEDIR}
|
||||||
# we use simple sorting to make sure the lines do not jump around too much from system to system
|
# we use simple sorting to make sure the lines do not jump around too much from system to system
|
||||||
find . -name '*.rc' -o -name '*.ui' -o -name '*.kcfg' | sort > ${WDIR}/rcfiles.list
|
find . -name '*.rc' -o -name '*.ui' -o -name '*.kcfg' -o -name '*.py' | sort > ${WDIR}/rcfiles.list
|
||||||
xargs --arg-file=${WDIR}/rcfiles.list extractrc > ${WDIR}/rc.cpp
|
xargs --arg-file=${WDIR}/rcfiles.list extractrc > ${WDIR}/rc.cpp
|
||||||
|
|
||||||
# additional string for KAboutData
|
# additional string for KAboutData
|
||||||
@ -52,12 +52,12 @@ echo "Done preparing rc files"
|
|||||||
echo "Extracting messages"
|
echo "Extracting messages"
|
||||||
cd ${BASEDIR}
|
cd ${BASEDIR}
|
||||||
# see above on sorting
|
# see above on sorting
|
||||||
find . -name '*.cpp' -o -name '*.h' -o -name '*.c' | sort > ${WDIR}/infiles.list
|
find . -name '*.cpp' -o -name '*.h' -o -name '*.c' -o -name '*.py' | sort > ${WDIR}/infiles.list
|
||||||
echo "rc.cpp" >> ${WDIR}/infiles.list
|
echo "rc.cpp" >> ${WDIR}/infiles.list
|
||||||
cd ${WDIR}
|
cd ${WDIR}
|
||||||
xgettext --from-code=UTF-8 -C -kde -ci18n -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -ktr2i18n:1 \
|
xgettext --from-code=UTF-8 -C -kde -ci18n -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -ktr2i18n:1 \
|
||||||
-kI18N_NOOP:1 -kI18N_NOOP2:1c,2 -kaliasLocale -kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 \
|
-kI18N_NOOP:1 -kI18N_NOOP2:1c,2 -kaliasLocale -kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 \
|
||||||
--msgid-bugs-address="${BUGADDR}" \
|
--msgid-bugs-address="${BUGADDR}" --language=Python \
|
||||||
--files-from=infiles.list -D ${BASEDIR} -D ${WDIR} -o ${PROJECT}.pot || { echo "error while calling xgettext. aborting."; exit 1; }
|
--files-from=infiles.list -D ${BASEDIR} -D ${WDIR} -o ${PROJECT}.pot || { echo "error while calling xgettext. aborting."; exit 1; }
|
||||||
echo "Done extracting messages"
|
echo "Done extracting messages"
|
||||||
|
|
||||||
|
622
sources/ptm/po/fr.po
Normal file
622
sources/ptm/po/fr.po
Normal file
@ -0,0 +1,622 @@
|
|||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
#
|
||||||
|
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
|
||||||
|
# Mermouy <mermouy@gmail.com>, 2014.
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: \n"
|
||||||
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||||
|
"POT-Creation-Date: 2014-05-19 11:55+0400\n"
|
||||||
|
"PO-Revision-Date: 2014-05-21 16:45+0200\n"
|
||||||
|
"Last-Translator: Mermouy <mermouy@gmail.com>\n"
|
||||||
|
"Language-Team: French <kde-i18n-doc@kde.org>\n"
|
||||||
|
"Language: fr\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||||
|
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||||
|
"X-Generator: Lokalize 1.5\n"
|
||||||
|
|
||||||
|
#: code/main.py:108
|
||||||
|
msgid "Run ksysguard"
|
||||||
|
msgstr "Lancer ksysguard"
|
||||||
|
|
||||||
|
#: code/main.py:110
|
||||||
|
msgid "Show README"
|
||||||
|
msgstr "Voir le README"
|
||||||
|
|
||||||
|
#: rc.cpp:3
|
||||||
|
msgid "Form"
|
||||||
|
msgstr "Entrées"
|
||||||
|
|
||||||
|
#: rc.cpp:6
|
||||||
|
msgid "Widget settings"
|
||||||
|
msgstr "Paramètres de l'applet"
|
||||||
|
|
||||||
|
#: rc.cpp:9
|
||||||
|
msgid ""
|
||||||
|
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||||
|
"pytextmonitor/\">project homepage</a>"
|
||||||
|
msgstr ""
|
||||||
|
"D'avantage d'informations se trouvent sur <a href=\"http://arcanis.name/"
|
||||||
|
"projects/pytextmonitor/\">la page du projet</a>"
|
||||||
|
|
||||||
|
#: rc.cpp:12
|
||||||
|
msgid "Time"
|
||||||
|
msgstr "Durée"
|
||||||
|
|
||||||
|
#: rc.cpp:15
|
||||||
|
msgid ""
|
||||||
|
"$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 - custom time format"
|
||||||
|
msgstr ""
|
||||||
|
"$time - l'heure au format par défaut\n"
|
||||||
|
"$isotime - l'heure au format ISO\n"
|
||||||
|
"$shorttime - l'heure format court\n"
|
||||||
|
"$longtime - l'heure au format log\n"
|
||||||
|
"$custom - l'heure, format personnalisé"
|
||||||
|
|
||||||
|
#: rc.cpp:22
|
||||||
|
msgid "Uptime"
|
||||||
|
msgstr "temps de fonctionnement"
|
||||||
|
|
||||||
|
#: rc.cpp:25
|
||||||
|
msgid ""
|
||||||
|
"$uptime - system uptime\n"
|
||||||
|
"$custom - custom format"
|
||||||
|
msgstr ""
|
||||||
|
"$uptime - temps de fonctionnement\n"
|
||||||
|
"$custom - format personnalisé"
|
||||||
|
|
||||||
|
#: rc.cpp:29
|
||||||
|
msgid "CPU"
|
||||||
|
msgstr "CPU"
|
||||||
|
|
||||||
|
#: rc.cpp:33
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
"$cpu - total load CPU, %\n"
|
||||||
|
"$cpu0 - load CPU for core 0, %\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpu9 - load CPU for core 9, %\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuN - load CPU for core N, %"
|
||||||
|
msgstr ""
|
||||||
|
"$cpu - charge totale du processeur, %\n"
|
||||||
|
"$cpu0 - charge du processeur pour le coeur 0, %\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpu7 - charge processeur pour le coeur 7, %"
|
||||||
|
|
||||||
|
#: rc.cpp:41
|
||||||
|
msgid "CPU Clock"
|
||||||
|
msgstr "Horloge processeur"
|
||||||
|
|
||||||
|
#: rc.cpp:44
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
"$cpucl - average CPU clock, MHz\n"
|
||||||
|
"$cpucl0 - CPU clock for core 0, MHz\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpucl9 - CPU clock for core 9, MHz\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuclN - CPU clock for core N, MHz"
|
||||||
|
msgstr ""
|
||||||
|
"$cpucl - Moyenne de l'horloge du processeur, MHz\n"
|
||||||
|
"$cpucl0 - Horloge du coeur 0, MHz\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpucl7 - Horloge du coeur 7, MHz"
|
||||||
|
|
||||||
|
#: rc.cpp:52
|
||||||
|
msgid "Temperature"
|
||||||
|
msgstr "Température"
|
||||||
|
|
||||||
|
#: rc.cpp:55
|
||||||
|
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||||
|
msgstr ""
|
||||||
|
"$tempN - Température physique du périphérique N (à partir de 0). Exemple: "
|
||||||
|
"$temp0"
|
||||||
|
|
||||||
|
#: rc.cpp:58
|
||||||
|
msgid "GPU"
|
||||||
|
msgstr "Processeur graphique"
|
||||||
|
|
||||||
|
#: rc.cpp:62
|
||||||
|
msgid "$gpu - gpu usage, %"
|
||||||
|
msgstr "$gpu - utilisation du processeur graphique, %"
|
||||||
|
|
||||||
|
#: rc.cpp:65
|
||||||
|
msgid "GPU Temp"
|
||||||
|
msgstr "Temp du processeur graphique"
|
||||||
|
|
||||||
|
#: rc.cpp:68
|
||||||
|
msgid "$gputemp - physical temperature on GPU"
|
||||||
|
msgstr "$gputemp - Température physique du processeur graphique"
|
||||||
|
|
||||||
|
#: rc.cpp:71
|
||||||
|
msgid "Memory"
|
||||||
|
msgstr "Mémoire"
|
||||||
|
|
||||||
|
#: rc.cpp:75
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
"$mem - RAM usage, %\n"
|
||||||
|
"$memmb - RAM usage, MB\n"
|
||||||
|
"$memgb - RAM usage, GB"
|
||||||
|
msgstr ""
|
||||||
|
"$mem - utilisation de la RAM, %\n"
|
||||||
|
"$memmb - utilisation de la RAM, MB"
|
||||||
|
|
||||||
|
#: rc.cpp:80
|
||||||
|
msgid "Swap"
|
||||||
|
msgstr "mémoire d'échange (swap)"
|
||||||
|
|
||||||
|
#: rc.cpp:84
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
"$swap - swap usage, %\n"
|
||||||
|
"$swapmb - swap usage, MB\n"
|
||||||
|
"$swapgb - swap usage, GB"
|
||||||
|
msgstr ""
|
||||||
|
"$swap - utilisation swap, %\n"
|
||||||
|
"$swapmb - utilisation swap, MB"
|
||||||
|
|
||||||
|
#: rc.cpp:89 rc.cpp:341
|
||||||
|
msgid "HDD"
|
||||||
|
msgstr "Disque dur"
|
||||||
|
|
||||||
|
#: rc.cpp:93
|
||||||
|
msgid ""
|
||||||
|
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
||||||
|
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
||||||
|
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0"
|
||||||
|
msgstr ""
|
||||||
|
"$hddN - utilisation du point de montage N (à partir de 0), %. Exemple: $hdd0\n"
|
||||||
|
"$hddmbN - utilisation du point de montage N (à partir de 0), MB. Exemple: "
|
||||||
|
"$hddmb0\n"
|
||||||
|
"$hddgbN - utilisation du point de montage N (à partir de 0), GB. Exemple: "
|
||||||
|
"$hddgb0"
|
||||||
|
|
||||||
|
#: rc.cpp:98
|
||||||
|
#, fuzzy
|
||||||
|
msgid "HDD speed"
|
||||||
|
msgstr "Périphériques HDD"
|
||||||
|
|
||||||
|
#: rc.cpp:101
|
||||||
|
msgid ""
|
||||||
|
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
||||||
|
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
||||||
|
msgstr ""
|
||||||
|
"$hddrN - vitesse de lecture HDD N (à partir de 0), KB/s. Exemple: $hddr0\n"
|
||||||
|
"$hddwN - vitesse d'écriture HDD N (à partir de 0), KB/s. Exemple: $hddw0"
|
||||||
|
|
||||||
|
#: rc.cpp:105
|
||||||
|
#, fuzzy
|
||||||
|
msgid "HDD temp"
|
||||||
|
msgstr "Température disque dur"
|
||||||
|
|
||||||
|
#: rc.cpp:108
|
||||||
|
msgid ""
|
||||||
|
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||||
|
msgstr ""
|
||||||
|
"$hddtempN - température physique du périphérique N (à partir de 0). Exemple: "
|
||||||
|
"$hddtemp0"
|
||||||
|
|
||||||
|
#: rc.cpp:111
|
||||||
|
msgid "Network"
|
||||||
|
msgstr "Réseau"
|
||||||
|
|
||||||
|
#: rc.cpp:114
|
||||||
|
msgid ""
|
||||||
|
"$down - download speed, KB/s\n"
|
||||||
|
"$up - upload speed, KB/s\n"
|
||||||
|
"$netdev - current network device"
|
||||||
|
msgstr ""
|
||||||
|
"$down - vitesse de téléchargement, KB/s\n"
|
||||||
|
"$up - vitesse ascendante, KB/s\n"
|
||||||
|
"$netdev - périphérique réseau actuel"
|
||||||
|
|
||||||
|
#: rc.cpp:119
|
||||||
|
msgid "Battery"
|
||||||
|
msgstr "Batterie"
|
||||||
|
|
||||||
|
#: rc.cpp:123
|
||||||
|
msgid ""
|
||||||
|
"$bat - battery charge, %\n"
|
||||||
|
"$ac - AC status"
|
||||||
|
msgstr ""
|
||||||
|
"$bat - charge de la batterie, %\n"
|
||||||
|
"$ac - état de l'alimentation"
|
||||||
|
|
||||||
|
#: rc.cpp:127 rc.cpp:271
|
||||||
|
msgid "Music player"
|
||||||
|
msgstr "Lecteur audio"
|
||||||
|
|
||||||
|
#: rc.cpp:130
|
||||||
|
msgid ""
|
||||||
|
"$album - song album\n"
|
||||||
|
"$artist - song artist\n"
|
||||||
|
"$progress - song progress\n"
|
||||||
|
"$time - song duration\n"
|
||||||
|
"$title - song title"
|
||||||
|
msgstr ""
|
||||||
|
"$album - album du morceau\n"
|
||||||
|
"$artist - artiste du morceau\n"
|
||||||
|
"$progress - avancement du morceau\n"
|
||||||
|
"$time - durée du morceau\n"
|
||||||
|
"$title - titre du morceau"
|
||||||
|
|
||||||
|
#: rc.cpp:137
|
||||||
|
msgid "Processes"
|
||||||
|
msgstr "Processus"
|
||||||
|
|
||||||
|
#: rc.cpp:140
|
||||||
|
msgid ""
|
||||||
|
"$pscount - number of running processes\n"
|
||||||
|
"$pstotal - total number of running processes\n"
|
||||||
|
"$ps - list of running processes comma separated"
|
||||||
|
msgstr ""
|
||||||
|
"$pscount - nombre de processus actifs\n"
|
||||||
|
"$pstotal - nombre total de processus actifs\n"
|
||||||
|
"$ps - liste des processus actifs séparés par une virgule"
|
||||||
|
|
||||||
|
#: rc.cpp:145 rc.cpp:350
|
||||||
|
msgid "Package manager"
|
||||||
|
msgstr "Gestionnaire de paquets"
|
||||||
|
|
||||||
|
#: rc.cpp:148
|
||||||
|
msgid ""
|
||||||
|
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||||
|
"For example $pkgcount0"
|
||||||
|
msgstr ""
|
||||||
|
"$pkgcountN - nombre de paquets à mettre à jour, commande N. "
|
||||||
|
"Par exemple $pkgcount0"
|
||||||
|
|
||||||
|
#: rc.cpp:151
|
||||||
|
msgid "Custom"
|
||||||
|
msgstr "Personnalisé"
|
||||||
|
|
||||||
|
#: rc.cpp:154
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||||
|
msgstr "$custom - sortie d'une commande personnelle"
|
||||||
|
|
||||||
|
#: rc.cpp:157
|
||||||
|
msgid "Advanced"
|
||||||
|
msgstr "Avancé"
|
||||||
|
|
||||||
|
#: rc.cpp:160
|
||||||
|
msgid "Custom time format"
|
||||||
|
msgstr "Format de l'heure personnalisé"
|
||||||
|
|
||||||
|
#: rc.cpp:163
|
||||||
|
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 - Jour de la semaine long\n"
|
||||||
|
"$ddd - Jour de la semaine court\n"
|
||||||
|
"$dd - jour\n"
|
||||||
|
"$d - jour sans zéro\n"
|
||||||
|
"$MMMM - mois long\n"
|
||||||
|
"$MMM - mois court\n"
|
||||||
|
"$MM - mois\n"
|
||||||
|
"$M - mois sans zéro\n"
|
||||||
|
"$yyyy - année\n"
|
||||||
|
"$yy - année courte\n"
|
||||||
|
"$hh - heures (24 uniquement)\n"
|
||||||
|
"$h - heures sans zéro (24 uniquement)\n"
|
||||||
|
"$mm - minutes\n"
|
||||||
|
"$m - minutes sans zéro\n"
|
||||||
|
"$ss - secondes\n"
|
||||||
|
"$s - secondes sans zéro"
|
||||||
|
|
||||||
|
#: rc.cpp:181
|
||||||
|
msgid "Custom uptime format"
|
||||||
|
msgstr "Temps de fonctionnement personalisé"
|
||||||
|
|
||||||
|
#: rc.cpp:184
|
||||||
|
msgid ""
|
||||||
|
"$dd - uptime days\n"
|
||||||
|
"$d - uptime days without zero\n"
|
||||||
|
"$hh - uptime hours\n"
|
||||||
|
"$h - uptime hours without zero\n"
|
||||||
|
"$mm - uptime minutes\n"
|
||||||
|
"$m - uptime minutes without zero"
|
||||||
|
msgstr ""
|
||||||
|
"$dd - temps de fonctionnement en jours\n"
|
||||||
|
"$d - temps de fonctionnement en jours sans zéro\n"
|
||||||
|
"$hh - temps de fonctionnement en heures\n"
|
||||||
|
"$h - temps de fonctionnement en heures sans zéro\n"
|
||||||
|
"$mm - temps de fonctionnement en minutes\n"
|
||||||
|
"$m - temps de fonctionnement en minutes sans zéro"
|
||||||
|
|
||||||
|
#: rc.cpp:192
|
||||||
|
#, fuzzy
|
||||||
|
msgid "Temperature units"
|
||||||
|
msgstr "Température"
|
||||||
|
|
||||||
|
#: rc.cpp:195
|
||||||
|
msgid "Temperature devices"
|
||||||
|
msgstr "Temperature des périphériques"
|
||||||
|
|
||||||
|
#: rc.cpp:198 rc.cpp:208 rc.cpp:218 rc.cpp:228 rc.cpp:331 rc.cpp:374
|
||||||
|
msgid "Add"
|
||||||
|
msgstr "Ajouter"
|
||||||
|
|
||||||
|
#: rc.cpp:201 rc.cpp:211 rc.cpp:221 rc.cpp:231 rc.cpp:334 rc.cpp:377
|
||||||
|
msgid ""
|
||||||
|
"Editable\n"
|
||||||
|
"del - remove item"
|
||||||
|
msgstr ""
|
||||||
|
"Modifiable\n"
|
||||||
|
"del - supprimer un élément"
|
||||||
|
|
||||||
|
#: rc.cpp:205
|
||||||
|
msgid "Mount points"
|
||||||
|
msgstr "Points de montage"
|
||||||
|
|
||||||
|
#: rc.cpp:215
|
||||||
|
#, fuzzy
|
||||||
|
msgid "HDD devices (speed)"
|
||||||
|
msgstr "Périphériques HDD"
|
||||||
|
|
||||||
|
#: rc.cpp:225
|
||||||
|
#, fuzzy
|
||||||
|
msgid "HDD devices (temp)"
|
||||||
|
msgstr "Périphériques HDD"
|
||||||
|
|
||||||
|
#: rc.cpp:235
|
||||||
|
msgid "Network directory"
|
||||||
|
msgstr "Voisinage réseau"
|
||||||
|
|
||||||
|
#: rc.cpp:238
|
||||||
|
msgid "\"/sys/class/net\" by default"
|
||||||
|
msgstr "\"/sys/class/net\" par défaut"
|
||||||
|
|
||||||
|
#: rc.cpp:241
|
||||||
|
msgid "Disable auto select device and set specified device"
|
||||||
|
msgstr ""
|
||||||
|
"Désactiver la sélection automatique de périphériques et le sélectionner "
|
||||||
|
"manuellement"
|
||||||
|
|
||||||
|
#: rc.cpp:244
|
||||||
|
msgid "Set network device"
|
||||||
|
msgstr "Sélectionner le périphérique réseau"
|
||||||
|
|
||||||
|
#: rc.cpp:247
|
||||||
|
msgid "Battery device"
|
||||||
|
msgstr "Batterie"
|
||||||
|
|
||||||
|
#: rc.cpp:250
|
||||||
|
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||||
|
msgstr "\"/sys/class/power_supply/BAT0/capacity\" par défaut"
|
||||||
|
|
||||||
|
#: rc.cpp:253
|
||||||
|
msgid "AC online tag"
|
||||||
|
msgstr "Tag alimentation branchée"
|
||||||
|
|
||||||
|
#: rc.cpp:256
|
||||||
|
msgid "Line, which returns when AC is online"
|
||||||
|
msgstr "Ligne qui est renvoyée lorsque l'alimentation est branchée"
|
||||||
|
|
||||||
|
#: rc.cpp:259
|
||||||
|
msgid "AC offline tag"
|
||||||
|
msgstr "Tag alimentation débranchée"
|
||||||
|
|
||||||
|
#: rc.cpp:262
|
||||||
|
msgid "Line, which returns when AC is offline"
|
||||||
|
msgstr "Ligne, qui est renvoyée lorsque l'alimentation est débranchée"
|
||||||
|
|
||||||
|
#: rc.cpp:265
|
||||||
|
msgid "AC device"
|
||||||
|
msgstr "Périphérique d'alimentation"
|
||||||
|
|
||||||
|
#: rc.cpp:268
|
||||||
|
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||||
|
msgstr "\"/sys/class/power_supply/AC/online\" par défaut"
|
||||||
|
|
||||||
|
#: rc.cpp:274
|
||||||
|
msgid "Tooltip"
|
||||||
|
msgstr "Conseil"
|
||||||
|
|
||||||
|
#: rc.cpp:277
|
||||||
|
msgid ""
|
||||||
|
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||||
|
"To enable them just make needed checkbox fully checked."
|
||||||
|
msgstr ""
|
||||||
|
"CPU, horloge du CPU, mémoire vive, mémoire swap et noms réseau supportent "
|
||||||
|
"les conseils visuels. Pour les activer cochez simplement les cases "
|
||||||
|
"correspondantes."
|
||||||
|
|
||||||
|
#: rc.cpp:280
|
||||||
|
msgid "Number of values for tooltips"
|
||||||
|
msgstr "Nombre d'éléments pour les conseils"
|
||||||
|
|
||||||
|
#: rc.cpp:283
|
||||||
|
msgid "CPU clock color"
|
||||||
|
msgstr "Couleur de l'horloge processeur"
|
||||||
|
|
||||||
|
#: rc.cpp:286
|
||||||
|
msgid "Swap color"
|
||||||
|
msgstr "Couleur de la mémoire d'échange"
|
||||||
|
|
||||||
|
#: rc.cpp:289
|
||||||
|
msgid "CPU color"
|
||||||
|
msgstr "Couleur processeur"
|
||||||
|
|
||||||
|
#: rc.cpp:292
|
||||||
|
msgid "Download speed color"
|
||||||
|
msgstr "Couleur de la vitesse de téléchargement"
|
||||||
|
|
||||||
|
#: rc.cpp:295
|
||||||
|
msgid "Memory color"
|
||||||
|
msgstr "Couleur de la mémoire"
|
||||||
|
|
||||||
|
#: rc.cpp:298
|
||||||
|
msgid "Upload speed color"
|
||||||
|
msgstr "Couleur du téléversement"
|
||||||
|
|
||||||
|
#: rc.cpp:301
|
||||||
|
msgid "Appearance"
|
||||||
|
msgstr "Apparence"
|
||||||
|
|
||||||
|
#: rc.cpp:304
|
||||||
|
msgid "Time interval"
|
||||||
|
msgstr "Intervalle"
|
||||||
|
|
||||||
|
#: rc.cpp:307
|
||||||
|
msgid "Font"
|
||||||
|
msgstr "Police"
|
||||||
|
|
||||||
|
#: rc.cpp:310
|
||||||
|
msgid "Font size"
|
||||||
|
msgstr "Taille de la police"
|
||||||
|
|
||||||
|
#: rc.cpp:313
|
||||||
|
msgid "Font color"
|
||||||
|
msgstr "Couleur de la police"
|
||||||
|
|
||||||
|
#: rc.cpp:316
|
||||||
|
msgid "Font style"
|
||||||
|
msgstr "Style de la police"
|
||||||
|
|
||||||
|
#: rc.cpp:319
|
||||||
|
msgid "Font weight"
|
||||||
|
msgstr "Épaisseur de la police"
|
||||||
|
|
||||||
|
#: rc.cpp:322
|
||||||
|
msgid "DataEngine"
|
||||||
|
msgstr "Moteur de données"
|
||||||
|
|
||||||
|
#: rc.cpp:325
|
||||||
|
msgid "Custom command"
|
||||||
|
msgstr "Commande personnalisée"
|
||||||
|
|
||||||
|
#: rc.cpp:328
|
||||||
|
msgid "Custom command to run"
|
||||||
|
msgstr "Commande personnalisée à exécuter"
|
||||||
|
|
||||||
|
#: rc.cpp:338
|
||||||
|
msgid "GPU device"
|
||||||
|
msgstr "Périphérique graphique"
|
||||||
|
|
||||||
|
#: rc.cpp:344
|
||||||
|
msgid "MPD address"
|
||||||
|
msgstr "Adresse MPD"
|
||||||
|
|
||||||
|
#: rc.cpp:347
|
||||||
|
msgid "MPD port"
|
||||||
|
msgstr "Port MPD"
|
||||||
|
|
||||||
|
#: rc.cpp:353
|
||||||
|
msgid "pacman -Qu"
|
||||||
|
msgstr "pacman -Qu"
|
||||||
|
|
||||||
|
#: rc.cpp:356
|
||||||
|
msgid "apt-show-versions -u -b"
|
||||||
|
msgstr "apt-show-versions -u -b"
|
||||||
|
|
||||||
|
#: rc.cpp:359
|
||||||
|
msgid "aptitude search '~U'"
|
||||||
|
msgstr "aptitude search '~U'"
|
||||||
|
|
||||||
|
#: rc.cpp:362
|
||||||
|
msgid "yum list updates"
|
||||||
|
msgstr "yum list updates"
|
||||||
|
|
||||||
|
#: rc.cpp:365
|
||||||
|
msgid "pkg_version -I -l '<'"
|
||||||
|
msgstr "pkg_version -I -l '<'"
|
||||||
|
|
||||||
|
#: rc.cpp:368
|
||||||
|
msgid "urpmq --auto-select"
|
||||||
|
msgstr "urpmq --auto-select"
|
||||||
|
|
||||||
|
#: rc.cpp:371
|
||||||
|
#, fuzzy
|
||||||
|
msgid "Number of null lines"
|
||||||
|
msgstr "Nombre d'éléments pour les conseils"
|
||||||
|
|
||||||
|
#: rc.cpp:379
|
||||||
|
msgctxt "NAME OF TRANSLATORS"
|
||||||
|
msgid "Your names"
|
||||||
|
msgstr "Evgeniy Alekseev"
|
||||||
|
|
||||||
|
#: rc.cpp:380
|
||||||
|
msgctxt "EMAIL OF TRANSLATORS"
|
||||||
|
msgid "Your emails"
|
||||||
|
msgstr "esalexeev@gmail.com"
|
||||||
|
|
||||||
|
#~ msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "$hddN - espace occupé sur le point de montage N (à partir de 0), %. "
|
||||||
|
#~ "Exemple: $hdd0"
|
||||||
|
|
||||||
|
#~ msgid "amarok"
|
||||||
|
#~ msgstr "amarok"
|
||||||
|
|
||||||
|
#~ msgid "mpd"
|
||||||
|
#~ msgstr "mpd"
|
||||||
|
|
||||||
|
#~ msgid "qmmp"
|
||||||
|
#~ msgstr "qmmp"
|
||||||
|
|
||||||
|
#~ msgid "auto"
|
||||||
|
#~ msgstr "auto"
|
||||||
|
|
||||||
|
#~ msgid "nvidia"
|
||||||
|
#~ msgstr "nvidia"
|
||||||
|
|
||||||
|
#~ msgid "ati"
|
||||||
|
#~ msgstr "ati"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "$ds - uptime days\n"
|
||||||
|
#~ "$hs - uptime hours\n"
|
||||||
|
#~ "$ms - uptime minutes"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "$ds - uptime days\n"
|
||||||
|
#~ "$hs - uptime hours\n"
|
||||||
|
#~ "$ms - uptime minutes"
|
||||||
|
|
||||||
|
#~ 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 ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||||
"POT-Creation-Date: 2014-04-03 02:22+0400\n"
|
"POT-Creation-Date: 2014-05-19 11:55+0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -17,34 +17,32 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=CHARSET\n"
|
"Content-Type: text/plain; charset=CHARSET\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:32
|
#: code/main.py:108
|
||||||
#. i18n: ectx: property (windowTitle), widget (QWidget, ConfigWindow)
|
msgid "Run ksysguard"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: code/main.py:110
|
||||||
|
msgid "Show README"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: rc.cpp:3
|
#: rc.cpp:3
|
||||||
msgid "Form"
|
msgid "Form"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:42
|
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, settings)
|
|
||||||
#: rc.cpp:6
|
#: rc.cpp:6
|
||||||
msgid "Widget settings"
|
msgid "Widget settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:48
|
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label)
|
|
||||||
#: rc.cpp:9
|
#: rc.cpp:9
|
||||||
msgid ""
|
msgid ""
|
||||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||||
"pytextmonitor/\">project homepage</a>"
|
"pytextmonitor/\">project homepage</a>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:69
|
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
|
|
||||||
#: rc.cpp:12
|
#: rc.cpp:12
|
||||||
msgid "Time"
|
msgid "Time"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:83
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
|
|
||||||
#: rc.cpp:15
|
#: rc.cpp:15
|
||||||
msgid ""
|
msgid ""
|
||||||
"$time - time in default format\n"
|
"$time - time in default format\n"
|
||||||
@ -54,189 +52,146 @@ msgid ""
|
|||||||
"$custom - custom time format"
|
"$custom - custom time format"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:128
|
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
|
|
||||||
#: rc.cpp:22
|
#: rc.cpp:22
|
||||||
msgid "Uptime"
|
msgid "Uptime"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:139
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
|
|
||||||
#: rc.cpp:25
|
#: rc.cpp:25
|
||||||
msgid ""
|
msgid ""
|
||||||
"$uptime - system uptime\n"
|
"$uptime - system uptime\n"
|
||||||
"$custom - custom format"
|
"$custom - custom format"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:187
|
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
|
|
||||||
#: rc.cpp:29
|
#: rc.cpp:29
|
||||||
msgid "CPU"
|
msgid "CPU"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:203
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
|
|
||||||
#: rc.cpp:33
|
#: rc.cpp:33
|
||||||
#, no-c-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$cpu - total load CPU, %\n"
|
"$cpu - total load CPU, %\n"
|
||||||
"$cpu0 - load CPU for core 0, %\n"
|
"$cpu0 - load CPU for core 0, %\n"
|
||||||
"...\n"
|
"...\n"
|
||||||
"$cpu7 - load CPU for core 7, %"
|
"$cpu9 - load CPU for core 9, %\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuN - load CPU for core N, %"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:251
|
#: rc.cpp:41
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
|
|
||||||
#: rc.cpp:39
|
|
||||||
msgid "CPU Clock"
|
msgid "CPU Clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:267
|
#: rc.cpp:44
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
|
|
||||||
#: rc.cpp:42
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$cpucl - average CPU clock, MHz\n"
|
"$cpucl - average CPU clock, MHz\n"
|
||||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
"$cpucl0 - CPU clock for core 0, MHz\n"
|
||||||
"...\n"
|
"...\n"
|
||||||
"$cpucl7 - CPU clock for core 7, MHz"
|
"$cpucl9 - CPU clock for core 9, MHz\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuclN - CPU clock for core N, MHz"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:315
|
#: rc.cpp:52
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
|
|
||||||
#: rc.cpp:48
|
|
||||||
msgid "Temperature"
|
msgid "Temperature"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:325
|
#: rc.cpp:55
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
|
|
||||||
#: rc.cpp:51
|
|
||||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:373
|
#: rc.cpp:58
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
|
|
||||||
#: rc.cpp:54
|
|
||||||
msgid "GPU"
|
msgid "GPU"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:383
|
#: rc.cpp:62
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
|
|
||||||
#: rc.cpp:58
|
|
||||||
#, no-c-format
|
|
||||||
msgid "$gpu - gpu usage, %"
|
msgid "$gpu - gpu usage, %"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:431
|
#: rc.cpp:65
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
|
|
||||||
#: rc.cpp:61
|
|
||||||
msgid "GPU Temp"
|
msgid "GPU Temp"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:441
|
#: rc.cpp:68
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
|
|
||||||
#: rc.cpp:64
|
|
||||||
msgid "$gputemp - physical temperature on GPU"
|
msgid "$gputemp - physical temperature on GPU"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:489
|
#: rc.cpp:71
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
|
|
||||||
#: rc.cpp:67
|
|
||||||
msgid "Memory"
|
msgid "Memory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:503
|
#: rc.cpp:75
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
|
|
||||||
#: rc.cpp:71
|
|
||||||
#, no-c-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$mem - RAM usage, %\n"
|
"$mem - RAM usage, %\n"
|
||||||
"$memmb - RAM usage, MB"
|
"$memmb - RAM usage, MB\n"
|
||||||
|
"$memgb - RAM usage, GB"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:551
|
#: rc.cpp:80
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
|
|
||||||
#: rc.cpp:75
|
|
||||||
msgid "Swap"
|
msgid "Swap"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:565
|
#: rc.cpp:84
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
|
|
||||||
#: rc.cpp:79
|
|
||||||
#, no-c-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$swap - swap usage, %\n"
|
"$swap - swap usage, %\n"
|
||||||
"$swapmb - swap usage, MB"
|
"$swapmb - swap usage, MB\n"
|
||||||
|
"$swapgb - swap usage, GB"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:613
|
#: rc.cpp:89 rc.cpp:341
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
|
|
||||||
#. i18n: file: ui/configwindow.ui:2097
|
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_hdddev)
|
|
||||||
#: rc.cpp:83 rc.cpp:289
|
|
||||||
msgid "HDD"
|
msgid "HDD"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:623
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
|
|
||||||
#: rc.cpp:87
|
|
||||||
#, no-c-format
|
|
||||||
msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:671
|
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
|
|
||||||
#: rc.cpp:90
|
|
||||||
msgid "HDD Temp"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:681
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
|
|
||||||
#: rc.cpp:93
|
#: rc.cpp:93
|
||||||
msgid ""
|
msgid ""
|
||||||
|
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
||||||
|
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
||||||
|
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:98
|
||||||
|
msgid "HDD speed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:101
|
||||||
|
msgid ""
|
||||||
|
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
||||||
|
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:105
|
||||||
|
msgid "HDD temp"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:108
|
||||||
|
msgid ""
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:729
|
#: rc.cpp:111
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
|
|
||||||
#: rc.cpp:96
|
|
||||||
msgid "Network"
|
msgid "Network"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:744
|
#: rc.cpp:114
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
|
|
||||||
#: rc.cpp:99
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$down - download speed, KB/s\n"
|
"$down - download speed, KB/s\n"
|
||||||
"$up - upload speed, KB/s\n"
|
"$up - upload speed, KB/s\n"
|
||||||
"$netdev - current network device"
|
"$netdev - current network device"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:792
|
#: rc.cpp:119
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
|
|
||||||
#: rc.cpp:104
|
|
||||||
msgid "Battery"
|
msgid "Battery"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:803
|
#: rc.cpp:123
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
|
|
||||||
#: rc.cpp:108
|
|
||||||
#, no-c-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$bat - battery charge, %\n"
|
"$bat - battery charge, %\n"
|
||||||
"$ac - AC status"
|
"$ac - AC status"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:851
|
#: rc.cpp:127 rc.cpp:271
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
|
|
||||||
#. i18n: file: ui/configwindow.ui:1338
|
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_playerSelect)
|
|
||||||
#: rc.cpp:112 rc.cpp:214
|
|
||||||
msgid "Music player"
|
msgid "Music player"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:865
|
#: rc.cpp:130
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
|
|
||||||
#: rc.cpp:115
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$album - song album\n"
|
"$album - song album\n"
|
||||||
"$artist - song artist\n"
|
"$artist - song artist\n"
|
||||||
@ -245,33 +200,45 @@ msgid ""
|
|||||||
"$title - song title"
|
"$title - song title"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:913
|
#: rc.cpp:137
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_custom)
|
msgid "Processes"
|
||||||
#: rc.cpp:122
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:140
|
||||||
|
msgid ""
|
||||||
|
"$pscount - number of running processes\n"
|
||||||
|
"$pstotal - total number of running processes\n"
|
||||||
|
"$ps - list of running processes comma separated"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:145 rc.cpp:350
|
||||||
|
msgid "Package manager"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:148
|
||||||
|
msgid ""
|
||||||
|
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||||
|
"For example $pkgcount0"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:151
|
||||||
msgid "Custom"
|
msgid "Custom"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:923
|
#: rc.cpp:154
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_custom)
|
msgid ""
|
||||||
#: rc.cpp:125
|
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||||
msgid "$custom - get output from custom command"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:977
|
#: rc.cpp:157
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, advanced)
|
|
||||||
#: rc.cpp:128
|
|
||||||
msgid "Advanced"
|
msgid "Advanced"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:991
|
#: rc.cpp:160
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_timeFormat)
|
|
||||||
#: rc.cpp:131
|
|
||||||
msgid "Custom time format"
|
msgid "Custom time format"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1013
|
#: rc.cpp:163
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_timeFormat)
|
|
||||||
#: rc.cpp:134
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$dddd - long weekday\n"
|
"$dddd - long weekday\n"
|
||||||
"$ddd - short weekday\n"
|
"$ddd - short weekday\n"
|
||||||
@ -291,285 +258,222 @@ msgid ""
|
|||||||
"$s - seconds w\\o zero"
|
"$s - seconds w\\o zero"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1033
|
#: rc.cpp:181
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_uptimeFormat)
|
|
||||||
#: rc.cpp:152
|
|
||||||
msgid "Custom uptime format"
|
msgid "Custom uptime format"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1042
|
#: rc.cpp:184
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptimeFormat)
|
|
||||||
#: rc.cpp:155
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$ds - uptime days\n"
|
"$dd - uptime days\n"
|
||||||
"$hs - uptime hours\n"
|
"$d - uptime days without zero\n"
|
||||||
"$ms - uptime minutes"
|
"$hh - uptime hours\n"
|
||||||
|
"$h - uptime hours without zero\n"
|
||||||
|
"$mm - uptime minutes\n"
|
||||||
|
"$m - uptime minutes without zero"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1064
|
#: rc.cpp:192
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_tempDevice)
|
msgid "Temperature units"
|
||||||
#: rc.cpp:160
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:195
|
||||||
msgid "Temperature devices"
|
msgid "Temperature devices"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1090
|
#: rc.cpp:198 rc.cpp:208 rc.cpp:218 rc.cpp:228 rc.cpp:331 rc.cpp:374
|
||||||
#. 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"
|
msgid "Add"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1100
|
#: rc.cpp:201 rc.cpp:211 rc.cpp:221 rc.cpp:231 rc.cpp:334 rc.cpp:377
|
||||||
#. 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 ""
|
msgid ""
|
||||||
"Editable\n"
|
"Editable\n"
|
||||||
"del - remove item"
|
"del - remove item"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1119
|
#: rc.cpp:205
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_mount)
|
|
||||||
#: rc.cpp:170
|
|
||||||
msgid "Mount points"
|
msgid "Mount points"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1174
|
#: rc.cpp:215
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_hddDevice)
|
msgid "HDD devices (speed)"
|
||||||
#: rc.cpp:180
|
|
||||||
msgid "HDD devices"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1227
|
#: rc.cpp:225
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_netdir)
|
msgid "HDD devices (temp)"
|
||||||
#: rc.cpp:190
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:235
|
||||||
msgid "Network directory"
|
msgid "Network directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1234
|
#: rc.cpp:238
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_netdir)
|
|
||||||
#: rc.cpp:193
|
|
||||||
msgid "\"/sys/class/net\" by default"
|
msgid "\"/sys/class/net\" by default"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1254
|
#: rc.cpp:241
|
||||||
#. i18n: ectx: property (toolTip), widget (QCheckBox, checkBox_netdev)
|
|
||||||
#: rc.cpp:196
|
|
||||||
msgid "Disable auto select device and set specified device"
|
msgid "Disable auto select device and set specified device"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1257
|
#: rc.cpp:244
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_netdev)
|
|
||||||
#: rc.cpp:199
|
|
||||||
msgid "Set network device"
|
msgid "Set network device"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1290
|
#: rc.cpp:247
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
|
|
||||||
#: rc.cpp:202
|
|
||||||
msgid "Battery device"
|
msgid "Battery device"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1297
|
#: rc.cpp:250
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
|
|
||||||
#: rc.cpp:205
|
|
||||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1314
|
#: rc.cpp:253
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
|
msgid "AC online tag"
|
||||||
#: rc.cpp:208
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:256
|
||||||
|
msgid "Line, which returns when AC is online"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:259
|
||||||
|
msgid "AC offline tag"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:262
|
||||||
|
msgid "Line, which returns when AC is offline"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:265
|
||||||
msgid "AC device"
|
msgid "AC device"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1321
|
#: rc.cpp:268
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
|
|
||||||
#: rc.cpp:211
|
|
||||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1358
|
#: rc.cpp:274
|
||||||
#. 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"
|
msgid "Tooltip"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1398
|
#: rc.cpp:277
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltip)
|
|
||||||
#: rc.cpp:229
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||||
"To enable them just make needed checkbox fully checked."
|
"To enable them just make needed checkbox fully checked."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1419
|
#: rc.cpp:280
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltipNum)
|
|
||||||
#: rc.cpp:232
|
|
||||||
msgid "Number of values for tooltips"
|
msgid "Number of values for tooltips"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1474
|
#: rc.cpp:283
|
||||||
#. 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"
|
msgid "CPU clock color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1554
|
#: rc.cpp:286
|
||||||
#. 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"
|
msgid "Swap color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1634
|
#: rc.cpp:289
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_downColor)
|
msgid "CPU color"
|
||||||
#: rc.cpp:247
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:292
|
||||||
msgid "Download speed color"
|
msgid "Download speed color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1674
|
#: rc.cpp:295
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_upColor)
|
msgid "Memory color"
|
||||||
#: rc.cpp:250
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:298
|
||||||
msgid "Upload speed color"
|
msgid "Upload speed color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1720
|
#: rc.cpp:301
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, appearance)
|
|
||||||
#: rc.cpp:253
|
|
||||||
msgid "Appearance"
|
msgid "Appearance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1734
|
#: rc.cpp:304
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
|
||||||
#: rc.cpp:256
|
|
||||||
msgid "Time interval"
|
msgid "Time interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1789
|
#: rc.cpp:307
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
|
||||||
#: rc.cpp:259
|
|
||||||
msgid "Font"
|
msgid "Font"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1829
|
#: rc.cpp:310
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
|
||||||
#: rc.cpp:262
|
|
||||||
msgid "Font size"
|
msgid "Font size"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1884
|
#: rc.cpp:313
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_color)
|
|
||||||
#: rc.cpp:265
|
|
||||||
msgid "Font color"
|
msgid "Font color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1924
|
#: rc.cpp:316
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_style)
|
|
||||||
#: rc.cpp:268
|
|
||||||
msgid "Font style"
|
msgid "Font style"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1974
|
#: rc.cpp:319
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_weight)
|
|
||||||
#: rc.cpp:271
|
|
||||||
msgid "Font weight"
|
msgid "Font weight"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:2035
|
#: rc.cpp:322
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, dataengine)
|
|
||||||
#: rc.cpp:274
|
|
||||||
msgid "DataEngine"
|
msgid "DataEngine"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:2049
|
#: rc.cpp:325
|
||||||
#. 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"
|
msgid "Custom command"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:2216
|
#: rc.cpp:328
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_customCommand)
|
|
||||||
#: rc.cpp:301
|
|
||||||
msgid "Custom command to run"
|
msgid "Custom command to run"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rc.cpp:302
|
#: rc.cpp:338
|
||||||
|
msgid "GPU device"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:344
|
||||||
|
msgid "MPD address"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:347
|
||||||
|
msgid "MPD port"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:353
|
||||||
|
msgid "pacman -Qu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:356
|
||||||
|
msgid "apt-show-versions -u -b"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:359
|
||||||
|
msgid "aptitude search '~U'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:362
|
||||||
|
msgid "yum list updates"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:365
|
||||||
|
msgid "pkg_version -I -l '<'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:368
|
||||||
|
msgid "urpmq --auto-select"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:371
|
||||||
|
msgid "Number of null lines"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: rc.cpp:379
|
||||||
msgctxt "NAME OF TRANSLATORS"
|
msgctxt "NAME OF TRANSLATORS"
|
||||||
msgid "Your names"
|
msgid "Your names"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rc.cpp:303
|
#: rc.cpp:380
|
||||||
msgctxt "EMAIL OF TRANSLATORS"
|
msgctxt "EMAIL OF TRANSLATORS"
|
||||||
msgid "Your emails"
|
msgid "Your emails"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||||
"POT-Creation-Date: 2014-04-03 02:22+0400\n"
|
"POT-Creation-Date: 2014-05-19 11:55+0400\n"
|
||||||
"PO-Revision-Date: 2014-04-03 02:24+0400\n"
|
"PO-Revision-Date: 2014-05-19 02:58+0400\n"
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||||
"Language: ru\n"
|
"Language: ru\n"
|
||||||
@ -18,20 +18,22 @@ msgstr ""
|
|||||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||||
"X-Generator: Lokalize 1.5\n"
|
"X-Generator: Lokalize 1.5\n"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:32
|
#: code/main.py:108
|
||||||
#. i18n: ectx: property (windowTitle), widget (QWidget, ConfigWindow)
|
msgid "Run ksysguard"
|
||||||
|
msgstr "Запутить ksysguard"
|
||||||
|
|
||||||
|
#: code/main.py:110
|
||||||
|
msgid "Show README"
|
||||||
|
msgstr "Показать README"
|
||||||
|
|
||||||
#: rc.cpp:3
|
#: rc.cpp:3
|
||||||
msgid "Form"
|
msgid "Form"
|
||||||
msgstr "Form"
|
msgstr "Form"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:42
|
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, settings)
|
|
||||||
#: rc.cpp:6
|
#: rc.cpp:6
|
||||||
msgid "Widget settings"
|
msgid "Widget settings"
|
||||||
msgstr "Настройки виджета"
|
msgstr "Настройки виджета"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:48
|
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label)
|
|
||||||
#: rc.cpp:9
|
#: rc.cpp:9
|
||||||
msgid ""
|
msgid ""
|
||||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||||
@ -40,14 +42,10 @@ msgstr ""
|
|||||||
"Подробная информация может быть найдена на <a href=\"http://arcanis.name/ru/"
|
"Подробная информация может быть найдена на <a href=\"http://arcanis.name/ru/"
|
||||||
"projects/pytextmonitor/\">домашней странице проекта</a>"
|
"projects/pytextmonitor/\">домашней странице проекта</a>"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:69
|
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
|
|
||||||
#: rc.cpp:12
|
#: rc.cpp:12
|
||||||
msgid "Time"
|
msgid "Time"
|
||||||
msgstr "Время"
|
msgstr "Время"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:83
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
|
|
||||||
#: rc.cpp:15
|
#: rc.cpp:15
|
||||||
msgid ""
|
msgid ""
|
||||||
"$time - time in default format\n"
|
"$time - time in default format\n"
|
||||||
@ -62,14 +60,10 @@ msgstr ""
|
|||||||
"$longtime - время в длинном формате\n"
|
"$longtime - время в длинном формате\n"
|
||||||
"$custom - свой формат времени"
|
"$custom - свой формат времени"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:128
|
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
|
|
||||||
#: rc.cpp:22
|
#: rc.cpp:22
|
||||||
msgid "Uptime"
|
msgid "Uptime"
|
||||||
msgstr "Время работы"
|
msgstr "Время работы"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:139
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
|
|
||||||
#: rc.cpp:25
|
#: rc.cpp:25
|
||||||
msgid ""
|
msgid ""
|
||||||
"$uptime - system uptime\n"
|
"$uptime - system uptime\n"
|
||||||
@ -78,157 +72,140 @@ msgstr ""
|
|||||||
"$uptime - время работы\n"
|
"$uptime - время работы\n"
|
||||||
"$custom - свой формат"
|
"$custom - свой формат"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:187
|
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
|
|
||||||
#: rc.cpp:29
|
#: rc.cpp:29
|
||||||
msgid "CPU"
|
msgid "CPU"
|
||||||
msgstr "CPU"
|
msgstr "CPU"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:203
|
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
|
|
||||||
#: rc.cpp:33
|
#: rc.cpp:33
|
||||||
#, no-c-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$cpu - total load CPU, %\n"
|
"$cpu - total load CPU, %\n"
|
||||||
"$cpu0 - load CPU for core 0, %\n"
|
"$cpu0 - load CPU for core 0, %\n"
|
||||||
"...\n"
|
"...\n"
|
||||||
"$cpu7 - load CPU for core 7, %"
|
"$cpu9 - load CPU for core 9, %\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuN - load CPU for core N, %"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"$cpu - общая загрузка CPU, %\n"
|
"$cpu - общая загрузка CPU, %\n"
|
||||||
"$cpu0 - загрузка CPU для ядра 0, %\n"
|
"$cpu0 - загрузка CPU для ядра 0, %\n"
|
||||||
"...\n"
|
"...\n"
|
||||||
"$cpu7 - загрузка CPU для ядра 7, %"
|
"$cpu9 - загрузка CPU для ядра 9, %\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuN - загрузка CPU для ядра N, %"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:251
|
#: rc.cpp:41
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
|
|
||||||
#: rc.cpp:39
|
|
||||||
msgid "CPU Clock"
|
msgid "CPU Clock"
|
||||||
msgstr "Частота CPU"
|
msgstr "Частота CPU"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:267
|
#: rc.cpp:44
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
|
|
||||||
#: rc.cpp:42
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$cpucl - average CPU clock, MHz\n"
|
"$cpucl - average CPU clock, MHz\n"
|
||||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
"$cpucl0 - CPU clock for core 0, MHz\n"
|
||||||
"...\n"
|
"...\n"
|
||||||
"$cpucl7 - CPU clock for core 7, MHz"
|
"$cpucl9 - CPU clock for core 9, MHz\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuclN - CPU clock for core N, MHz"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"$cpucl - средняя частота CPU, MHz\n"
|
"$cpucl - средняя частота CPU, MHz\n"
|
||||||
"$cpucl0 - частота CPU для ядра 0, MHz\n"
|
"$cpucl0 - частота CPU для ядра 0, MHz\n"
|
||||||
"...\n"
|
"...\n"
|
||||||
"$cpucl7 - частота CPU для ядра 7, MHz"
|
"$cpucl9 - частота CPU для ядра 9, MHz\n"
|
||||||
|
"...\n"
|
||||||
|
"$cpuclN - частота CPU для ядра N, MHz"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:315
|
#: rc.cpp:52
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
|
|
||||||
#: rc.cpp:48
|
|
||||||
msgid "Temperature"
|
msgid "Temperature"
|
||||||
msgstr "Температура"
|
msgstr "Температура"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:325
|
#: rc.cpp:55
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
|
|
||||||
#: rc.cpp:51
|
|
||||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||||
msgstr "$tempN - физическая температура на устройстве N (от 0). Пример: $temp0"
|
msgstr "$tempN - физическая температура на устройстве N (от 0). Пример: $temp0"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:373
|
#: rc.cpp:58
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
|
|
||||||
#: rc.cpp:54
|
|
||||||
msgid "GPU"
|
msgid "GPU"
|
||||||
msgstr "GPU"
|
msgstr "GPU"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:383
|
#: rc.cpp:62
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
|
|
||||||
#: rc.cpp:58
|
|
||||||
#, no-c-format
|
|
||||||
msgid "$gpu - gpu usage, %"
|
msgid "$gpu - gpu usage, %"
|
||||||
msgstr "$gpu - использование GPU, %"
|
msgstr "$gpu - использование GPU, %"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:431
|
#: rc.cpp:65
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
|
|
||||||
#: rc.cpp:61
|
|
||||||
msgid "GPU Temp"
|
msgid "GPU Temp"
|
||||||
msgstr "Температура GPU"
|
msgstr "Температура GPU"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:441
|
#: rc.cpp:68
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
|
|
||||||
#: rc.cpp:64
|
|
||||||
msgid "$gputemp - physical temperature on GPU"
|
msgid "$gputemp - physical temperature on GPU"
|
||||||
msgstr "$gputemp - физическая температура на GPU"
|
msgstr "$gputemp - физическая температура на GPU"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:489
|
#: rc.cpp:71
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
|
|
||||||
#: rc.cpp:67
|
|
||||||
msgid "Memory"
|
msgid "Memory"
|
||||||
msgstr "Память"
|
msgstr "Память"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:503
|
#: rc.cpp:75
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
|
|
||||||
#: rc.cpp:71
|
|
||||||
#, no-c-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$mem - RAM usage, %\n"
|
"$mem - RAM usage, %\n"
|
||||||
"$memmb - RAM usage, MB"
|
"$memmb - RAM usage, MB\n"
|
||||||
|
"$memgb - RAM usage, GB"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"$mem - использование RAM, %\n"
|
"$mem - использование RAM, %\n"
|
||||||
"$memmb - использование RAM, MB"
|
"$memmb - использование RAM, MB\n"
|
||||||
|
"$memgb - использование RAM, GB"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:551
|
#: rc.cpp:80
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
|
|
||||||
#: rc.cpp:75
|
|
||||||
msgid "Swap"
|
msgid "Swap"
|
||||||
msgstr "Swap"
|
msgstr "Swap"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:565
|
#: rc.cpp:84
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
|
|
||||||
#: rc.cpp:79
|
|
||||||
#, no-c-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$swap - swap usage, %\n"
|
"$swap - swap usage, %\n"
|
||||||
"$swapmb - swap usage, MB"
|
"$swapmb - swap usage, MB\n"
|
||||||
|
"$swapgb - swap usage, GB"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"$swap - использование swap, %\n"
|
"$swap - использование swap, %\n"
|
||||||
"$swapmb - использование swap, MB"
|
"$swapmb - использование swap, MB\n"
|
||||||
|
"$swapgb - использование swap, GB"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:613
|
#: rc.cpp:89 rc.cpp:341
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
|
|
||||||
#. i18n: file: ui/configwindow.ui:2097
|
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_hdddev)
|
|
||||||
#: rc.cpp:83 rc.cpp:289
|
|
||||||
msgid "HDD"
|
msgid "HDD"
|
||||||
msgstr "HDD"
|
msgstr "HDD"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:623
|
#: rc.cpp:93
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
|
msgid ""
|
||||||
#: rc.cpp:87
|
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
||||||
#, no-c-format
|
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
||||||
msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0"
|
||||||
msgstr "$hddN - использование точки монтирования N (от 0), %. Пример: $hdd0"
|
msgstr ""
|
||||||
|
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
||||||
|
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
||||||
|
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:671
|
#: rc.cpp:98
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
|
msgid "HDD speed"
|
||||||
#: rc.cpp:90
|
msgstr "Скорость HDD"
|
||||||
msgid "HDD Temp"
|
|
||||||
|
#: rc.cpp:101
|
||||||
|
msgid ""
|
||||||
|
"$hddrN - read speed HDD N (from 0), KB/s. Example: $hddr0\n"
|
||||||
|
"$hddwN - write speed HDD N (from 0), KB/s. Example: $hddw0"
|
||||||
|
msgstr ""
|
||||||
|
"$hddrN - скорость записи на HDD N (от 0), KB/s. Например: $hddr0\n"
|
||||||
|
"$hddwN - скорость чтения с HDD N (от 0), KB/s. Например: $hddw0"
|
||||||
|
|
||||||
|
#: rc.cpp:105
|
||||||
|
msgid "HDD temp"
|
||||||
msgstr "Температура HDD"
|
msgstr "Температура HDD"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:681
|
#: rc.cpp:108
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
|
|
||||||
#: rc.cpp:93
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0 "
|
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0 "
|
||||||
"$hddtempN - температура на устройстве N (от 0). Пример: $hddtemp0"
|
"$hddtempN - температура на устройстве N (от 0). Пример: $hddtemp0"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:729
|
#: rc.cpp:111
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
|
|
||||||
#: rc.cpp:96
|
|
||||||
msgid "Network"
|
msgid "Network"
|
||||||
msgstr "Сеть"
|
msgstr "Сеть"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:744
|
#: rc.cpp:114
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
|
|
||||||
#: rc.cpp:99
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$down - download speed, KB/s\n"
|
"$down - download speed, KB/s\n"
|
||||||
"$up - upload speed, KB/s\n"
|
"$up - upload speed, KB/s\n"
|
||||||
@ -238,16 +215,11 @@ msgstr ""
|
|||||||
"$up - скорость загрузки, KB/s\n"
|
"$up - скорость загрузки, KB/s\n"
|
||||||
"$netdev - текущее устройство"
|
"$netdev - текущее устройство"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:792
|
#: rc.cpp:119
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
|
|
||||||
#: rc.cpp:104
|
|
||||||
msgid "Battery"
|
msgid "Battery"
|
||||||
msgstr "Батарея"
|
msgstr "Батарея"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:803
|
#: rc.cpp:123
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
|
|
||||||
#: rc.cpp:108
|
|
||||||
#, no-c-format
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$bat - battery charge, %\n"
|
"$bat - battery charge, %\n"
|
||||||
"$ac - AC status"
|
"$ac - AC status"
|
||||||
@ -255,17 +227,11 @@ msgstr ""
|
|||||||
"$bat - заряд батареи, %\n"
|
"$bat - заряд батареи, %\n"
|
||||||
"$ac - статус адаптора питания"
|
"$ac - статус адаптора питания"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:851
|
#: rc.cpp:127 rc.cpp:271
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
|
|
||||||
#. i18n: file: ui/configwindow.ui:1338
|
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_playerSelect)
|
|
||||||
#: rc.cpp:112 rc.cpp:214
|
|
||||||
msgid "Music player"
|
msgid "Music player"
|
||||||
msgstr "Музыкальный плеер"
|
msgstr "Музыкальный плеер"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:865
|
#: rc.cpp:130
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
|
|
||||||
#: rc.cpp:115
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$album - song album\n"
|
"$album - song album\n"
|
||||||
"$artist - song artist\n"
|
"$artist - song artist\n"
|
||||||
@ -279,33 +245,50 @@ msgstr ""
|
|||||||
"$time - продолжительность\n"
|
"$time - продолжительность\n"
|
||||||
"$title - название"
|
"$title - название"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:913
|
#: rc.cpp:137
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_custom)
|
msgid "Processes"
|
||||||
#: rc.cpp:122
|
msgstr "Процессы"
|
||||||
|
|
||||||
|
#: rc.cpp:140
|
||||||
|
msgid ""
|
||||||
|
"$pscount - number of running processes\n"
|
||||||
|
"$pstotal - total number of running processes\n"
|
||||||
|
"$ps - list of running processes comma separated"
|
||||||
|
msgstr ""
|
||||||
|
"$pscount - число запущенных процессов\n"
|
||||||
|
"$pstotal - общее число процессов\n"
|
||||||
|
"$ps - список запущенных процессов, разделенных запятыми"
|
||||||
|
|
||||||
|
#: rc.cpp:145 rc.cpp:350
|
||||||
|
msgid "Package manager"
|
||||||
|
msgstr "Пакетный менеджер"
|
||||||
|
|
||||||
|
#: rc.cpp:148
|
||||||
|
msgid ""
|
||||||
|
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||||
|
"For example $pkgcount0"
|
||||||
|
msgstr ""
|
||||||
|
"$pkgcountN - число пакетов, которые доступны для обновления, для команды N. "
|
||||||
|
"Например, $pkgcount0"
|
||||||
|
|
||||||
|
#: rc.cpp:151
|
||||||
msgid "Custom"
|
msgid "Custom"
|
||||||
msgstr "Своя команда"
|
msgstr "Своя команда"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:923
|
#: rc.cpp:154
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_custom)
|
msgid ""
|
||||||
#: rc.cpp:125
|
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||||
msgid "$custom - get output from custom command"
|
msgstr "$customN - получить информацию из своей команды N. Например $custom0"
|
||||||
msgstr "$custom - получить информацию из своей команды"
|
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:977
|
#: rc.cpp:157
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, advanced)
|
|
||||||
#: rc.cpp:128
|
|
||||||
msgid "Advanced"
|
msgid "Advanced"
|
||||||
msgstr "Расширенные"
|
msgstr "Расширенные"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:991
|
#: rc.cpp:160
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_timeFormat)
|
|
||||||
#: rc.cpp:131
|
|
||||||
msgid "Custom time format"
|
msgid "Custom time format"
|
||||||
msgstr "Свой формат времени"
|
msgstr "Свой формат времени"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1013
|
#: rc.cpp:163
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_timeFormat)
|
|
||||||
#: rc.cpp:134
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$dddd - long weekday\n"
|
"$dddd - long weekday\n"
|
||||||
"$ddd - short weekday\n"
|
"$ddd - short weekday\n"
|
||||||
@ -341,47 +324,39 @@ msgstr ""
|
|||||||
"$ss - секунды\n"
|
"$ss - секунды\n"
|
||||||
"$s - секунды без 0"
|
"$s - секунды без 0"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1033
|
#: rc.cpp:181
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_uptimeFormat)
|
|
||||||
#: rc.cpp:152
|
|
||||||
msgid "Custom uptime format"
|
msgid "Custom uptime format"
|
||||||
msgstr "Свой формат аптайма"
|
msgstr "Свой формат аптайма"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1042
|
#: rc.cpp:184
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptimeFormat)
|
|
||||||
#: rc.cpp:155
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"$ds - uptime days\n"
|
"$dd - uptime days\n"
|
||||||
"$hs - uptime hours\n"
|
"$d - uptime days without zero\n"
|
||||||
"$ms - uptime minutes"
|
"$hh - uptime hours\n"
|
||||||
|
"$h - uptime hours without zero\n"
|
||||||
|
"$mm - uptime minutes\n"
|
||||||
|
"$m - uptime minutes without zero"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"$ds - дни работы\n"
|
"$dd - дни аптайма\n"
|
||||||
"$hs - часы\n"
|
"$d - дни аптайма без нулей\n"
|
||||||
"$ms - минуты"
|
"$hh - часы аптайма\n"
|
||||||
|
"$h - часы аптайма без нулей\n"
|
||||||
|
"$mm - минуты аптайма\n"
|
||||||
|
"$m - минуты аптайма без нулей"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1064
|
#: rc.cpp:192
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_tempDevice)
|
msgid "Temperature units"
|
||||||
#: rc.cpp:160
|
msgstr "Температурные единицы"
|
||||||
|
|
||||||
|
#: rc.cpp:195
|
||||||
msgid "Temperature devices"
|
msgid "Temperature devices"
|
||||||
msgstr "Температурные устройства"
|
msgstr "Температурные устройства"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1090
|
#: rc.cpp:198 rc.cpp:208 rc.cpp:218 rc.cpp:228 rc.cpp:331 rc.cpp:374
|
||||||
#. 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"
|
msgid "Add"
|
||||||
msgstr "Добавить"
|
msgstr "Добавить"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1100
|
#: rc.cpp:201 rc.cpp:211 rc.cpp:221 rc.cpp:231 rc.cpp:334 rc.cpp:377
|
||||||
#. 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 ""
|
msgid ""
|
||||||
"Editable\n"
|
"Editable\n"
|
||||||
"del - remove item"
|
"del - remove item"
|
||||||
@ -389,93 +364,71 @@ msgstr ""
|
|||||||
"Редактируемо\n"
|
"Редактируемо\n"
|
||||||
"del - удалить строку"
|
"del - удалить строку"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1119
|
#: rc.cpp:205
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_mount)
|
|
||||||
#: rc.cpp:170
|
|
||||||
msgid "Mount points"
|
msgid "Mount points"
|
||||||
msgstr "Точки монтирования"
|
msgstr "Точки монтирования"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1174
|
#: rc.cpp:215
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_hddDevice)
|
msgid "HDD devices (speed)"
|
||||||
#: rc.cpp:180
|
msgstr "HDD (скорость)"
|
||||||
msgid "HDD devices"
|
|
||||||
msgstr "HDD"
|
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1227
|
#: rc.cpp:225
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_netdir)
|
msgid "HDD devices (temp)"
|
||||||
#: rc.cpp:190
|
msgstr "HDD (температура)"
|
||||||
|
|
||||||
|
#: rc.cpp:235
|
||||||
msgid "Network directory"
|
msgid "Network directory"
|
||||||
msgstr "Путь к интерфейсам"
|
msgstr "Путь к интерфейсам"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1234
|
#: rc.cpp:238
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_netdir)
|
|
||||||
#: rc.cpp:193
|
|
||||||
msgid "\"/sys/class/net\" by default"
|
msgid "\"/sys/class/net\" by default"
|
||||||
msgstr "\"/sys/class/net\" по умолчанию"
|
msgstr "\"/sys/class/net\" по умолчанию"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1254
|
#: rc.cpp:241
|
||||||
#. i18n: ectx: property (toolTip), widget (QCheckBox, checkBox_netdev)
|
|
||||||
#: rc.cpp:196
|
|
||||||
msgid "Disable auto select device and set specified device"
|
msgid "Disable auto select device and set specified device"
|
||||||
msgstr "Отключить авто выбор устройства и использовать указанное"
|
msgstr "Отключить авто выбор устройства и использовать указанное"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1257
|
#: rc.cpp:244
|
||||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_netdev)
|
|
||||||
#: rc.cpp:199
|
|
||||||
msgid "Set network device"
|
msgid "Set network device"
|
||||||
msgstr "Выберете сетевое устройство"
|
msgstr "Выберете сетевое устройство"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1290
|
#: rc.cpp:247
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
|
|
||||||
#: rc.cpp:202
|
|
||||||
msgid "Battery device"
|
msgid "Battery device"
|
||||||
msgstr "Устройство батареи"
|
msgstr "Устройство батареи"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1297
|
#: rc.cpp:250
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
|
|
||||||
#: rc.cpp:205
|
|
||||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" по умолчанию"
|
msgstr "\"/sys/class/power_supply/BAT0/capacity\" по умолчанию"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1314
|
#: rc.cpp:253
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
|
msgid "AC online tag"
|
||||||
#: rc.cpp:208
|
msgstr "AC подключен"
|
||||||
|
|
||||||
|
#: rc.cpp:256
|
||||||
|
msgid "Line, which returns when AC is online"
|
||||||
|
msgstr "Строка, возвращаемая при подключенном адапторе питания"
|
||||||
|
|
||||||
|
#: rc.cpp:259
|
||||||
|
msgid "AC offline tag"
|
||||||
|
msgstr "AC отключен"
|
||||||
|
|
||||||
|
#: rc.cpp:262
|
||||||
|
msgid "Line, which returns when AC is offline"
|
||||||
|
msgstr "Строка, возвращаемая при отключенном адапторе питания"
|
||||||
|
|
||||||
|
#: rc.cpp:265
|
||||||
msgid "AC device"
|
msgid "AC device"
|
||||||
msgstr "Устройство AC"
|
msgstr "Устройство AC"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1321
|
#: rc.cpp:268
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
|
|
||||||
#: rc.cpp:211
|
|
||||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||||
msgstr "\"/sys/class/power_supply/AC/online\" по умолчанию"
|
msgstr "\"/sys/class/power_supply/AC/online\" по умолчанию"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1358
|
#: rc.cpp:274
|
||||||
#. 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"
|
msgid "Tooltip"
|
||||||
msgstr "Тултип"
|
msgstr "Тултип"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1398
|
#: rc.cpp:277
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltip)
|
|
||||||
#: rc.cpp:229
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||||
"To enable them just make needed checkbox fully checked."
|
"To enable them just make needed checkbox fully checked."
|
||||||
@ -483,154 +436,154 @@ msgstr ""
|
|||||||
"Поля CPU, частота CPU, память, swap, сеть поддерживают графический тултип. "
|
"Поля CPU, частота CPU, память, swap, сеть поддерживают графический тултип. "
|
||||||
"Чтобы включить его, просто сделайте требуемые чекбоксы полностью чекнутыми."
|
"Чтобы включить его, просто сделайте требуемые чекбоксы полностью чекнутыми."
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1419
|
#: rc.cpp:280
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltipNum)
|
|
||||||
#: rc.cpp:232
|
|
||||||
msgid "Number of values for tooltips"
|
msgid "Number of values for tooltips"
|
||||||
msgstr "Число хранящихся значений"
|
msgstr "Число хранящихся значений"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1474
|
#: rc.cpp:283
|
||||||
#. 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"
|
msgid "CPU clock color"
|
||||||
msgstr "Цвет частоты CPU"
|
msgstr "Цвет частоты CPU"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1554
|
#: rc.cpp:286
|
||||||
#. 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"
|
msgid "Swap color"
|
||||||
msgstr "Цвет swap"
|
msgstr "Цвет swap"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1634
|
#: rc.cpp:289
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_downColor)
|
msgid "CPU color"
|
||||||
#: rc.cpp:247
|
msgstr "Цвет CPU"
|
||||||
|
|
||||||
|
#: rc.cpp:292
|
||||||
msgid "Download speed color"
|
msgid "Download speed color"
|
||||||
msgstr "Цвет скорости загрузки"
|
msgstr "Цвет скорости загрузки"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1674
|
#: rc.cpp:295
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_upColor)
|
msgid "Memory color"
|
||||||
#: rc.cpp:250
|
msgstr "Цвет памяти"
|
||||||
|
|
||||||
|
#: rc.cpp:298
|
||||||
msgid "Upload speed color"
|
msgid "Upload speed color"
|
||||||
msgstr "Цвет скорости отдачи"
|
msgstr "Цвет скорости отдачи"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1720
|
#: rc.cpp:301
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, appearance)
|
|
||||||
#: rc.cpp:253
|
|
||||||
msgid "Appearance"
|
msgid "Appearance"
|
||||||
msgstr "Внешний вид"
|
msgstr "Внешний вид"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1734
|
#: rc.cpp:304
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
|
||||||
#: rc.cpp:256
|
|
||||||
msgid "Time interval"
|
msgid "Time interval"
|
||||||
msgstr "Интервал обновления"
|
msgstr "Интервал обновления"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1789
|
#: rc.cpp:307
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
|
||||||
#: rc.cpp:259
|
|
||||||
msgid "Font"
|
msgid "Font"
|
||||||
msgstr "Шрифт"
|
msgstr "Шрифт"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1829
|
#: rc.cpp:310
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
|
||||||
#: rc.cpp:262
|
|
||||||
msgid "Font size"
|
msgid "Font size"
|
||||||
msgstr "Размер шрифта"
|
msgstr "Размер шрифта"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1884
|
#: rc.cpp:313
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_color)
|
|
||||||
#: rc.cpp:265
|
|
||||||
msgid "Font color"
|
msgid "Font color"
|
||||||
msgstr "Цвет шрифта"
|
msgstr "Цвет шрифта"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1924
|
#: rc.cpp:316
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_style)
|
|
||||||
#: rc.cpp:268
|
|
||||||
msgid "Font style"
|
msgid "Font style"
|
||||||
msgstr "Стиль шрифта"
|
msgstr "Стиль шрифта"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:1974
|
#: rc.cpp:319
|
||||||
#. i18n: ectx: property (text), widget (QLabel, label_weight)
|
|
||||||
#: rc.cpp:271
|
|
||||||
msgid "Font weight"
|
msgid "Font weight"
|
||||||
msgstr "Ширина шрифта"
|
msgstr "Ширина шрифта"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:2035
|
#: rc.cpp:322
|
||||||
#. i18n: ectx: attribute (title), widget (QWidget, dataengine)
|
|
||||||
#: rc.cpp:274
|
|
||||||
msgid "DataEngine"
|
msgid "DataEngine"
|
||||||
msgstr "DataEngine"
|
msgstr "DataEngine"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:2049
|
#: rc.cpp:325
|
||||||
#. 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"
|
msgid "Custom command"
|
||||||
msgstr "Своя команда"
|
msgstr "Своя команда"
|
||||||
|
|
||||||
#. i18n: file: ui/configwindow.ui:2216
|
#: rc.cpp:328
|
||||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_customCommand)
|
|
||||||
#: rc.cpp:301
|
|
||||||
msgid "Custom command to run"
|
msgid "Custom command to run"
|
||||||
msgstr "Своя команда для запуска"
|
msgstr "Своя команда для запуска"
|
||||||
|
|
||||||
#: rc.cpp:302
|
#: rc.cpp:338
|
||||||
|
msgid "GPU device"
|
||||||
|
msgstr "Устройство GPU"
|
||||||
|
|
||||||
|
#: rc.cpp:344
|
||||||
|
msgid "MPD address"
|
||||||
|
msgstr "Адрес сервера MPD"
|
||||||
|
|
||||||
|
#: rc.cpp:347
|
||||||
|
msgid "MPD port"
|
||||||
|
msgstr "Порт сервера MPD"
|
||||||
|
|
||||||
|
#: rc.cpp:353
|
||||||
|
msgid "pacman -Qu"
|
||||||
|
msgstr "pacman -Qu"
|
||||||
|
|
||||||
|
#: rc.cpp:356
|
||||||
|
msgid "apt-show-versions -u -b"
|
||||||
|
msgstr "apt-show-versions -u -b"
|
||||||
|
|
||||||
|
#: rc.cpp:359
|
||||||
|
msgid "aptitude search '~U'"
|
||||||
|
msgstr "aptitude search '~U'"
|
||||||
|
|
||||||
|
#: rc.cpp:362
|
||||||
|
msgid "yum list updates"
|
||||||
|
msgstr "yum list updates"
|
||||||
|
|
||||||
|
#: rc.cpp:365
|
||||||
|
msgid "pkg_version -I -l '<'"
|
||||||
|
msgstr "pkg_version -I -l '<'"
|
||||||
|
|
||||||
|
#: rc.cpp:368
|
||||||
|
msgid "urpmq --auto-select"
|
||||||
|
msgstr "urpmq --auto-select"
|
||||||
|
|
||||||
|
#: rc.cpp:371
|
||||||
|
msgid "Number of null lines"
|
||||||
|
msgstr "Число пустых линий"
|
||||||
|
|
||||||
|
#: rc.cpp:379
|
||||||
msgctxt "NAME OF TRANSLATORS"
|
msgctxt "NAME OF TRANSLATORS"
|
||||||
msgid "Your names"
|
msgid "Your names"
|
||||||
msgstr "Evgeniy Alekseev"
|
msgstr "Evgeniy Alekseev"
|
||||||
|
|
||||||
#: rc.cpp:303
|
#: rc.cpp:380
|
||||||
msgctxt "EMAIL OF TRANSLATORS"
|
msgctxt "EMAIL OF TRANSLATORS"
|
||||||
msgid "Your emails"
|
msgid "Your emails"
|
||||||
msgstr "esalexeev@gmail.com"
|
msgstr "esalexeev@gmail.com"
|
||||||
|
|
||||||
|
#~ msgid "amarok"
|
||||||
|
#~ msgstr "amarok"
|
||||||
|
|
||||||
|
#~ msgid "mpd"
|
||||||
|
#~ msgstr "mpd"
|
||||||
|
|
||||||
|
#~ msgid "qmmp"
|
||||||
|
#~ msgstr "qmmp"
|
||||||
|
|
||||||
|
#~ msgid "auto"
|
||||||
|
#~ msgstr "auto"
|
||||||
|
|
||||||
|
#~ msgid "nvidia"
|
||||||
|
#~ msgstr "nvidia"
|
||||||
|
|
||||||
|
#~ msgid "ati"
|
||||||
|
#~ msgstr "ati"
|
||||||
|
|
||||||
|
#~ msgid "$hddN - usage for mount point N (from 0), %. Example: $hdd0"
|
||||||
|
#~ msgstr "$hddN - использование точки монтирования N (от 0), %. Пример: $hdd0"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "$ds - uptime days\n"
|
||||||
|
#~ "$hs - uptime hours\n"
|
||||||
|
#~ "$ms - uptime minutes"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "$ds - дни работы\n"
|
||||||
|
#~ "$hs - часы\n"
|
||||||
|
#~ "$ms - минуты"
|
||||||
|
|
||||||
#~ msgid ""
|
#~ msgid ""
|
||||||
#~ "Command to run, example:\n"
|
#~ "Command to run, example:\n"
|
||||||
#~ "wget -qO- http://ifconfig.me/ip - get external IP"
|
#~ "wget -qO- http://ifconfig.me/ip - get external IP"
|
||||||
|
5
sources/readme/CMakeLists.txt
Normal file
5
sources/readme/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# set project name
|
||||||
|
set (SUBPROJECT pytextmonitor)
|
||||||
|
|
||||||
|
file (GLOB SUBPROJECT_MD *.md)
|
||||||
|
install (FILES ${SUBPROJECT_MD} DESTINATION share/${SUBPROJECT}/)
|
228
sources/readme/en.md
Normal file
228
sources/readme/en.md
Normal file
@ -0,0 +1,228 @@
|
|||||||
|
pytextmonitor
|
||||||
|
=============
|
||||||
|
|
||||||
|
Information
|
||||||
|
-----------
|
||||||
|
PyTextMonitor is a minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm.
|
||||||
|
|
||||||
|
**NOTE** [LOOKING FOR TRANSLATORS!](https://github.com/arcan1s/pytextmonitor/issues/14)
|
||||||
|
|
||||||
|
Configuration
|
||||||
|
-------------
|
||||||
|
For edited output you must open Settings window and setup output format in lines:
|
||||||
|
* 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, *---d--h--m*
|
||||||
|
* tag `$custom` - custom uptime format
|
||||||
|
* tag `$cpu` - total load cpu, *%*
|
||||||
|
* tag `$cpuN` - load CPU for core N, *%*
|
||||||
|
* tag `$cpucl` - average cpu clock, *MHz*
|
||||||
|
* tag `$cpuclN` - cpu clock for core N, *MHz*
|
||||||
|
* tag `$tempN` - temperature for device N. For example, `$temp0`
|
||||||
|
* tag `$gpu` - GPU usage, *%*. `aticonfig` or `nvidia-smi` must be installed
|
||||||
|
* tag `$gputemp` - GPU temperature. `aticonfig` or `nvidia-smi` must be installed
|
||||||
|
* tag `$mem` - usage memory, *%*
|
||||||
|
* tag `$memmb` - usage memory, *MB*
|
||||||
|
* tag `$memgb` - usage memory, *GB*
|
||||||
|
* tag `$swap` - swap, *%*
|
||||||
|
* tag `$swapmb` - swap, *MB*
|
||||||
|
* tag `$swapgb` - swap, *GB*
|
||||||
|
* tag `$hddN` - usage for mount point N, *%*. For example, `$hdd0`
|
||||||
|
* tag `$hddmbN` - usage for mount point N, *MB*. For example, `$hddmb0`
|
||||||
|
* tag `$hddgbN` - usage for mount point N, *GB*. For example, `$hddgb0`
|
||||||
|
* tag `$hddrN` - read speed of disk N, *KB/s*. For example, `$hddr0`
|
||||||
|
* tag `$hddwN` - write speed of disk N, *KB/s*. For example, `$hddw0`
|
||||||
|
* tag `$hddtempN` - temperature for HDD N. For example, `$hddtemp0`
|
||||||
|
* tag `$down` - download speed, *KB/s*
|
||||||
|
* tag `$up` - upload speed, *KB/s*
|
||||||
|
* tag `$netdev` - current network device
|
||||||
|
* tag `$bat` - battery charge, *%*
|
||||||
|
* tag `$ac` - status AC device. Return (\*) if AC device is online or *( )* 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
|
||||||
|
* 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 `$pscount` - number of running processes
|
||||||
|
* tag `$pstotal` - total number of processes
|
||||||
|
* tag `$ps` - list of running processes
|
||||||
|
* tag `$pkgcountN` - number of packages, which available to upgrade for command N. For example, `$pkgcount0`
|
||||||
|
* tag `$customN` - returns output for custom command N. For example, `$custom0`
|
||||||
|
|
||||||
|
Label order will changed if you change slider position. HTML tags in label work normally.
|
||||||
|
|
||||||
|
**NOTE** you don't may set to show `$cpu` tag 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 `$d` - 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 units**
|
||||||
|
|
||||||
|
Select units for temperature. Available units are Celsius, Farenheit and Kelvin.
|
||||||
|
|
||||||
|
**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 (speed)**
|
||||||
|
|
||||||
|
List of hard disk devices, which will be observed in hddspeed label (combo box items come from DataEngine). List widget is editable, delete key will remove current item.
|
||||||
|
|
||||||
|
**HDD (temperature)**
|
||||||
|
|
||||||
|
List of hard disk devices, which will be observed in hddtemp 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 online tag**
|
||||||
|
|
||||||
|
Line which will be shown when AC is online.
|
||||||
|
|
||||||
|
**AC offline tag**
|
||||||
|
|
||||||
|
Line which will be shown when AC is offline.
|
||||||
|
|
||||||
|
**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
|
||||||
|
-------------------
|
||||||
|
**Custom command**
|
||||||
|
|
||||||
|
*NOTE* This can cause the computer freeze.
|
||||||
|
|
||||||
|
Commands, which will be run for custom label.
|
||||||
|
|
||||||
|
**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`.
|
||||||
|
|
||||||
|
**Package manager**
|
||||||
|
|
||||||
|
List of commands, which will be run. Number of null lines is a number of unneeded lines. Defaults:
|
||||||
|
* *Arch*: `PKGCMD=pacman -Qu`, `PKGNULL=0`
|
||||||
|
* *Debian*: `PKGCMD=apt-show-versions -u -b`, `PKGNULL=0`
|
||||||
|
* *Ubuntu*: `PKGCMD=aptitude search '~U'`, `PKGNULL=0`
|
||||||
|
* *Fedora*: `PKGCMD=yum list updates`, `PKGNULL=3`
|
||||||
|
* *FreeBSD*: `PKGCMD=pkg_version -I -l '<'`, `PKGNULL=0`
|
||||||
|
* *Mandriva*: `PKGCMD=urpmq --auto-select`, `PKGNULL=0`
|
||||||
|
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
Instruction
|
||||||
|
===========
|
||||||
|
|
||||||
|
Dependencies
|
||||||
|
------------
|
||||||
|
* kdebase-workspace
|
||||||
|
* kdebindings-python2
|
||||||
|
* lm_sensors (*for definition temperature device*)
|
||||||
|
* sysstat (*for notification*)
|
||||||
|
|
||||||
|
Optional dependencies
|
||||||
|
---------------------
|
||||||
|
* proprietary video driver
|
||||||
|
* hddtemp (make sure that it may be run with `sudo` without password. Just add following line to `/etc/sudoers`: `$USERNAME ALL=NOPASSWD: /usr/bin/hddtemp`)
|
||||||
|
* music player (amarok, mpd or qmmp)
|
||||||
|
|
||||||
|
Make dependencies
|
||||||
|
-----------------
|
||||||
|
* automoc4
|
||||||
|
* cmake
|
||||||
|
* kdebase-runtime
|
||||||
|
|
||||||
|
Installation
|
||||||
|
------------
|
||||||
|
* download sources
|
||||||
|
* install
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --localprefix` ../
|
||||||
|
make && make install
|
||||||
|
|
||||||
|
Also you may install it to `/`:
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
||||||
|
make && sudo make install
|
||||||
|
|
||||||
|
Additional information
|
||||||
|
======================
|
||||||
|
|
||||||
|
TODO (wish list)
|
||||||
|
----------------
|
||||||
|
|
||||||
|
Links
|
||||||
|
-----
|
||||||
|
* [Homepage](http://arcanis.name/projects/pytextmonitor/)
|
||||||
|
* Plasmoid on [kde-look](http://kde-look.org/content/show.php/Py+Text+Monitor?content=157124)
|
||||||
|
* DataEngine on [kde-look](http://kde-look.org/content/show.php/Extended+Systemmonitor+DataEngine?content=158773)
|
||||||
|
* Archlinux [AUR](https://aur.archlinux.org/packages/kdeplasma-applets-pytextmonitor/) package
|
228
sources/readme/es.md
Normal file
228
sources/readme/es.md
Normal file
@ -0,0 +1,228 @@
|
|||||||
|
pytextmonitor
|
||||||
|
=============
|
||||||
|
|
||||||
|
Información
|
||||||
|
-----------
|
||||||
|
PyTextMonitor es un plasmoide minimalista escrito en Python2. Luce como los componentes visuales de awesome-wm.
|
||||||
|
|
||||||
|
**NOTA** [¡Se buscan traductores!](https://github.com/arcan1s/pytextmonitor/issues/14)
|
||||||
|
|
||||||
|
Configuración
|
||||||
|
-------------
|
||||||
|
Para editar la visualización debes abrir la ventana de Ajustes y establecer el formato de visualización en líneas:
|
||||||
|
* etiqueta `$time` - hora en formato por defecto. Por ejemplo, *vie 06 Nov 04:48:01 2013*
|
||||||
|
* etiqueta `$isotime` - hora en formato ISO
|
||||||
|
* etiqueta `$shorttime` - hora en formato local corto
|
||||||
|
* etiqueta `$longtime` - hora en formato local largo
|
||||||
|
* etiqueta `$custom` - formato de hora personalizado
|
||||||
|
* etiqueta `$uptime` - tiempo de actividad del sistema, *---d--h--m*
|
||||||
|
* etiqueta `$custom` - formato personalizado del tiempo de actividad del sistema
|
||||||
|
* etiqueta `$cpu` - carga total de la CPU, *%*
|
||||||
|
* etiqueta `$cpuN` - carga de la CPU para el núcleo N, *%*
|
||||||
|
* etiqueta `$cpucl` - frecuencia promedio de la CPU, *MHz*
|
||||||
|
* etiqueta `$cpuclN` - frecuencia de la CPU para el núcleo N, *MHz*
|
||||||
|
* etiqueta `$tempN` - temperatura para el dispositivo N. Por ejemplo, `$temp0`
|
||||||
|
* etiqueta `$gpu` - uso de la GPU, *%*. Debe estar instalado `aticonfig` o `nvidia-smi`
|
||||||
|
* etiqueta `$gputemp` - temperatura de la GPU. Debe estar instalado `aticonfig` o `nvidia-smi`
|
||||||
|
* etiqueta `$mem` - uso de la memori, *%*
|
||||||
|
* etiqueta `$memmb` - uso de la memoria, *MB*
|
||||||
|
* etiqueta `$memgb` - uso de la memoria, *GB*
|
||||||
|
* etiqueta `$swap` - swap, *%*
|
||||||
|
* etiqueta `$swapmb` - swap, *MB*
|
||||||
|
* etiqueta `$swapgb` - swap, *GB*
|
||||||
|
* etiqueta `$hddN` - uso para el punto de montaje N, *%*. Por ejemplo, `$hdd0`
|
||||||
|
* etiqueta `$hddmbN` - uso para el punto de montaje N, *MB*. Por ejemplo, `$hddmb0`
|
||||||
|
* etiqueta `$hddgbN` - uso para el punto de montaje N, *GB*. Por ejemplo, `$hddgb0`
|
||||||
|
* etiqueta `$hddrN` - leer la velocidad del disco N, *KB/s*. Por ejemplo, `$hddr0`
|
||||||
|
* etiqueta `$hddwN` - velocidad de escritura del disco N, *KB/s*. Por ejemplo: `$hddw0`
|
||||||
|
* etiqueta `$hddtempN` - temperatura para el disco duro N. Por ejemplo, `$hddtemp0`
|
||||||
|
* etiqueta `$down` - velocidad de recepción, *KB/s*
|
||||||
|
* etiqueta `$up` - velocidad de envío, *KB/s*
|
||||||
|
* etiqueta `$netdev` - dispositivo de red actual
|
||||||
|
* etiqueta `$bat` - carga de la batería, *%*
|
||||||
|
* etiqueta `$ac` - estado del dispositivo de alimentación. Devuelve (\*) si la alimentación está conectada o *( )* si no lo está
|
||||||
|
* etiqueta `$album` - álbum de la canción actual. Debe estar instalado uno de los reproductores soportados
|
||||||
|
* etiqueta `$artist` - artista de la canción actual. Debe estar instalado uno de los reproductores soportados
|
||||||
|
* etiqueta `$progress` - progreso de la canción actual. Debe estar instalado uno de los reproductores soportados
|
||||||
|
* etiqueta `$time` - duración de la canción actual. Debe estar instalado uno de los reproductores soportados
|
||||||
|
* etiqueta `$title` - título de la canción actual. Debe estar instalado uno de los reproductores soportados
|
||||||
|
* etiqueta `$pscount` - cantidad de procesos en ejecución
|
||||||
|
* etiqueta `$pstotal` - total de procesos en ejecución
|
||||||
|
* etiqueta `$ps` - listado de procesos en ejecución
|
||||||
|
* etiqueta `$pkgcountN` - cantidad de paquetes con actualizaciones disponibles para el comando N. Por ejemplo, `$pkgcount0`
|
||||||
|
* etiqueta `$customN` - obtener la salida de ejecución del comando personalizado N (a partir de 0). Por ejemplo, `$custom0`
|
||||||
|
|
||||||
|
El orden de las etiquetas será cambiado si cambias la posición del deslizador. Es posible usar código HTML para las etiquetas.
|
||||||
|
|
||||||
|
**NOTA** no puedes establecer la etiqueta `$cpu` para que se muestre en la información de la swap, por citar un ejemplo. **`$cpu` solo funcionará en la etiqueta de la CPU**.
|
||||||
|
|
||||||
|
Ajustes avanzados
|
||||||
|
-----------------
|
||||||
|
**Hora personalizada**
|
||||||
|
|
||||||
|
* etiqueta `$dddd` - día de la semana en foramto largo
|
||||||
|
* etiqueta `$ddd` - día de la semana en formato corto
|
||||||
|
* etiqueta `$dd` - día
|
||||||
|
* etiqueta `$d` - día sin ceros
|
||||||
|
* etiqueta `$MMMM` - mes en formato largo
|
||||||
|
* etiqueta `$MMM` - mes en formato corto
|
||||||
|
* etiqueta `$MM` - mes
|
||||||
|
* etiqueta `$M` - mes sin ceros
|
||||||
|
* etiqueta `$yyyy` - año
|
||||||
|
* etiqueta `$yy` - año en formato corto
|
||||||
|
* etiqueta `$hh` - horas
|
||||||
|
* etiqueta `$h` - horas sin ceros
|
||||||
|
* etiqueta `$mm` - minutos
|
||||||
|
* etiqueta `$m` - minutos sin ceros
|
||||||
|
* etiqueta `$ss` - segundos
|
||||||
|
* etiqueta `$s` - segundos sin ceros
|
||||||
|
|
||||||
|
**Tiempo de ejecución del sistema personalizado**
|
||||||
|
|
||||||
|
* etiqueta `$dd` - días
|
||||||
|
* etiqueta `$d` - días sin ceros
|
||||||
|
* etiqueta `$hh` - horas
|
||||||
|
* etiqueta `$h` - horas sin ceros
|
||||||
|
* etiqueta `$mm` - minutos
|
||||||
|
* etiqueta `$m` - minutos sin ceros
|
||||||
|
|
||||||
|
**Unidades de temperatura**
|
||||||
|
|
||||||
|
Elija las unidades de temperatura. Las unidades disponibles son: Celsius, Farenheit y Kelvin.
|
||||||
|
|
||||||
|
**Dispositivos de temperatura**
|
||||||
|
|
||||||
|
El listado de dispositivos, será observado en la etiqueta de temperatura (los elementos de la lista desplegable provienen de `sensors`). El listado es editable, la tecla Suprimir borrará el elemento activo.
|
||||||
|
|
||||||
|
**Puntos de montaje**
|
||||||
|
|
||||||
|
El listado de puntos de montaje, será observado en la etiqueta de disco duro (los elementos de la lista desplegable provienen de `mount`). El listado es editable, la tecla Suprimir borrará el elemento activo.
|
||||||
|
|
||||||
|
**Disco duro (velocidad)**
|
||||||
|
|
||||||
|
Listado de dispositivos de disco duro, será observado en la etiqueta hddspeed (los elementos de la lista desplegable provienen de DataEngine).
|
||||||
|
|
||||||
|
**Disco duro (temperatura)**
|
||||||
|
|
||||||
|
El listado de dispositivos de disco duro, será observado desde la etiqueta disco duro (los elementos de la lista desplegable provienen de `find`). El listado es editable, la tecla Suprimir borrará el elemento activo.
|
||||||
|
|
||||||
|
**Directorio de red**
|
||||||
|
|
||||||
|
Ruta hacia el directorio que contiene información de los dispositivos de red. Por defecto es `/sys/class/net`. Se requiere para la selección automática del dispositivo de red.
|
||||||
|
|
||||||
|
**Dispositivo de red**
|
||||||
|
|
||||||
|
Usar el dispositivo especificado como activo. Los elementos de la lista desplegable provienen del **directorio de red**. Esto inhabilitará la selección automática del dispositivo de red.
|
||||||
|
|
||||||
|
**Dispositivo de batería**
|
||||||
|
|
||||||
|
El archivo que contiene información de la batería. El archivo (`/sys/class/power_supply/BAT0/capacity` por defecto) solo debería contener la carga de la batería en por ciento.
|
||||||
|
|
||||||
|
**Etiqueta alimentación conectada**
|
||||||
|
|
||||||
|
Línea que será mostrada cuando la alimentación esté conectada.
|
||||||
|
|
||||||
|
**Etiqueta alimentación conectada**
|
||||||
|
|
||||||
|
Línea que será mostrada cuando la alimentación esté desconectada.
|
||||||
|
|
||||||
|
**Dispositivo de alimentación**
|
||||||
|
|
||||||
|
El archivo con información de la alimentación. El archivo (`/sys/class/power_supply/AC/online` por defecto) debe contener `1` si la alimentación está conectada.
|
||||||
|
|
||||||
|
**Reproductor de música**
|
||||||
|
|
||||||
|
Seleccionar uno de los reproductores de música soportados para la etiqueta del reproductor.
|
||||||
|
|
||||||
|
Ajustes de las ventanas emergentes
|
||||||
|
----------------------------------
|
||||||
|
Desde la versión 1.7.0 las etiquetas CPU, frecuencia de la CPU, memoria, swap y red soportan ventanas emergentes. Para habilitarlas es necesario tener marcadas las casillas de verificación pertinentes. El número de valores almacenados puede ser establecido en la pestaña. También es posible configurar los colores de los gráficos.
|
||||||
|
|
||||||
|
Ajustes de DataEngine
|
||||||
|
---------------------
|
||||||
|
**Comando personalizado**
|
||||||
|
|
||||||
|
*NOTA* Esto puede causar congelamiento de la computadora.
|
||||||
|
|
||||||
|
Listado de los comandos que serán ejecutados para etiquetas personalizadas.
|
||||||
|
|
||||||
|
**Dispositivo GPU**
|
||||||
|
|
||||||
|
Elegir uno de los dispositivos GPU soportados. `auto` habilitará la selección automática. El valor por defecto es `auto`.
|
||||||
|
|
||||||
|
**Disco duro**
|
||||||
|
|
||||||
|
Elegir uno de los discos duros para el monitor de temperatura del disco. `all` habilitará el monitor para todos los dispositivos. El valor por defecto es `all`.
|
||||||
|
|
||||||
|
**Dirección MPD**
|
||||||
|
|
||||||
|
Dirección del servidor MPD. El valor por defecto es `localhost`.
|
||||||
|
|
||||||
|
**Puerto MPD**
|
||||||
|
|
||||||
|
Puerto del servidor MPD. El valor por defecto es `6600`.
|
||||||
|
|
||||||
|
**Gestor de paquetes**
|
||||||
|
|
||||||
|
Listado de comandos que serán ejecutados. La cantidad de líneas nulas es el número de líneas innecesarias. Predeterminados:
|
||||||
|
* *Arch*: `PKGCMD=pacman -Qu`, `PKGNULL=0`
|
||||||
|
* *Debian*: `PKGCMD=apt-show-versions -u -b`, `PKGNULL=0`
|
||||||
|
* *Ubuntu*: `PKGCMD=aptitude search '~U'`, `PKGNULL=0`
|
||||||
|
* *Fedora*: `PKGCMD=yum list updates`, `PKGNULL=3`
|
||||||
|
* *FreeBSD*: `PKGCMD=pkg_version -I -l '<'`, `PKGNULL=0`
|
||||||
|
* *Mandriva*: `PKGCMD=urpmq --auto-select`, `PKGNULL=0`
|
||||||
|
|
||||||
|
|
||||||
|
Configuración de DataEngine
|
||||||
|
---------------------------
|
||||||
|
Se puede editar la configuración de DataEngine. Se encuentra en `/usr/share/config/extsysmon.conf` o `$HOME/share/config/extsysmon.conf` en dependencia del tipo de instalación. Quitar el comentario de la línea requerida y editarlo.
|
||||||
|
|
||||||
|
Instrucción
|
||||||
|
===========
|
||||||
|
|
||||||
|
Dependencias
|
||||||
|
------------
|
||||||
|
* kdebase-workspace
|
||||||
|
* kdebindings-python2
|
||||||
|
* lm_sensors (*para definir el dispositivo de temperatura*)
|
||||||
|
* sysstat (*para las notificaciones*)
|
||||||
|
|
||||||
|
Dependencias opcionales
|
||||||
|
-----------------------
|
||||||
|
* controlador propietario de video
|
||||||
|
* hddtemp (asegúrate de que puede ser ejecutado con `sudo` y sin contraseña. Solo hay que agregar la siguiente línea al archivo `/etc/sudoers`: `$USERNAME ALL=NOPASSWD: /usr/bin/hddtemp`)
|
||||||
|
* reproductor de música (amarok, mpd or qmmp)
|
||||||
|
|
||||||
|
Dependencias de construcción
|
||||||
|
----------------------------
|
||||||
|
* automoc4
|
||||||
|
* cmake
|
||||||
|
* kdebase-runtime
|
||||||
|
|
||||||
|
Instalación
|
||||||
|
-----------
|
||||||
|
* descargar fuentes
|
||||||
|
* instalar
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --localprefix` ../
|
||||||
|
make && make install
|
||||||
|
|
||||||
|
También es posible instalarlo en `/`:
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
||||||
|
make && sudo make install
|
||||||
|
|
||||||
|
Información adicional
|
||||||
|
=====================
|
||||||
|
|
||||||
|
TODO (funcionalidades solicitadas)
|
||||||
|
----------------------------------
|
||||||
|
|
||||||
|
Enlaces
|
||||||
|
-----
|
||||||
|
* [Sitio oficial](http://arcanis.name/projects/pytextmonitor/)
|
||||||
|
* Plasmoide en [kde-look](http://kde-look.org/content/show.php/Py+Text+Monitor?content=157124)
|
||||||
|
* DataEngine en [kde-look](http://kde-look.org/content/show.php/Extended+Systemmonitor+DataEngine?content=158773)
|
||||||
|
* Archlinux [AUR](https://aur.archlinux.org/packages/kdeplasma-applets-pytextmonitor/) package
|
227
sources/readme/ru.md
Normal file
227
sources/readme/ru.md
Normal file
@ -0,0 +1,227 @@
|
|||||||
|
pytextmonitor
|
||||||
|
=============
|
||||||
|
|
||||||
|
Информация
|
||||||
|
----------
|
||||||
|
PyTextMonitor - минималистичный плазмоид, написанный на Python2. Он выглядит, как виджеты в Awesome WM.
|
||||||
|
|
||||||
|
**ВНИМАНИЕ** [НУЖНЫ ПЕРЕВОДЧИКИ!](https://github.com/arcan1s/pytextmonitor/issues/14)
|
||||||
|
|
||||||
|
Настройка
|
||||||
|
---------
|
||||||
|
Для редактирования внешнего виде, откройте окно настроек и установите требуемый формат в поля:
|
||||||
|
* тег `$time` - время в стандартном формате. Например, *fri Nov 6 04:48:01 2013*
|
||||||
|
* тег `$isotime` - время в ISO формате
|
||||||
|
* тег `$shorttime` - время в коротком формате
|
||||||
|
* тег `$longtime` - время в длинном формате
|
||||||
|
* тег `$custom` - свой формат времени
|
||||||
|
* тег `$uptime` - время работы, *---d--h--m*
|
||||||
|
* тег `$custom` - свой формат аптайма
|
||||||
|
* тег `$cpu` - общая загрузка CPU, *%*
|
||||||
|
* тег `$cpuN` - загрузка CPU для ядра N, *%*
|
||||||
|
* тег `$cpucl` - средняя частота CPU, *MHz*
|
||||||
|
* тег `$cpuclN` - частота CPU для ядра N, *MHz
|
||||||
|
* тег `$tempN` - температура для устройства N. Например, `$temp0`
|
||||||
|
* тег `$gpu` - использование GPU, *%*. `aticonfig` или `nvidia-smi` должны быть установлены
|
||||||
|
* тег `$gputemp` - температура GPU. `aticonfig` или `nvidia-smi` должны быть установлены
|
||||||
|
* тег `$mem` - использование RAM, *%*
|
||||||
|
* тег `$memmb` - использование RAM, *MB*
|
||||||
|
* тег `$memgb` - использование RAM, *GB*
|
||||||
|
* тег `$swap` - swap, *%*
|
||||||
|
* тег `$swapmb` - swap, *MB*
|
||||||
|
* тег `$swapgb` - swap, *GB*
|
||||||
|
* тег `$hddN` - использование точки монтирования N, *%*. Например, `$hdd0`
|
||||||
|
* тег `$hddmbN` - использование точки монтирования N, *KB/s*. Например, `$hddmb0`
|
||||||
|
* тег `$hddgbN` - использование точки монтирования N, *KB/s*. Например, `$hddgb0`
|
||||||
|
* тег `$hddrN` - скорость записи на диск N, *KB/s*. Например, `$hddr0`
|
||||||
|
* тег `$hddwN` - скорость чтения с диска N, *KB/s*. Например, `$hddw0`
|
||||||
|
* тег `$hddtempN` - температура HDD N. Например, `$hddtemp0`
|
||||||
|
* тег `$down` - скорость загрузки, *KB/s*
|
||||||
|
* тег `$up` - скорость отдачи, *KB/s*
|
||||||
|
* тег `$netdev` - текущий сетевой интерфейс
|
||||||
|
* тег `$bat` - заряд батареи, *%*
|
||||||
|
* тег `$ac` - статус адаптора питания. Возвращает (\*), если AC подключен или *( )*, если нет
|
||||||
|
* тег `$album` - альбом. Один из поддерживаемых плееров должен быть установлен
|
||||||
|
* тег `$artist` - исполнитель. Один из поддерживаемых плееров должен быть установлен
|
||||||
|
* тег `$progress` - прогресс. Один из поддерживаемых плееров должен быть установлен
|
||||||
|
* тег `$time` - длительность. Один из поддерживаемых плееров должен быть установлен
|
||||||
|
* тег `$title` - название. Один из поддерживаемых плееров должен быть установлен
|
||||||
|
* тег `$pscount` - число запущенных процессов
|
||||||
|
* тег `$pstotal` - общее число процессов
|
||||||
|
* тег `$ps` - список процессов
|
||||||
|
* тег `$pkgcountN` - число пакетов, которые могут быть обновлены, для команды N. Например, `$pkgcount0`
|
||||||
|
* тег `$customN` - возвращает результат своей команды N. Например, `$custom0`
|
||||||
|
|
||||||
|
Порядок полей изменится, если вы измените позицию слайдеров. HTML теги в полях работают корректно.
|
||||||
|
|
||||||
|
**ЗАМЕЧАНИЕ** вы не можете установить тег `$cpu`, например, в поле swap. **`$cpu` будет работать только в поле CPU**.
|
||||||
|
|
||||||
|
Расширенные настройки
|
||||||
|
---------------------
|
||||||
|
**Свой формат времени**
|
||||||
|
|
||||||
|
* тег `$dddd` - день недели в длинном формате
|
||||||
|
* тег `$ddd` - день недели в коротком формате
|
||||||
|
* тег `$dd` - день
|
||||||
|
* тег `$d` - день без нуля
|
||||||
|
* тег `$MMMM` - месяц в длинном формате
|
||||||
|
* тег `$MMM` - месяц в коротком формате
|
||||||
|
* тег `$MM` - месяц
|
||||||
|
* тег `$M` - месяц без нуля
|
||||||
|
* тег `$yyyy` - год
|
||||||
|
* тег `$yy` - год в коротком формате
|
||||||
|
* тег `$hh` - часы
|
||||||
|
* тег `$h` - часы без нуля
|
||||||
|
* тег `$mm` - минуты
|
||||||
|
* тег `$m` - минуты без нуля
|
||||||
|
* тег `$ss` - секунды
|
||||||
|
* тег `$s` - секунды без нуля
|
||||||
|
|
||||||
|
**Свой формат аптайма**
|
||||||
|
|
||||||
|
* тег `$dd` - дни аптайма
|
||||||
|
* тег `$d` - дни аптайма без нуля
|
||||||
|
* тег `$hh` - часы аптайма
|
||||||
|
* тег `$h` - часы аптайма без нуля
|
||||||
|
* тег `$mm` - минуты аптайма
|
||||||
|
* тег `$m` - минуты аптайма без нуля
|
||||||
|
|
||||||
|
**Температурные единицы**
|
||||||
|
|
||||||
|
Выберете единицы температуры. Доступные единицы следующие: Цельсий, Фаренгейт и Кельвин.
|
||||||
|
|
||||||
|
**Датчики температуры**
|
||||||
|
|
||||||
|
Список датчиков, которые будут наблюдаться в поле temo (содержимое комбо бокса берется из `sensors`). Виджет редактируем, клавиша delete удалит текущую строку.
|
||||||
|
|
||||||
|
**Точки монтирования**
|
||||||
|
|
||||||
|
Список точек монтирования, которые будут наблюдаться в поле hdd (содержимое комбо бокса берется из `mount`). Виджет редактируем, клавиша delete удалит текущую строку.
|
||||||
|
|
||||||
|
**HDD (скорость)**
|
||||||
|
|
||||||
|
Список HDD, которые будут наблюдаться в поле hddspeed (содержимое комбо бокса берется из DataEngine). Виджет редактируем, клавиша delete удалит текущую строку.
|
||||||
|
|
||||||
|
**HDD (температура)**
|
||||||
|
|
||||||
|
Список HDD, которые будут наблюдаться в поле hddtemp (содержимое комбо бокса берется из `find`). Виджет редактируем, клавиша delete удалит текущую строку.
|
||||||
|
|
||||||
|
**Директория с сетевыми интерфейсами**
|
||||||
|
|
||||||
|
Путь к директории, которая содержит информацию о сетевых интерфейсах. По умолчанию `/sys/class/net`. Требуется для определения сетевого устройства.
|
||||||
|
|
||||||
|
**Сетевое устройство**
|
||||||
|
|
||||||
|
Использовать указанный интерфейс, как активный. Содержимое комбо бокса берется из **директории с сетевыми интерфейсами**. Эта опция отключит авто определение интерфейса.
|
||||||
|
|
||||||
|
**Устройство батареи**
|
||||||
|
|
||||||
|
Файл с информацией о батарее. Данный файл (`/sys/class/power_supply/BAT0/capacity` по умолчанию) должен содержать только заряд батареи в процентах.
|
||||||
|
|
||||||
|
**AC online тег**
|
||||||
|
|
||||||
|
Строка, которая будет показана, когда AC онлайн.
|
||||||
|
|
||||||
|
**AC offline тег**
|
||||||
|
|
||||||
|
Строка, которая будет показана, когда AC оффлайн.
|
||||||
|
|
||||||
|
**Устройство AC**
|
||||||
|
|
||||||
|
Файл с информацией об адапторе питания. Данный файл (`/sys/class/power_supply/AC/online` по умолчанию) должен содержать `1`, если адаптор подключен.
|
||||||
|
|
||||||
|
**Музыкальные плеер**
|
||||||
|
|
||||||
|
Выберете один из поддерживаемых музыкальных плееров.
|
||||||
|
|
||||||
|
Настройки тултипа
|
||||||
|
-----------------
|
||||||
|
Начиная с версии 1.7.0 поля CPU, частота CPU, память, swap и сеть поддерживают графический тултип. Чтобы включить их, просто сделайте требуемые чекбоксы полностью чекнутыми. Число хранимых значений может быть выставленно в данной вкладке. Цвета графиков также настраиваются.
|
||||||
|
|
||||||
|
Настройки DataEngine
|
||||||
|
--------------------
|
||||||
|
**Своя команда**
|
||||||
|
|
||||||
|
*ЗАМЕЧАНИЕ* Может вызвать зависание компьютера.
|
||||||
|
|
||||||
|
Команды, которые будет запущена для соответствующего поля.
|
||||||
|
|
||||||
|
**Устройство GPU**
|
||||||
|
|
||||||
|
Выберете одно из поддерживаемых устройств GPU. `auto` включит автоматическое определение. По умолчанию `auto`.
|
||||||
|
|
||||||
|
**HDD**
|
||||||
|
|
||||||
|
Выберете один из HDD для монитора его температуры. `all` включит монитор для всех доступных устройств. По умолчанию `all`.
|
||||||
|
|
||||||
|
**Адрес MPD**
|
||||||
|
|
||||||
|
Адрес MPD сервера. По умолчанию `localhost`.
|
||||||
|
|
||||||
|
**Порт MPD**
|
||||||
|
|
||||||
|
Порт MPD сервера. По умолчанию `6600`.
|
||||||
|
|
||||||
|
**Package manager**
|
||||||
|
|
||||||
|
Список команд, которые будут запущены. Число пустых строк - число ненужных для подсчета строк. Стандартные настройки:
|
||||||
|
* *Arch*: `PKGCMD=pacman -Qu`, `PKGNULL=0`
|
||||||
|
* *Debian*: `PKGCMD=apt-show-versions -u -b`, `PKGNULL=0`
|
||||||
|
* *Ubuntu*: `PKGCMD=aptitude search '~U'`, `PKGNULL=0`
|
||||||
|
* *Fedora*: `PKGCMD=yum list updates`, `PKGNULL=3`
|
||||||
|
* *FreeBSD*: `PKGCMD=pkg_version -I -l '<'`, `PKGNULL=0`
|
||||||
|
* *Mandriva*: `PKGCMD=urpmq --auto-select`, `PKGNULL=0`
|
||||||
|
|
||||||
|
Настройка DataEngine
|
||||||
|
--------------------
|
||||||
|
Вы можете отредактировать настройки DataEngine вручную. Откройте файл `/usr/share/config/extsysmon.conf` или `$HOME/.kde4/share/config/extsysmon.conf`, в зависимости от типа установки. Раскомментируйте требуемые строки и отредактируйте их.
|
||||||
|
|
||||||
|
Инструкция
|
||||||
|
==========
|
||||||
|
|
||||||
|
Зависимости
|
||||||
|
-----------
|
||||||
|
* kdebase-workspace
|
||||||
|
* kdebindings-python2
|
||||||
|
* lm_sensors (*для определения датчиков температуры*)
|
||||||
|
* sysstat (*для уведомлений*)
|
||||||
|
|
||||||
|
Опциональные зависимости
|
||||||
|
------------------------
|
||||||
|
* проприетарный видеодрайвер
|
||||||
|
* hddtemp (убедитесь, что может быть запущен с `sudo` без пароля. Просто добавьте следующую строку в `/etc/sudoers`: `$USERNAME ALL=NOPASSWD: /usr/bin/hddtemp`)
|
||||||
|
* музыкальный плеер (amarok, mpd или qmmp)
|
||||||
|
|
||||||
|
Зависимости сборки
|
||||||
|
------------------
|
||||||
|
* automoc4
|
||||||
|
* cmake
|
||||||
|
* kdebase-runtime
|
||||||
|
|
||||||
|
Установка
|
||||||
|
---------
|
||||||
|
* скачать исходный архив
|
||||||
|
* установить
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --localprefix` ../
|
||||||
|
make && make install
|
||||||
|
|
||||||
|
Для установки в `/`:
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
||||||
|
make && sudo make install
|
||||||
|
|
||||||
|
Дополнительная информация
|
||||||
|
=========================
|
||||||
|
|
||||||
|
TODO (wish list)
|
||||||
|
----------------
|
||||||
|
|
||||||
|
Ссылки
|
||||||
|
------
|
||||||
|
* [Домашняя страница](http://arcanis.name/projects/pytextmonitor/)
|
||||||
|
* Виджет на [kde-look](http://kde-look.org/content/show.php/Py+Text+Monitor?content=157124)
|
||||||
|
* DataEngine на [kde-look](http://kde-look.org/content/show.php/Extended+Systemmonitor+DataEngine?content=158773)
|
||||||
|
* Пакет для Archlinux в [AUR](https://aur.archlinux.org/packages/kdeplasma-applets-pytextmonitor/)
|
Reference in New Issue
Block a user