Compare commits
180 Commits
Author | SHA1 | Date | |
---|---|---|---|
7145a1d33e | |||
a3c1f4ea66 | |||
a6ddd53308 | |||
744f3bc04b | |||
afdf86f03a | |||
8f2784d2a2 | |||
926da88c10 | |||
ea287c21b1 | |||
c0561a95e0 | |||
b7d1802ca8 | |||
c659f16d7e | |||
79cbfc4b32 | |||
61e2a380b9 | |||
64bc89ba75 | |||
926d112d22 | |||
e205664fec | |||
5d13c8289f | |||
7ac5d68b02 | |||
69b5bdec66 | |||
5ce7aac9dd | |||
80eb7983fc | |||
7e2b1384ae | |||
d573cc7491 | |||
b380000d2f | |||
50d96574f5 | |||
d6819e3771 | |||
a54b3064fe | |||
a0288bcf96 | |||
f1e22f122e | |||
52f85836a2 | |||
2ad638c158 | |||
cebf3b9aea | |||
e32a37043a | |||
246430dc28 | |||
dd4471a0d2 | |||
31c612cfd2 | |||
2201f4d4a2 | |||
886e24d4af | |||
fbf5f649ee | |||
7fc7b68358 | |||
9904e5d6c6 | |||
e10f3396b9 | |||
25ff5a9189 | |||
41b1282488 | |||
5d46988745 | |||
71823471cc | |||
fe580ef806 | |||
b1f8340774 | |||
e868b03454 | |||
632adfa54c | |||
4476ec8e45 | |||
b4f7b6e65a | |||
77349e797f | |||
e7b6e4a3bf | |||
3d8f88d935 | |||
1eed0f458c | |||
9b581a882f | |||
6ba1288c50 | |||
926c283338 | |||
8519eb51bd | |||
f05b256306 | |||
6fd7bad8f9 | |||
6f4ecbd107 | |||
9f392c3a19 | |||
e04430e36c | |||
68759513a9 | |||
62164f8229 | |||
7c5e02217b | |||
23cd74132a | |||
5dfb02bf9d | |||
2d0a92eec1 | |||
359e81ff93 | |||
1bd80ba786 | |||
2a04414600 | |||
fe51e67ba4 | |||
e208be7894 | |||
26bf118d50 | |||
86da48bbca | |||
d081a64889 | |||
3d2c09647a | |||
c7a99a6d0d | |||
c0a273f9f7 | |||
5d724ac688 | |||
8e318a99d0 | |||
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 | |||
73e921a8f5 | |||
7ee4a5dc9d | |||
89efe6c846 | |||
4218a4da08 | |||
0db909d914 | |||
d7cc354432 | |||
aab456924f | |||
20c2a4eb6b | |||
d63b33903a | |||
fe77fcb2fd | |||
d226629b45 | |||
413dbb2134 | |||
b11b4d2462 | |||
62dd94a294 | |||
12d506a16d | |||
363c4327ee | |||
a716269e79 | |||
c66b255e8b | |||
decf714e74 | |||
405dda5144 | |||
0f8b9dc627 | |||
6cf7792f9a | |||
1df3cf0def | |||
59ffe456de | |||
9b981cb3f0 | |||
f640eb58d7 |
6
.gitignore
vendored
@ -1,3 +1,7 @@
|
||||
sources/build
|
||||
sources/usr
|
||||
*-src.tar.xz
|
||||
*src.tar.[gx]z
|
||||
*pkg.tar.[gx]z
|
||||
build
|
||||
src
|
||||
pkg
|
||||
|
7
AUTHORS
@ -1,3 +1,8 @@
|
||||
Current developers:
|
||||
|
||||
Evgeniy Alekseev aka arcanis <esalexeev (at) gmail (dot) com>
|
||||
|
||||
Translators:
|
||||
@Mermouy (French translation)
|
||||
Ernesto Avilés Vzqz (Spanish translation)
|
||||
@underr (Brazillian Portuguese translation)
|
||||
Виктор Слободян (Ukrainian translation)
|
||||
|
169
CHANGELOG
Normal file
@ -0,0 +1,169 @@
|
||||
Ver.1.10.0:
|
||||
+ added tags $hddtotmb, $hddtotgb
|
||||
+ added tags $memtotmb, $memtotgb, $swaptotmb, $swaptotgb
|
||||
+ added ability for force update text
|
||||
+ added support of clementine
|
||||
+ added support of hddtemp cmd
|
||||
+ added support of disable option for HDDDEV and GPUDEV
|
||||
+ added error checking of DataEngine variables
|
||||
+ added multithreading to DataEngine
|
||||
+ added ability to disable popup messages
|
||||
+ added ability to use vertical layout
|
||||
+ added ability to add stretch
|
||||
+ added ability to show debug information (set environment variable 'PTM_DEBUG' to 'yes')
|
||||
+ added Brazillian Portuguese translation (@underr)
|
||||
+ added Ukrainian translation (Виктор Слободян)
|
||||
- removed util.py
|
||||
- removed createNotifyrc since it isn't needed
|
||||
* refactoring of configuration interface
|
||||
* player settings was moved from plasmoid to dataengine
|
||||
* edited readme call
|
||||
* changed readme from md to html
|
||||
|
||||
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)
|
||||
- removed doubleclick event
|
||||
* fix parsing pkg label
|
||||
|
||||
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:
|
||||
+ added tags $dd, $d, $hh, $h, $mm, $m to custom uptime format
|
||||
+ added scalling to tooltips
|
||||
+ added dataengine configuration from ptm
|
||||
+ added custom command to dataengine
|
||||
- removed custom command from ptm
|
||||
- removed tags $ds, $hs, $ms
|
||||
|
||||
Ver.1.7.1:
|
||||
- removed error label
|
||||
* fix bug with zero values in tooltip
|
||||
|
||||
Ver.1.7.0:
|
||||
+ added support of several tags in temperature label
|
||||
+ added tags $cpuN, $cpuclN, $hddN, $tempN, $hddtempN, $up, $down
|
||||
+ added label with custom command
|
||||
+ added tooltips for CPU, CPU clock, memory, swap and network labels
|
||||
- removed tags @@...@@, $temp, $ccpu, $ccpucl, $net
|
||||
* changes in settings
|
||||
* ptm now does not require net-tools
|
||||
* refactoring
|
||||
|
||||
Ver.1.6.1:
|
||||
+ added support of several devices in hddtemp label
|
||||
- fixed #6
|
||||
|
||||
Ver.1.6.0:
|
||||
+ added $custom tag to time and uptime labels (#8)
|
||||
+ russian translation
|
||||
- fixed #6, #10
|
||||
* changed license to GPLv3
|
||||
* changed project build
|
||||
|
||||
Ver.1.5.3:
|
||||
+ added $album, $progress and $time tags to player label (#7)
|
||||
- fixed zero swap
|
||||
|
||||
Ver.1.5.2:
|
||||
+ added $isotime, $shorttime and $longtime tags to time label
|
||||
|
||||
Ver.1.5.1:
|
||||
+ added time label
|
||||
|
||||
Ver.1.5.0:
|
||||
+ added player label
|
||||
|
||||
Ver.1.4.0:
|
||||
+ added notifications
|
||||
|
||||
Ver.1.3.6:
|
||||
- fixed #1, #2
|
||||
|
||||
Ver.1.3.5:
|
||||
- fix bug with definition network device
|
||||
|
||||
Ver.1.3.4:
|
||||
+ added double click event
|
||||
+ added auto selection of network device
|
||||
- fixed yet another plasma crash
|
||||
|
||||
Ver.1.3.3:
|
||||
* edited reading temperature device
|
||||
|
||||
Ver.1.3.2b:
|
||||
- fixed plasma crash
|
||||
|
||||
Ver.1.3.2:
|
||||
+ added GPU, GPU temperature, HDD and HDD temperature labels
|
||||
+ added $ccpu and $ccpucl tags
|
||||
- bug fixes
|
||||
* optimization and refactoring
|
||||
|
||||
Ver.1.2.2:
|
||||
+ added tooltip to lineEdit
|
||||
|
||||
Ver.1.2.1:
|
||||
* if battery doesn't exist return 'off'
|
||||
* if AC doesn't exist return '(?)'
|
||||
|
||||
Ver.1.2.0:
|
||||
+ added $ac tag to battery label
|
||||
+ added battery and ac device configurations
|
||||
+ added error cheking
|
||||
* $bat tag now reading from /sys/*
|
||||
|
||||
Ver.1.1.4:
|
||||
* changed parsing acpi output (battery label)
|
||||
|
||||
Ver.1.1.3:
|
||||
+ added font weight
|
||||
* edited font setup line. Now setup for font family works normaly
|
||||
* small bug fix
|
||||
|
||||
Ver.1.1.2:
|
||||
+ added CPU clock lable
|
||||
+ added function to update network device (100*time_interval)
|
||||
+ changed update sliders
|
||||
|
||||
Ver.1.1.1:
|
||||
+ added $swapmb, $memmb, $netdev, @@netdev=...@@ tags
|
||||
- some bug fixes
|
||||
* widget consists of several labels
|
||||
* edited configuration interface
|
||||
|
||||
Ver.1.0:
|
||||
First release
|
169
CHANGELOG-RU
Normal file
@ -0,0 +1,169 @@
|
||||
Вер.1.10.0:
|
||||
+ добавлены теги $hddtotmb, $hddtotgb
|
||||
+ добавлены теги $memtotmb, $memtotgb, $swaptotmb, $swaptotgb
|
||||
+ добавлена возможность форсированного обновления
|
||||
+ добавлена поддержка clementine
|
||||
+ добавлена поддержка команды hddtemp
|
||||
+ добавлены поддержка disable для HDDDEV и GPUDEV
|
||||
+ добавлена многопоточность в DataEngine
|
||||
+ добавлена проверка ошибок для переменных DataEngine
|
||||
+ добавлена возможность отключения всплывающих сообщений
|
||||
+ добавлена возможность использовать вертикальную разметку
|
||||
+ добавлена возможность добавить пустое пространство
|
||||
+ добавлена возможность вывода отладочной информации (установите переменную окружения 'PTM_DEBUG' в 'yes')
|
||||
+ добавлен перевод Brazillian Portuguese (@underr)
|
||||
+ добавлена украинская локализация (Виктор Слободян)
|
||||
- удален util.py
|
||||
- удалены функции createNotifyrc, поскольку они больше не нужны
|
||||
* рефакторинг конфигурационного интерфейса
|
||||
* настройки плеера были перенесены из виджета в dataengine
|
||||
* исправлен вызов readme под четырехсимвольное обозначение
|
||||
* перенос readme с md на html
|
||||
|
||||
Вер.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:
|
||||
Первый релиз
|
35
PKGBUILD
@ -1,35 +1,38 @@
|
||||
# Author: Evgeniy "arcanis" Alexeev <esalexeev@gmail.com>
|
||||
# Maintainer: Evgeniy "arcanis" Alexeev <esalexeev@gmail.com>
|
||||
# Maintainer: Evgeniy "arcanis" Alexeev <arcanis.arch at gmail dot com>
|
||||
|
||||
pkgname=kdeplasma-applets-pytextmonitor
|
||||
_pkgname=pytextmonitor
|
||||
pkgver=1.6.0
|
||||
pkgver=1.10.0
|
||||
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')
|
||||
url="http://arcanis.name/projects/pytextmonitor"
|
||||
license=('GPLv3')
|
||||
depends=('kdebase-workspace' 'kdebindings-python2' 'lm_sensors' 'net-tools' 'sysstat')
|
||||
optdepends=("hddtemp: for HDD temperature monitor"
|
||||
license=('GPL3')
|
||||
depends=('kdebase-workspace' 'kdebindings-python2' 'lm_sensors')
|
||||
optdepends=("amarok: for music player monitor"
|
||||
"clementine: for music player monitor"
|
||||
"catalyst: for GPU monitor"
|
||||
"nvidia-utils: for GPU monitor"
|
||||
"amarok: for music player monitor"
|
||||
"hddtemp: for HDD temperature 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')
|
||||
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
|
||||
install=${pkgname}.install
|
||||
md5sums=('742fcc3c6910d3f80ac74bc0fb224b3d')
|
||||
md5sums=('68227097322e3949b61b7bd1c0963511')
|
||||
backup=('usr/share/config/extsysmon.conf')
|
||||
|
||||
build () {
|
||||
if [[ -d ${srcdir}/build ]]; then
|
||||
rm -rf "${srcdir}/build"
|
||||
fi
|
||||
prepare() {
|
||||
rm -rf "${srcdir}/build"
|
||||
mkdir "${srcdir}/build"
|
||||
}
|
||||
|
||||
build () {
|
||||
cd "${srcdir}/build"
|
||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
|
||||
-DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) \
|
||||
"../${_pkgname}"
|
||||
make
|
||||
}
|
||||
|
275
README.md
@ -3,102 +3,243 @@ 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:
|
||||
* label `$time` - time in default format. For example, `fri Nov 6 04:48:01 2013`
|
||||
* label `$isotime` - time in iso format
|
||||
* label `$shorttime` - time in short locale format
|
||||
* label `$longtime` - time in long locale format
|
||||
* label `$custom` - will enable custom time format
|
||||
* label `$dddd` - weekday in long format (required `$custom` flag)
|
||||
* label `$ddd` - weekday in short format (required `$custom` flag)
|
||||
* label `$dd` - day (required `$custom` flag)
|
||||
* label `$d` - day without zero (required `$custom` flag)
|
||||
* label `$MMMM` - month in long format (required `$custom` flag)
|
||||
* label `$MMM` - month in short format (required `$custom` flag)
|
||||
* label `$MM` - month (required `$custom` flag)
|
||||
* label `$M` - month without zero (required `$custom` flag)
|
||||
* label `$yyyy` - year (required `$custom` flag)
|
||||
* label `$yy` - year in short format (required `$custom` flag)
|
||||
* label `$hh` - hours (required `$custom` flag)
|
||||
* label `$h` - hours without zero (required `$custom` flag)
|
||||
* label `$mm` - minutes (required `$custom` flag)
|
||||
* label `$m` - minutes without zero (required `$custom` flag)
|
||||
* label `$ss` - seconds (required `$custom` flag)
|
||||
* label `$s` - seconds without zero (required `$custom` flag)
|
||||
* label `$uptime` - uptime, <i>---d--h--m</i>
|
||||
* label `$custom` - will enable custom uptime format
|
||||
* label `$ds` - uptime days (required `$custom` flag)
|
||||
* label `$hs` - uptime hours (required `$custom` flag)
|
||||
* label `$ms` - uptime minutes (required `$custom` flag)
|
||||
* label `$cpu` - total load cpu, <i>%</i>
|
||||
* label `$ccpu` - load CPU for each core, <i>%</i>
|
||||
* label `$cpucl` - average cpu clock, <i>MHz</i>
|
||||
* label `$ccpucl` - cpu clock for each core, <i>MHz</i>
|
||||
* label `$temp` - average temperature in system
|
||||
* label `$gpu` - GPU usage, <i>%</i>. `aticonfig` or `nvidia-smi` must be installed
|
||||
* label `$gputemp` - GPU temperature. `aticonfig` or `nvidia-smi` must be installed
|
||||
* label `$mem` - usage memory, <i>%</i>
|
||||
* label `$memmb` - usage memory, <i>MB</i>
|
||||
* label `$swap` - swap, <i>%</i>
|
||||
* label `$swapmb` - swap, <i>MB</i>
|
||||
* label `@@/@@` (in hdd label) - mount point (`/` in example) usage, <i>%</i>. Separator for mount points list is `;`, for example `@@/;/home;/mnt/global@@`
|
||||
* label `@@/dev/sda@@` (in hddtemp label) - HDD (`/dev/sda` in example) temperature. `hddtemp` must be installed
|
||||
* label `$net` - download and upload speed, <i>KB/s</i>. You may specify network device: something like `@@eth0@@`
|
||||
* label `$netdev` - current network device
|
||||
* label `$bat` - battery charge, <i>%</i>. Battery device may be set below. File (`/sys/class/power_supply/BAT0/capacity` by default) must contain only battery charge in percent
|
||||
* label `$ac` - status AC device. Return <i>(*)</i> if AC device is online or <i>( )</i> if offline. AC device may be set below. FIle (`/sys/class/power_supply/AC/online` by default) must contain `1` if AC is online
|
||||
* label `$artist` - current song artist. One of supported music players must be installed
|
||||
* label `$album` - current song album. One of supported music players must be installed
|
||||
* label `$progress` - current song progress. One of supported music players must be installed (mpd does not support yet)
|
||||
* label `$time` - current song duration. One of supported music players must be installed
|
||||
* label `$title` - current song title. One of supported music players must be installed
|
||||
|
||||
* tag `$time` - time in default format. For example, *fri Nov 6 04:48:01 2013*
|
||||
* tag `$isotime` - time in iso format
|
||||
* tag `$shorttime` - time in short locale format
|
||||
* tag `$longtime` - time in long locale format
|
||||
* tag `$custom` - custom time format
|
||||
* tag `$uptime` - uptime, *---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 `$memtotmb` - total RAM, *MB*
|
||||
* tag `$memtotgb` - total RAM, *GB*
|
||||
* tag `$swap` - swap, *%*
|
||||
* tag `$swapmb` - swap, *MB*
|
||||
* tag `$swapgb` - swap, *GB*
|
||||
* tag `$swaptotmb` - total swap, *MB*
|
||||
* tag `$swaptotgb` - total 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 `$hddtotmbN` - total size of mount point N, *MB*. For example, `$hddtotmb0`
|
||||
* tag `$hddtotgbN` - total size of mount point N, *GB*. For example, `$hddtotgb0`
|
||||
* 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 in swap label for example. <b>$cpu will work only in cpu label</b>.
|
||||
**NOTE** you don't may set to show `$cpu` tag in swap label for example. **`$cpu` will work only in cpu label**.
|
||||
|
||||
Tips & tricks
|
||||
-------------
|
||||
|
||||
You may use different colors for labels. Just put label text into html code. See [issue](https://github.com/arcan1s/pytextmonitor/issues/9) for more details.
|
||||
|
||||
Numbering of elements of temperature, HDD usage, HDD speed, HDD temperature refers to elements order from second tab (*Advanced settings*). You should add item to the required listWidget first. And the first element in the listWidget will be `$tag0`. See [issue](https://github.com/arcan1s/pytextmonitor/issues/17) for more details.
|
||||
|
||||
Advanced settings
|
||||
-----------------
|
||||
|
||||
**Vertical layout**
|
||||
|
||||
Use vertical layout instead of horizontal one.
|
||||
|
||||
**Enable popup**
|
||||
|
||||
Uncheck box if you do not use popup messages.
|
||||
|
||||
**Add stretch**
|
||||
|
||||
Add stretch (spacer) to the selected side of the widget.
|
||||
|
||||
**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.
|
||||
|
||||
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, `disable` will disable definition of GPU states. Default is `auto`.
|
||||
|
||||
**HDD**
|
||||
|
||||
Select one of HDDs for HDD temperature monitor. `all` will enable monitor for all devices, `disable` will disable definition of HDD temperature. Default is `all`.
|
||||
|
||||
**hddtemp cmd**
|
||||
|
||||
Type a command which will be run for hddtemp DataEngine. Default is `sudo hddtemp`.
|
||||
|
||||
**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`
|
||||
|
||||
**Music player**
|
||||
|
||||
Select one of supported music playes for player label.
|
||||
|
||||
DataEngine configuration
|
||||
------------------------
|
||||
You may edit DataEngine configuration. It is `/usr/share/config/extsysmon.conf` or `$HOME/share/config/extsysmon.conf` depending on the type of installation. Uncomment needed line and edit it.
|
||||
|
||||
TODO (wish) list
|
||||
----------------
|
||||
Tooltip (graphical information):
|
||||
* cpu, %
|
||||
* cpuclock, mhz
|
||||
* memory, %
|
||||
* swap, %
|
||||
* network, %
|
||||
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)
|
||||
* net-tools (for definition network device)
|
||||
* sysstat (for notification)
|
||||
* lm_sensors (*for definition temperature device*)
|
||||
|
||||
Optional dependencies
|
||||
---------------------
|
||||
ext-sysmon (for GPU, GPU temp, HDD temp and player labels):
|
||||
|
||||
* sysstat (*for notification*)
|
||||
* proprietary video driver
|
||||
* hddtemp
|
||||
* music player (amarok, mpd or qmmp)
|
||||
* 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, clementine, mpd or qmmp)
|
||||
|
||||
Make dependencies
|
||||
-----------------
|
||||
|
||||
* automoc4
|
||||
* cmake
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
* download sources
|
||||
* install
|
||||
|
||||
@ -106,7 +247,7 @@ Installation
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --localprefix` ../
|
||||
make && make install
|
||||
|
||||
Also you may install it to "/":
|
||||
Also you may install it to `/`:
|
||||
|
||||
mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
||||
@ -115,8 +256,12 @@ Installation
|
||||
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)
|
||||
|
268
README.md.orig
Normal file
@ -0,0 +1,268 @@
|
||||
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 `$memtotmb` - total RAM, *MB*
|
||||
* tag `$memtotgb` - total RAM, *GB*
|
||||
* tag `$swap` - swap, *%*
|
||||
* tag `$swapmb` - swap, *MB*
|
||||
* tag `$swapgb` - swap, *GB*
|
||||
* tag `$swaptotmb` - total swap, *MB*
|
||||
* tag `$swaptotgb` - total 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 `$hddtotmbN` - total size of mount point N, *MB*. For example, `$hddtotmb0`
|
||||
* tag `$hddtotgbN` - total size of mount point N, *GB*. For example, `$hddtotgb0`
|
||||
* 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**.
|
||||
|
||||
Tips & tricks
|
||||
-------------
|
||||
|
||||
You may use different colors for labels. Just put label text into html code. See [issue](https://github.com/arcan1s/pytextmonitor/issues/9) for more details.
|
||||
|
||||
Numbering of elements of temperature, HDD usage, HDD speed, HDD temperature refers to elements order from second tab (*Advanced settings*). You should add item to the required listWidget first. And the first element in the listWidget will be `$tag0`. See [issue](https://github.com/arcan1s/pytextmonitor/issues/17) for more details.
|
||||
|
||||
Advanced settings
|
||||
-----------------
|
||||
|
||||
**Vertical layout**
|
||||
|
||||
Use vertical layout instead of horizontal one.
|
||||
|
||||
**Enable popup**
|
||||
|
||||
Uncheck box if you do not use popup messages.
|
||||
|
||||
**Add stretch**
|
||||
|
||||
Add stretch (spacer) to the selected side of the widget.
|
||||
|
||||
**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.
|
||||
|
||||
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, `disable` will disable definition of GPU states. Default is `auto`.
|
||||
|
||||
**HDD**
|
||||
|
||||
Select one of HDDs for HDD temperature monitor. `all` will enable monitor for all devices, `disable` will disable definition of HDD temperature. Default is `all`.
|
||||
|
||||
**hddtemp cmd**
|
||||
|
||||
Type a command which will be run for hddtemp DataEngine. Default is `sudo hddtemp`.
|
||||
|
||||
**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`
|
||||
|
||||
**Music player**
|
||||
|
||||
Select one of supported music playes for player label.
|
||||
|
||||
DataEngine configuration
|
||||
------------------------
|
||||
|
||||
You may edit DataEngine configuration. It is `/usr/share/config/extsysmon.conf` or `$HOME/share/config/extsysmon.conf` depending on the type of installation. Uncomment needed line and edit it.
|
||||
|
||||
Instruction
|
||||
===========
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* kdebase-workspace
|
||||
* kdebindings-python2
|
||||
* lm_sensors (*for definition temperature device*)
|
||||
|
||||
Optional dependencies
|
||||
---------------------
|
||||
|
||||
* sysstat (*for notification*)
|
||||
* 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, clementine, mpd or qmmp)
|
||||
|
||||
Make dependencies
|
||||
-----------------
|
||||
|
||||
* automoc4
|
||||
* cmake
|
||||
|
||||
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
|
@ -1,9 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
./update_files.sh
|
||||
|
||||
SRCDIR="sources"
|
||||
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_PATCH sources/CMakeLists.txt | awk '{print $3}' | cut -c 1)
|
||||
MAJOR=$(grep -m1 PROJECT_VERSION_MAJOR sources/CMakeLists.txt | awk '{print $3}' | sed 's/.$//g')
|
||||
MINOR=$(grep -m1 PROJECT_VERSION_MINOR sources/CMakeLists.txt | awk '{print $3}' | sed 's/.$//g')
|
||||
PATCH=$(grep -m1 PROJECT_VERSION_PATCH sources/CMakeLists.txt | awk '{print $3}' | sed 's/.$//g')
|
||||
VERSION="${MAJOR}.${MINOR}.${PATCH}"
|
||||
|
||||
# build dataengine
|
||||
ARCHIVE="ext-sysmon"
|
||||
@ -16,13 +19,13 @@ rm -rf "${ARCHIVE}"
|
||||
|
||||
# build widget
|
||||
ARCHIVE="pytextmonitor"
|
||||
FILES="AUTHORS COPYING README.md"
|
||||
FILES="AUTHORS CHANGELOG CHANGELOG-RU COPYING"
|
||||
IGNORELIST="build usr"
|
||||
# create archive
|
||||
[[ -e ${ARCHIVE}-${VERSION}-src.tar.xz ]] && rm -f "${ARCHIVE}-${VERSION}-src.tar.xz"
|
||||
[[ -d ${ARCHIVE} ]] && rm -rf "${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
|
||||
tar cJf "${ARCHIVE}-${VERSION}-src.tar.xz" "${ARCHIVE}"
|
||||
rm -rf "${ARCHIVE}"
|
||||
|
@ -1,28 +1,18 @@
|
||||
func_update()
|
||||
{
|
||||
func_update() {
|
||||
cat << EOF
|
||||
Update plasmoids...
|
||||
EOF
|
||||
kbuildsycoca4 > /dev/null 2>&1
|
||||
}
|
||||
|
||||
post_install()
|
||||
{
|
||||
post_install() {
|
||||
func_update
|
||||
cat << EOF
|
||||
Make sure that \`hddtemp\` can be run with sudo without password
|
||||
EOF
|
||||
}
|
||||
|
||||
post_upgrade()
|
||||
{
|
||||
post_upgrade() {
|
||||
func_update
|
||||
cat << EOF
|
||||
Make sure that \`hddtemp\` can be run with sudo without password
|
||||
EOF
|
||||
}
|
||||
|
||||
post_remove()
|
||||
{
|
||||
post_remove() {
|
||||
func_update
|
||||
}
|
||||
|
268
md_readme/en.md
Normal file
@ -0,0 +1,268 @@
|
||||
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 `$memtotmb` - total RAM, *MB*
|
||||
* tag `$memtotgb` - total RAM, *GB*
|
||||
* tag `$swap` - swap, *%*
|
||||
* tag `$swapmb` - swap, *MB*
|
||||
* tag `$swapgb` - swap, *GB*
|
||||
* tag `$swaptotmb` - total swap, *MB*
|
||||
* tag `$swaptotgb` - total 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 `$hddtotmbN` - total size of mount point N, *MB*. For example, `$hddtotmb0`
|
||||
* tag `$hddtotgbN` - total size of mount point N, *GB*. For example, `$hddtotgb0`
|
||||
* 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**.
|
||||
|
||||
Tips & tricks
|
||||
-------------
|
||||
|
||||
You may use different colors for labels. Just put label text into html code. See [issue](https://github.com/arcan1s/pytextmonitor/issues/9) for more details.
|
||||
|
||||
Numbering of elements of temperature, HDD usage, HDD speed, HDD temperature refers to elements order from second tab (*Advanced settings*). You should add item to the required listWidget first. And the first element in the listWidget will be `$tag0`. See [issue](https://github.com/arcan1s/pytextmonitor/issues/17) for more details.
|
||||
|
||||
Advanced settings
|
||||
-----------------
|
||||
|
||||
**Vertical layout**
|
||||
|
||||
Use vertical layout instead of horizontal one.
|
||||
|
||||
**Enable popup**
|
||||
|
||||
Uncheck box if you do not use popup messages.
|
||||
|
||||
**Add stretch**
|
||||
|
||||
Add stretch (spacer) to the selected side of the widget.
|
||||
|
||||
**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.
|
||||
|
||||
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, `disable` will disable definition of GPU states. Default is `auto`.
|
||||
|
||||
**HDD**
|
||||
|
||||
Select one of HDDs for HDD temperature monitor. `all` will enable monitor for all devices, `disable` will disable definition of HDD temperature. Default is `all`.
|
||||
|
||||
**hddtemp cmd**
|
||||
|
||||
Type a command which will be run for hddtemp DataEngine. Default is `sudo hddtemp`.
|
||||
|
||||
**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`
|
||||
|
||||
**Music player**
|
||||
|
||||
Select one of supported music playes for player label.
|
||||
|
||||
DataEngine configuration
|
||||
------------------------
|
||||
|
||||
You may edit DataEngine configuration. It is `/usr/share/config/extsysmon.conf` or `$HOME/share/config/extsysmon.conf` depending on the type of installation. Uncomment needed line and edit it.
|
||||
|
||||
Instruction
|
||||
===========
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* kdebase-workspace
|
||||
* kdebindings-python2
|
||||
* lm_sensors (*for definition temperature device*)
|
||||
|
||||
Optional dependencies
|
||||
---------------------
|
||||
|
||||
* sysstat (*for notification*)
|
||||
* 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, clementine, mpd or qmmp)
|
||||
|
||||
Make dependencies
|
||||
-----------------
|
||||
|
||||
* automoc4
|
||||
* cmake
|
||||
|
||||
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
|
245
md_readme/es.md
Normal file
@ -0,0 +1,245 @@
|
||||
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 memoria, *%*
|
||||
* etiqueta `$memmb` - uso de la memoria, *MB*
|
||||
* etiqueta `$memgb` - uso de la memoria, *GB*
|
||||
* etiqueta `$memtotmb` - uso total de memoria, *MB*
|
||||
* etiqueta `$memtotgb` - uso total de memoria, *GB*
|
||||
* etiqueta `$swap` - swap, *%*
|
||||
* etiqueta `$swapmb` - swap, *MB*
|
||||
* etiqueta `$swapgb` - swap, *GB*
|
||||
* etiqueta `$swaptotmb` - uso total de swap, *MB*
|
||||
* etiqueta `$swaptotgb` - uso total de 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 `$hddtotmbN` - tamaño completo del punto de montaje N, *MB*. Por ejemplo, `$hddtotmb0`
|
||||
* etiqueta `$hddtotgbN` - tamaño completo del punto de montaje N, *GB*. Por ejemplo, `$hddtotgb0`
|
||||
* 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`
|
||||
|
||||
**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**.
|
||||
|
||||
Trucos
|
||||
------
|
||||
|
||||
Es posible usar diferentes colores para las etiquetas. Solo tienes que ponerles el texto en formato HTML. Para más detalles, ver [el tema](https://github.com/arcan1s/pytextmonitor/issues/9) relacionado.
|
||||
|
||||
La enumeración de los elementos de temperatura, uso del disco duro, velocidad del disco duro y la temperatura del disco duro, se refiere al orden de los elementos de la segunda pestaña (*Ajustes avanzados*). Primeramente deberías añadir el elemento a la lista requerida. El primer elemento de la lista será $tag0. Para más información, ver [el tema](https://github.com/arcan1s/pytextmonitor/issues/17) relacionado.
|
||||
|
||||
Ajustes avanzados
|
||||
-----------------
|
||||
|
||||
**Orientación vertical**
|
||||
|
||||
Usar la orientación vertical en lugar de la horizontal.
|
||||
|
||||
**Habilitar ventanas emergentes**
|
||||
|
||||
Desmarcar esta caja si no deseas usar ventanas emergentes.
|
||||
|
||||
**Añadir extensión**
|
||||
|
||||
Añadir extensión (espaciador) al lado seleccionado del widget.
|
||||
|
||||
**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.
|
||||
|
||||
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.
|
||||
|
||||
**Dispositivo GPU**
|
||||
|
||||
Elegir uno de los dispositivos GPU soportados. `auto` habilitará la selección automática, `disable` inhabilitará la definición de los estados de la GPU. 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, `disable` inhabilitará la definición de la temperatura del disco. El valor por defecto es `all`.
|
||||
|
||||
**Comando hddtemp**
|
||||
|
||||
Escriba el comando que será ejecutado por el DataEngine hddtemp. El valor por defecto es `sudo hddtemp`.
|
||||
|
||||
**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`
|
||||
|
||||
**Reproductor de música**
|
||||
|
||||
Selecciona uno de los reproductores de música soportados para la etiqueta del reproductor.
|
||||
|
||||
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*)
|
||||
|
||||
Dependencias opcionales
|
||||
-----------------------
|
||||
|
||||
* sysstat (*para las notificaciones*)
|
||||
* 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, clementine, mpd o qmmp)
|
||||
|
||||
Dependencias de construcción
|
||||
----------------------------
|
||||
|
||||
* automoc4
|
||||
* cmake
|
||||
|
||||
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
|
268
md_readme/pt_BR.md
Normal file
@ -0,0 +1,268 @@
|
||||
pytextmonitor
|
||||
=============
|
||||
|
||||
Informação
|
||||
-----------
|
||||
|
||||
PyTextMonitor é um script Plasmoid escrito em Python2. Assemelha-se com widgets no awesome-wm.
|
||||
|
||||
**NOTA** [PROCURA_SE TRADUTORES!](https://github.com/arcan1s/pytextmonitou/issues/14)
|
||||
|
||||
Configuração
|
||||
------------
|
||||
|
||||
Para editar o output, você deve abrir a janela de Configurações e configurar o formato de output na linhas:
|
||||
|
||||
* tag `$time` - hora no formato padrão. Por exemplo, *sex Nov 6 04:48:01 2013*
|
||||
* tag `$isotime` - hora no formato ISO.
|
||||
* tag `$shouttime` - hora em formato curto
|
||||
* tag `$longtime` - hora em formato longo
|
||||
* tag `$custom` - formato personalizado de houa
|
||||
* tag `$uptime` - tempo em atividade, *---d--h--m*
|
||||
* tag `$custom` - formato personalizado de tempo em atividade
|
||||
* tag `$cpu` - carga total da CPU, *%*
|
||||
* tag `$cpuN` - carga total da CPU no núcleo N, *%*
|
||||
* tag `$cpucl` - frequência média da CPU, *MHz*
|
||||
* tag `$cpuclN` - frequência do núcleo N da CPU, *MHz*
|
||||
* tag `$tempN` - temperatura do dispositivo N. Por exemplo, `$temp0`
|
||||
* tag `$gpu` - uso da GPU, *%*. `aticonfig` ou `nvidia-smi` devem estar instalados
|
||||
* tag `$gputemp` - temperatura da GPU. `aticonfig` ou `nvidia-smi` devem estar instalados
|
||||
* tag `$mem` - uso de memória, *%*
|
||||
* tag `$memmb` - uso de memória, *MB*
|
||||
* tag `$memgb` - uso de memória, *GB*
|
||||
* tag `$memtotmb` - RAM total, *MB*
|
||||
* tag `$memtotgb` - RAM total, *GB*
|
||||
* tag `$swap` - swap, *%*
|
||||
* tag `$swapmb` - swap, *MB*
|
||||
* tag `$swapgb` - swap, *GB*
|
||||
* tag `$swaptotmb` - swap total, *MB*
|
||||
* tag `$swaptotgb` - swap total, *GB*
|
||||
* tag `$hddN` - uso do ponto de montagem N, *%*. Pou exemplo, `$hdd0`
|
||||
* tag `$hddmbN` - uso do ponto de montagem, *MB*. Por exemplo, `$hddmb0`
|
||||
* tag `$hddgbN` - uso do ponto de montagem, *GB*. Por exemplo, `$hddgb0`
|
||||
* tag `$hddtotmbN` - tamanho total do ponto de montagem N, *MB*. Por exemplo, `$hddtotmb0`
|
||||
* tag `$hddtotgbN` - tamanho total do ponto de montagem N,, *GB*. Por exemplo, `$hddtotgb0`
|
||||
* tag `$hddrN` - velocidade de leitura do disco N, *KB/s*. Por exemplo, `$hddr0`
|
||||
* tag `$hddwN` - velocidade de escrita do disco N, *KB/s*. Por exemplo, `$hddw0`
|
||||
* tag `$hddtempN` - temperatura do HDD N. Por exemplo, `$hddtemp0`
|
||||
* tag `$down` - velocidade de download, *KB/s*
|
||||
* tag `$up` - velocidade de upload, *KB/s*
|
||||
* tag `$netdev` - dispositivo atual de rede
|
||||
* tag `$bat` - carga da bateria, *%*
|
||||
* tag `$ac` - status do dispositivo carregador. Retorna (\*) se o carregador estiver plugado ou *( )* se estiver desplugado
|
||||
* tag `$album` - álbum da música atual . Um dos reprodutores de músicas suportados deve estar instalado
|
||||
* tag `$artist` - artista da música atual. Um dos reprodutores de músicas suportados deve estar instalado
|
||||
* tag `$progress` - progresso da música atual. Um dos reprodutores de músicas suportados deve estar instalado
|
||||
* tag `$time` - tempo da música atual. Um dos reprodutores de músicas suportados deve estar instalado
|
||||
* tag `$title` - título da música atual. Um dos reprodutores de músicas suportados deve estar instalado
|
||||
* tag `$pscount` - número de processos rodando
|
||||
* tag `$pstotal` - número total de processos
|
||||
* tag `$ps` - lista de processos rodando
|
||||
* tag `$pkgcountN` - número de pacotes disponíveis para atualizar pelo comando N available to upgrade. Por exemplo, `$pkgcount0`
|
||||
* tag `$customN` - retorna o output do comando N. Por exemplo, `$custom0`
|
||||
|
||||
A ordem dos rótulos mudará se você mudar a posição do slider. Tags HTML funcionarão normalmente.
|
||||
|
||||
**NOTA** você não deve usar a tag `$cpu` no rótulo de swap, por exemplo. **`$cpu` somente funcionará no rótulo da cpu**.
|
||||
|
||||
Dicas & truques
|
||||
---------------
|
||||
|
||||
Você pode usar cores diferentes para os rótulos. Só coloque o texto do rótulo em código HTML. Veja este [issue](https://github.com/arcan1s/pytextmonitor/issues/9) para mais detalhes.
|
||||
|
||||
A numeração dos elementos de temperatura, uso de HDD, velocidade do HDD, temperatura do HDD refere à ordem dos elementos da segunda aba (*Configurações Avançadas*). Você deve adicionar o item para a lista requerida listWidget primeiro. E o primeiro elemento na listWidget será `$tag0`. Veja este [issue](https://github.com/arcan1s/pytextmonitor/issues/17) para mais detalhes.
|
||||
|
||||
Configurações Avançadas
|
||||
-----------------------
|
||||
|
||||
**Layout vertical**
|
||||
|
||||
Use o layout vertical ao invés do horizontal.
|
||||
|
||||
**Habilitar popup**
|
||||
|
||||
Desmarque esta caixa se não quiser usar mensagens popup
|
||||
|
||||
**Adicionar esticamento**
|
||||
|
||||
Adicionar esticamento (espaço) para o lado selecionado do widget.
|
||||
|
||||
**Hora customizada**
|
||||
|
||||
* tag `$dddd` - dia da semana em formato completo
|
||||
* tag `$ddd` - dia da semana em format curto
|
||||
* tag `$dd` - dia
|
||||
* tag `$d` - dia sem zeros
|
||||
* tag `$MMMM` - mês em formato completo
|
||||
* tag `$MMM` - mês em formato curto
|
||||
* tag `$MM` - mês
|
||||
* tag `$M` - mês sem zeros
|
||||
* tag `$yyyy` - ano
|
||||
* tag `$yy` - ano em formato curto
|
||||
* tag `$hh` - horas
|
||||
* tag `$h` - horas sem zeros
|
||||
* tag `$mm` - minutos
|
||||
* tag `$m` - minutos sem zeros
|
||||
* tag `$ss` - segundos
|
||||
* tag `$s` - segundos sem zeros
|
||||
|
||||
**Tempo em Atividade personalizado**
|
||||
|
||||
* tag `$dd` - tempo em atividade em dias
|
||||
* tag `$d` - tempo em atividade em dias sem zeros
|
||||
* tag `$hh` - tempo em atividade em horas
|
||||
* tag `$h` - tempo em atividade em horas sem zeros
|
||||
* tag `$mm` - tempo em atividade em minutos
|
||||
* tag `$m` - tempo em atividade em minutos sem zeros
|
||||
|
||||
**Unidades de Temperatura**
|
||||
|
||||
Seleciona as unidades de temperatura. Unidades disponíveis são Celsius, Farenheit e Kelvin.
|
||||
|
||||
**Dispositivos de Temperatura**
|
||||
|
||||
Lista de dispositovos, a serem observados no rótulo de temperatura (os itens de seleção vêm do `sensors`). A lista de widgets é editável, a tecla delete removerá o item selecionado.
|
||||
|
||||
**Pontos de Montagem**
|
||||
|
||||
Lista de pontos de montagem, a serem observados no rótulo de hdd (os itens de seleção vêm do `mount`). A lista de widgets é editável, a tecla delete removerá o item selecionado.
|
||||
|
||||
**HDD (velocidade)**
|
||||
|
||||
Lista de dispositivos HDD, a serem observados no rótulo de hddspeed (os itens de seleção vêm do DataEngine). A lista de widgets é editável, a tecla delete removerá o item selecionado.
|
||||
|
||||
**HDD (temperatura)**
|
||||
|
||||
Lista de dispositivos HDD, a serem observados no rótulo de hddtemp (os itens de seleção vêm do `find`). A lista de widgets é editável, a tecla delete removerá o item selecionado.
|
||||
|
||||
**Diretório de rede**
|
||||
|
||||
Caminho para o diretório, que contém a informação dos dispositivos de rede. O padrão é `/sys/class/net`. Requerido para seleção automática de dispositivo de rede.
|
||||
|
||||
**Dispositivo de rede**
|
||||
|
||||
Usa o dispositivo especificado como ativo. Os itens de seleção vêm do **diretório de rede**. Desativará a seleção automática do dispositivo de rede.
|
||||
|
||||
**Dispositivo de bateria**
|
||||
|
||||
Arquivo com informações da bateria. O arquivo (`/sys/class/power_supply/BAT0/capacity` por padrão) deve conter somente a carga da bateria em porcentagem.
|
||||
|
||||
**Tag do carregador plugado**
|
||||
|
||||
Linha a ser mostrada quando o carregador está plugado.
|
||||
|
||||
**Tag do carregador desplugado**
|
||||
|
||||
Linha a ser mostrada quando o carregador está desplugado.
|
||||
|
||||
**Dispositivo carregador**
|
||||
|
||||
Arquivo com informações do carregador. O arquivo (`/sys/class/power_supply/AC/online` por padrão) deve conter `1` se o carregador estiver plugado.
|
||||
|
||||
Configurações da dica de contexto
|
||||
---------------------------------
|
||||
|
||||
Desde a versão 1.7.0, os rótulos de CPU, frequência da CPU, memória, swap e rede suportam dica de contexto gráfica. Para ativar, certifique-se de ter marcado as caixas necessárias. O número de valores armazenados pode ser configurado nesta aba. Cores de gráficos também são configuráveis.
|
||||
|
||||
Configurações de DataEngine
|
||||
---------------------------
|
||||
|
||||
**Comando personalizado**
|
||||
|
||||
*NOTA* Isso pode travar o seu computador.
|
||||
|
||||
Comandos que serão executados para o rótulo personalizado.
|
||||
|
||||
**Dispositivo GPU**
|
||||
|
||||
Seleciona um dos dispositivos GPU sportador. `auto` ativará a seleção automática, `disable` desativará a definição dos estados de GPU. O padrão é `auto`.
|
||||
|
||||
**HDD**
|
||||
|
||||
Seleciona um dos HDDs para o monitor de temperatura do HDD. `all` ativará o monitoramento de todos dispositivos, `disable` desativará o monitoramento para todos dispositivos. O padrão é `all`.
|
||||
|
||||
**hddtemp cmd**
|
||||
|
||||
Digite um comando que será executado para o hddtemp DataEngine. O padrão é `sudo hddtemp`.
|
||||
|
||||
**Endereço MPD**
|
||||
|
||||
Endereço do servidor MPD. O padrão é `localhost`.
|
||||
|
||||
**Porta MPD**
|
||||
|
||||
Porta do servidor MPD. O padrão é `6600`.
|
||||
|
||||
**Gerenciador de pacotes**
|
||||
|
||||
Lista de comandos a serem executador. O número de linhas nulas é o número de linhas desnecessárias. Por padrão:
|
||||
|
||||
* *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`
|
||||
|
||||
**Reprodutor de música**
|
||||
|
||||
Selecione um dos reprodutores de música suportados para o rótulo de música.
|
||||
|
||||
Configuração do DataEngine
|
||||
--------------------------
|
||||
|
||||
Você pode editar a configuração do DataEngine. Ela está em `/usr/share/config/extsysmon.conf` ou `$HOME/share/config/extsysmon.conf` dependendo do tipo de instalação. Remova os comentários das linhas necessárias e edite-as.
|
||||
|
||||
Instruções
|
||||
==========
|
||||
|
||||
Dependências
|
||||
------------
|
||||
|
||||
* kdebase-workspace
|
||||
* kdebindings-python2
|
||||
* lm_sensors (*para definir a temperatura dos dispositivos*)
|
||||
|
||||
Dependências opcionais
|
||||
----------------------
|
||||
|
||||
* sysstat (*para notificações*)
|
||||
* driver de vídeo proprietário
|
||||
* hddtemp (certifique-se de que pode ser executado com `sudo` sem senha. Para isso, adicione a seguinte linha ao arquivo `/etc/sudoers`: `$USERNAME ALL=NOPASSWD: /usr/bin/hddtemp`)
|
||||
* music player (amarok, clementine, mpd or qmmp)
|
||||
|
||||
Dependências para compilar
|
||||
--------------------------
|
||||
|
||||
* automoc4
|
||||
* cmake
|
||||
|
||||
Instalação
|
||||
----------
|
||||
|
||||
* baixe o código-fonte
|
||||
* instale
|
||||
|
||||
mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --localprefix` ../
|
||||
make && make install
|
||||
|
||||
Caso queira instalar na `/`:
|
||||
|
||||
mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
||||
make && sudo make install
|
||||
|
||||
Informações adicionais
|
||||
======================
|
||||
|
||||
TODO (lista de desejos)
|
||||
-----------------------
|
||||
|
||||
Links
|
||||
-----
|
||||
|
||||
* [Homepage](http://arcanis.name/projects/pytextmonitor/)
|
||||
* Plasmoid na [kde-look](http://kde-look.org/content/show.php/Py+Text+Monitor?content=157124)
|
||||
* DataEngine na [kde-look](http://kde-look.org/content/show.php/Extended+Systemmonitor+DataEngine?content=158773)
|
||||
* Pacote para ArchLinux no [AUR](https://aur.archlinux.org/packages/kdeplasma-applets-pytextmonitor/)
|
268
md_readme/ru.md
Normal file
@ -0,0 +1,268 @@
|
||||
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*
|
||||
* тег `$memtotmb` - RAM, *MB*
|
||||
* тег `$memtotgb` - RAM, *GB*
|
||||
* тег `$swap` - swap, *%*
|
||||
* тег `$swapmb` - swap, *MB*
|
||||
* тег `$swapgb` - swap, *GB*
|
||||
* тег `$swaptotmb` - размер swap, *MB*
|
||||
* тег `$swaptotgb` - размер swap, *GB*
|
||||
* тег `$hddN` - использование точки монтирования N, *%*. Например, `$hdd0`
|
||||
* тег `$hddmbN` - использование точки монтирования N, *MB*. Например, `$hddmb0`
|
||||
* тег `$hddgbN` - использование точки монтирования N, *GB*. Например, `$hddgb0`
|
||||
* тег `$hddtotmbN` - размер точки монтирования N, *MB*. Например, `$hddtotmb0`
|
||||
* тег `$hddtotgbN` - размер точки монтирования N, *GB*. Например, `$hddtotgb0`
|
||||
* тег `$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**.
|
||||
|
||||
Советы и хитрости
|
||||
-----------------
|
||||
|
||||
Вы можете использовать различные цвета в полях. Просто вставьте нужный текст в html код. Смотри [вопрос](https://github.com/arcan1s/pytextmonitor/issues/9) для более подробной информации.
|
||||
|
||||
Нумерация элементов в полях "Температура", "Использование HDD", "Скорость HDD", "Температура HDD" ссылается на порядок элементов во второй вкладке (*Расширенные настройки*). Вы должны сначала добавить требуемые элементы в нужный listWidget. И первый элемент в listWdiget будет связан c `$tag0`. Смотри [вопрос](https://github.com/arcan1s/pytextmonitor/issues/17) для более подробной информации.
|
||||
|
||||
Расширенные настройки
|
||||
---------------------
|
||||
|
||||
**Вертикальная разметка**
|
||||
|
||||
Использовать вертикальную разметку вместо горизонтальной.
|
||||
|
||||
**Включить всплывающие сообщения**
|
||||
|
||||
Нажмите на чекбокс, если вы не используете всплывающие сообщения.
|
||||
|
||||
**Добавить пустое пространство**
|
||||
|
||||
Добавить пустое пространство в указанное место виджета.
|
||||
|
||||
**Свой формат времени**
|
||||
|
||||
* тег `$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` включит автоматическое определение, `disable` отключит все мониторы GPU. По умолчанию `auto`.
|
||||
|
||||
**HDD**
|
||||
|
||||
Выберете один из HDD для монитора его температуры. `all` включит монитор для всех доступных устройств, `disable` отключит определение температуры HDD. По умолчанию `all`.
|
||||
|
||||
**Команда hddtemp**
|
||||
|
||||
Введите команду, которая будет запущена для hddtemp DataEngine. По умолчанию `sudo hddtemp`.
|
||||
|
||||
**Адрес 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, clementine, mpd или qmmp)
|
||||
|
||||
Зависимости сборки
|
||||
------------------
|
||||
|
||||
* automoc4
|
||||
* cmake
|
||||
|
||||
Установка
|
||||
---------
|
||||
|
||||
* скачать исходный архив
|
||||
* установить
|
||||
|
||||
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/)
|
263
md_readme/uk.md
Normal file
@ -0,0 +1,263 @@
|
||||
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*
|
||||
* тег `$swaptotmb` - розмір swap, *MB*
|
||||
* тег `$swaptotgb` - розмір swap, *GB*
|
||||
* тег `$hddN` - використання точки монтування N, *%*. Наприклад, `$hdd0`
|
||||
* тег `$hddmbN` - використання точки монтування N, *MB*. Наприклад, `$hddmb0`
|
||||
* тег `$hddgbN` - використання точки монтування N, *GB*. Наприклад, `$hddgb0`
|
||||
* тег `$hddtotmbN` - розмір точки монтування N, *MB*. Наприклад, `$hddtotmb0`
|
||||
* тег `$hddtotgbN` - розмір точки монтування N, *GB*. Наприклад, `$hddtotgb0`
|
||||
* тег `$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**.
|
||||
|
||||
Поради та хитрощі
|
||||
-----------------
|
||||
|
||||
Ви можете використовувати різні кольори в полях. Просто встановіть потрібний текст в html код. Дивись [питання](https://github.com/arcan1s/pytextmonitor/issues/9) для більш детальної інформації.
|
||||
|
||||
Нумерація элементів в полях температура, використання HDD, швидкість HDD, температура HDD посилається на порядок елементів у другій вкладці (*Розширені налаштування*). Ви повинні спочатку додати потрібні елементи в потрібний listWidget. Тоді перший елемент в listWdiget буде пов’язаний з `$tag0`. Дивись [питання](https://github.com/arcan1s/pytextmonitor/issues/17) для більш детальної інформації.
|
||||
|
||||
Розширені налаштування
|
||||
----------------------
|
||||
|
||||
**Вертикальна розмітка**
|
||||
|
||||
Використовувати вертикальну розмітку замість горизонтальної.
|
||||
|
||||
**Включити спливаючі повідомлення**
|
||||
|
||||
Натисніть на чекбокс, якщо ви не користуєтесь спливаючими повідомленнями.
|
||||
|
||||
**Додати порожній простір**
|
||||
|
||||
Додати порожній простір у вказане місце віджета.
|
||||
|
||||
**Свій формат часу**
|
||||
|
||||
* тег `$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 (вміст комбо боксу береться iз `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`.
|
||||
|
||||
**Команда hddtemp**
|
||||
|
||||
Оберіть команду, яка буде запущена для hddtemp DataEngine. За замовчуванням `sudo hddtemp`.
|
||||
|
||||
**Адреса 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, clementine, mpd или qmmp)
|
||||
|
||||
Залежності збирання
|
||||
-------------------
|
||||
|
||||
* automoc4
|
||||
* cmake
|
||||
|
||||
Установка
|
||||
---------
|
||||
|
||||
* скачати вихідний архів
|
||||
* встановити
|
||||
|
||||
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/)
|
0
readme_diff.patch
Normal file
Before Width: | Height: | Size: 175 KiB |
BIN
screenshots/dataengine.png
Normal file
After Width: | Height: | Size: 83 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 3.6 KiB |
BIN
screenshots/panel_01.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
screenshots/panel_02.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
screenshots/panel_03.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 189 KiB |
BIN
screenshots/ptm_config_01.png
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
screenshots/ptm_config_02.png
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
screenshots/ptm_config_03.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
screenshots/ptm_config_04.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
screenshots/ptm_config_05.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
screenshots/tooltips.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
@ -7,7 +7,7 @@ cmake_policy (SET CMP0015 NEW)
|
||||
|
||||
project (pytextmonitor)
|
||||
set (PROJECT_VERSION_MAJOR 1)
|
||||
set (PROJECT_VERSION_MINOR 6)
|
||||
set (PROJECT_VERSION_MINOR 10)
|
||||
set (PROJECT_VERSION_PATCH 0)
|
||||
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
|
||||
|
||||
@ -25,3 +25,4 @@ endif ()
|
||||
|
||||
add_subdirectory (ext-sysmon)
|
||||
add_subdirectory (ptm)
|
||||
add_subdirectory (readme)
|
||||
|
@ -1,13 +1,32 @@
|
||||
# Configuration file for Extended Systemmonitor DataEngine (v.1.6)
|
||||
# Uncomment needed lines
|
||||
# Configuration file for Extended Systemmonitor DataEngine
|
||||
# $kdehome/share/config/extsysmon.conf
|
||||
|
||||
# Custom command, separator is '@@'
|
||||
#CUSTOM=wget -qO- http://ifconfig.me/ip
|
||||
|
||||
# Set GPU device
|
||||
# May be 'nvidia' (for nvidia), 'ati' (for ATI RADEON), 'ignore' or 'auto'
|
||||
# May be 'nvidia' (for nvidia), 'ati' (for ATI RADEON), 'disable' or 'auto'
|
||||
#GPUDEV=auto
|
||||
|
||||
# Set block device for hddtemp comma separated or use 'all'
|
||||
# Set block device for hddtemp comma separated or use 'all' or 'disable'
|
||||
#HDDDEV=all
|
||||
|
||||
# Set MPD settings
|
||||
#MPDADDRESS=localhost
|
||||
#MPDPORT=6600
|
||||
|
||||
# Package upgrade info
|
||||
## 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
|
||||
|
||||
# Player name. Supported players are amarok, clementine, mpd, qmmp
|
||||
#PLAYER=amarok
|
||||
|
@ -19,25 +19,55 @@
|
||||
#define EXTSYSMON_H
|
||||
|
||||
#include <Plasma/DataEngine>
|
||||
#include <QProcess>
|
||||
|
||||
class ExtendedSysMon : public Plasma::DataEngine
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ExtendedSysMon(QObject *parent, const QVariantList &args);
|
||||
ExtendedSysMon(QObject *parent, const QVariantList &args);
|
||||
// update functions
|
||||
void getCustomCmd(const QString cmd,
|
||||
const int number = 0);
|
||||
void getGpu(const QString device);
|
||||
void getGpuTemp(const QString device);
|
||||
void getHddTemp(const QString cmd, const QString device,
|
||||
const int number = 0);
|
||||
void getPlayerInfo(const QString playerName,
|
||||
const QString mpdAddress = 0,
|
||||
const QString mpdPort = 0);
|
||||
void getPsStats();
|
||||
void getUpgradeInfo(const QString pkgCommand,
|
||||
const int number = 0);
|
||||
|
||||
protected:
|
||||
bool sourceRequestEvent(const QString &name);
|
||||
bool updateSourceEvent(const QString &source);
|
||||
bool readConfiguration();
|
||||
QStringList sources() const;
|
||||
// main configuration
|
||||
QStringList hddDev;
|
||||
QString gpuDev;
|
||||
// configuration
|
||||
QString mpdAddress;
|
||||
QString mpdPort;
|
||||
bool sourceRequestEvent(const QString &name);
|
||||
bool updateSourceEvent(const QString &source);
|
||||
QStringList sources() const;
|
||||
|
||||
private slots:
|
||||
void setCustomCmd(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
void setGpu(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
void setGpuTemp(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
void setHddTemp(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
void setUpgradeInfo(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
void setPlayer(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
void setPs(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
|
||||
private:
|
||||
// processes
|
||||
QMap<QString, QList<QProcess*> > processes;
|
||||
// configuration
|
||||
QMap<QString, QString> configuration;
|
||||
bool debug;
|
||||
// reread configuration
|
||||
QString getAllHdd();
|
||||
QString getAutoGpu();
|
||||
void readConfiguration();
|
||||
void setKeys();
|
||||
void setProcesses();
|
||||
QMap<QString, QString> updateConfiguration(const QMap<QString, QString> rawConfig);
|
||||
};
|
||||
|
||||
#endif /* EXTSYSMON_H */
|
||||
|
@ -6,19 +6,17 @@ message (STATUS "Subproject ${SUBPROJECT}")
|
||||
|
||||
# find required libaries
|
||||
find_package (KDE4 REQUIRED)
|
||||
include (KDE4Defaults)
|
||||
|
||||
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_definitions (${KDE4_DEFINITIONS})
|
||||
|
||||
add_subdirectory (po)
|
||||
|
||||
# set sources
|
||||
set (SUBPROJECT_CODE_DIR "contents/code")
|
||||
set (SUBPROJECT_MISC_DIR "contents/misc")
|
||||
set (SUBPROJECT_UI_DIR "contents/ui")
|
||||
file (GLOB SUBPROJECT_DESKTOP_IN *.desktop)
|
||||
file (RELATIVE_PATH SUBPROJECT_DESKTOP ${CMAKE_SOURCE_DIR} ${SUBPROJECT_DESKTOP_IN})
|
||||
file (GLOB SUBPROJECT_NOTIFY *.notifyrc)
|
||||
file (GLOB SUBPROJECT_NOTIFY ${SUBPROJECT_MISC_DIR}/*.notifyrc)
|
||||
file (GLOB SUBPROJECT_SOURCE ${SUBPROJECT_CODE_DIR}/*.py)
|
||||
file (GLOB SUBPROJECT_UI ${SUBPROJECT_UI_DIR}/*.ui)
|
||||
|
||||
|
111
sources/ptm/contents/code/advanced.py
Normal file
@ -0,0 +1,111 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
############################################################################
|
||||
# This file is part of pytextmonitor #
|
||||
# #
|
||||
# pytextmonitor is free software: you can redistribute it and/or #
|
||||
# modify it under the terms of the GNU General Public License as #
|
||||
# published by the Free Software Foundation, either version 3 of the #
|
||||
# License, or (at your option) any later version. #
|
||||
# #
|
||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
||||
############################################################################
|
||||
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
from PyKDE4.plasma import *
|
||||
from PyQt4 import uic
|
||||
|
||||
|
||||
|
||||
class AdvancedWindow(QWidget):
|
||||
def __init__(self, parent):
|
||||
"""settings window definition"""
|
||||
# debug
|
||||
environment = QProcessEnvironment.systemEnvironment()
|
||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes")):
|
||||
self.debug = True
|
||||
else:
|
||||
self.debug = False
|
||||
# main
|
||||
QWidget.__init__(self)
|
||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'advanced.ui'), self)
|
||||
self.parent = parent
|
||||
|
||||
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_hddSpeedDevice, SIGNAL("clicked()"), self.addHddSpeedDevice)
|
||||
QObject.connect(self.ui.pushButton_mount, SIGNAL("clicked()"), self.addMount)
|
||||
QObject.connect(self.ui.pushButton_tempDevice, SIGNAL("clicked()"), self.addTempDevice)
|
||||
QObject.connect(self.ui.listWidget_hddDevice, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_hddDevice.openPersistentEditor)
|
||||
QObject.connect(self.ui.listWidget_hddSpeedDevice, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_hddSpeedDevice.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)
|
||||
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
"""delete events"""
|
||||
if self.debug: qDebug("[PTM] [advanced.py] [keyPressEvent]")
|
||||
if self.debug: qDebug("[PTM] [advanced.py] [keyPressEvent] : Run function with event '%s'" %(event.key()))
|
||||
if (event.key() == Qt.Key_Delete):
|
||||
if (self.ui.listWidget_hddDevice.hasFocus() and
|
||||
(self.ui.listWidget_hddDevice.currentRow() > -1)):
|
||||
self.ui.listWidget_hddDevice.takeItem(self.ui.listWidget_hddDevice.currentRow())
|
||||
elif (self.ui.listWidget_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
|
||||
(self.ui.listWidget_mount.currentRow() > -1)):
|
||||
self.ui.listWidget_mount.takeItem(self.ui.listWidget_mount.currentRow())
|
||||
elif (self.ui.listWidget_tempDevice.hasFocus() and
|
||||
(self.ui.listWidget_tempDevice.currentRow() > -1)):
|
||||
self.ui.listWidget_tempDevice.takeItem(self.ui.listWidget_tempDevice.currentRow())
|
||||
|
||||
|
||||
def addHddDevice(self):
|
||||
"""function to add mount points"""
|
||||
if self.debug: qDebug("[PTM] [advanced.py] [addHddDevice]")
|
||||
if self.debug: qDebug("[PTM] [advanced.py] [addHddDevice] : Device '%s'" %(self.ui.comboBox_hddDevice.currentText()))
|
||||
self.ui.listWidget_hddDevice.clearSelection()
|
||||
self.ui.listWidget_hddDevice.addItem(self.ui.comboBox_hddDevice.currentText())
|
||||
|
||||
|
||||
def addHddSpeedDevice(self):
|
||||
"""function to add disk device"""
|
||||
if self.debug: qDebug("[PTM] [advanced.py] [addHddSpeedDevice]")
|
||||
if self.debug: qDebug("[PTM] [advanced.py] [addHddSpeedDevice] : Device '%s'" %(self.ui.comboBox_hddSpeedDevice.currentText()))
|
||||
self.ui.listWidget_hddSpeedDevice.clearSelection()
|
||||
self.ui.listWidget_hddSpeedDevice.addItem(self.ui.comboBox_hddSpeedDevice.currentText())
|
||||
|
||||
|
||||
def addMount(self):
|
||||
"""function to add mount points"""
|
||||
if self.debug: qDebug("[PTM] [advanced.py] [addMount]")
|
||||
if self.debug: qDebug("[PTM] [advanced.py] [addMount] : Device '%s'" %(self.ui.comboBox_mount.currentText()))
|
||||
self.ui.listWidget_mount.clearSelection()
|
||||
self.ui.listWidget_mount.addItem(self.ui.comboBox_mount.currentText())
|
||||
|
||||
|
||||
def addTempDevice(self):
|
||||
"""function to add temperature device"""
|
||||
if self.debug: qDebug("[PTM] [advanced.py] [addTempDevice]")
|
||||
if self.debug: qDebug("[PTM] [advanced.py] [addTempDevice] : Device '%s'" %(self.ui.comboBox_tempDevice.currentText()))
|
||||
self.ui.listWidget_tempDevice.clearSelection()
|
||||
self.ui.listWidget_tempDevice.addItem(self.ui.comboBox_tempDevice.currentText())
|
||||
|
||||
|
||||
def setNetdevEnabled(self):
|
||||
"""function to set enabled netdev"""
|
||||
if self.debug: qDebug("[PTM] [advanced.py] [setNetdevEnabled]")
|
||||
if self.debug: qDebug("[PTM] [advanced.py] [setNetdevEnabled] : State '%s'" %(self.ui.checkBox_netdev.checkState()))
|
||||
if (self.ui.checkBox_netdev.checkState() == 0):
|
||||
self.ui.comboBox_netdev.setDisabled(True)
|
||||
else:
|
||||
self.ui.comboBox_netdev.setEnabled(True)
|
40
sources/ptm/contents/code/appearance.py
Normal file
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
############################################################################
|
||||
# This file is part of pytextmonitor #
|
||||
# #
|
||||
# pytextmonitor is free software: you can redistribute it and/or #
|
||||
# modify it under the terms of the GNU General Public License as #
|
||||
# published by the Free Software Foundation, either version 3 of the #
|
||||
# License, or (at your option) any later version. #
|
||||
# #
|
||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
||||
############################################################################
|
||||
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
from PyKDE4.plasma import *
|
||||
from PyQt4 import uic
|
||||
|
||||
|
||||
|
||||
class AppearanceWindow(QWidget):
|
||||
def __init__(self, parent):
|
||||
"""settings window definition"""
|
||||
# debug
|
||||
environment = QProcessEnvironment.systemEnvironment()
|
||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes")):
|
||||
self.debug = True
|
||||
else:
|
||||
self.debug = False
|
||||
# main
|
||||
QWidget.__init__(self)
|
||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'appearance.ui'), self)
|
||||
self.parent = parent
|
@ -1,22 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Alex Oleshkevich <alex.oleshkevich@gmail.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
from util import *
|
||||
############################################################################
|
||||
# Copyright 2012 Alex Oleshkevich <alex.oleshkevich@gmail.com> #
|
||||
# #
|
||||
# This program is free software; you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation; either version 2 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License along #
|
||||
# with this program; if not, write to the Free Software Foundation, Inc., #
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #
|
||||
############################################################################
|
||||
|
||||
|
||||
|
||||
@ -25,8 +25,10 @@ class Config():
|
||||
self.applet = applet
|
||||
self.config = self.applet.config()
|
||||
|
||||
|
||||
def get(self, key, default = ''):
|
||||
return self.config.readEntry(key, default).toString()
|
||||
|
||||
|
||||
def set(self, key, value):
|
||||
self.config.writeEntry(key, value)
|
||||
|
@ -17,6 +17,7 @@
|
||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
||||
############################################################################
|
||||
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
from PyKDE4.kdecore import *
|
||||
from PyKDE4.kdeui import *
|
||||
@ -26,199 +27,258 @@ import config
|
||||
|
||||
|
||||
class ConfigDefinition:
|
||||
def __init__(self, parent, configpage):
|
||||
def __init__(self, parent, configpage, defaults):
|
||||
"""class definition"""
|
||||
# debug
|
||||
environment = QProcessEnvironment.systemEnvironment()
|
||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes")):
|
||||
self.debug = True
|
||||
else:
|
||||
self.debug = False
|
||||
# main
|
||||
self.parent = parent
|
||||
self.configpage = configpage
|
||||
self.defaults = defaults
|
||||
|
||||
|
||||
def configAccepted(self):
|
||||
"""function to accept settings"""
|
||||
if self.debug: qDebug("[PTM] [configdef.py] [configAccepted]")
|
||||
settings = config.Config(self.parent)
|
||||
|
||||
# update local variables
|
||||
self.parent.interval = self.configpage.ui.spinBox_interval.value()
|
||||
settings.set('interval', self.parent.interval)
|
||||
self.parent.font_family = str(self.configpage.ui.fontComboBox.currentFont().family())
|
||||
settings.set('font_family', self.parent.font_family)
|
||||
self.parent.font_size = self.configpage.ui.spinBox_fontSize.value()
|
||||
settings.set('font_size', self.parent.font_size)
|
||||
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)
|
||||
settings.set('interval', self.configpage['appearance'].ui.spinBox_interval.value())
|
||||
settings.set('font_family', str(self.configpage['appearance'].ui.fontComboBox.currentFont().family()))
|
||||
settings.set('font_size', self.configpage['appearance'].ui.spinBox_fontSize.value())
|
||||
settings.set('font_color', str(self.configpage['appearance'].ui.kcolorcombo.color().name()))
|
||||
settings.set('font_style', str(self.configpage['appearance'].ui.comboBox_style.currentText()))
|
||||
settings.set('font_weight', self.configpage['appearance'].ui.spinBox_weight.value())
|
||||
|
||||
settings.set('layout', self.configpage['advanced'].ui.checkBox_layout.checkState())
|
||||
settings.set('popup', self.configpage['advanced'].ui.checkBox_popup.checkState())
|
||||
settings.set('left_stretch', self.configpage['advanced'].ui.checkBox_leftStretch.checkState())
|
||||
settings.set('right_stretch', self.configpage['advanced'].ui.checkBox_rightStretch.checkState())
|
||||
settings.set('custom_time', str(self.configpage['advanced'].ui.lineEdit_timeFormat.text()))
|
||||
settings.set('custom_uptime', str(self.configpage['advanced'].ui.lineEdit_uptimeFormat.text()))
|
||||
settings.set('temp_units', str(self.configpage['advanced'].ui.comboBox_tempUnits.currentText()))
|
||||
item = QStringList()
|
||||
for i in range(self.configpage['advanced'].ui.listWidget_tempDevice.count()):
|
||||
item.append(self.configpage['advanced'].ui.listWidget_tempDevice.item(i).text())
|
||||
settings.set('temp_device', str(item.join(QString('@@'))))
|
||||
item = QStringList()
|
||||
for i in range(self.configpage['advanced'].ui.listWidget_mount.count()):
|
||||
item.append(self.configpage['advanced'].ui.listWidget_mount.item(i).text())
|
||||
settings.set('mount', str(item.join(QString('@@'))))
|
||||
item = QStringList()
|
||||
for i in range(self.configpage['advanced'].ui.listWidget_hddDevice.count()):
|
||||
item.append(self.configpage['advanced'].ui.listWidget_hddDevice.item(i).text())
|
||||
settings.set('hdd', str(item.join(QString('@@'))))
|
||||
item = QStringList()
|
||||
for i in range(self.configpage['advanced'].ui.listWidget_hddSpeedDevice.count()):
|
||||
item.append(self.configpage['advanced'].ui.listWidget_hddSpeedDevice.item(i).text())
|
||||
settings.set('disk', str(item.join(QString('@@'))))
|
||||
settings.set('netdir', str(self.configpage['advanced'].ui.lineEdit_netdir.text()))
|
||||
settings.set('netdevBool', self.configpage['advanced'].ui.checkBox_netdev.checkState())
|
||||
settings.set('custom_netdev', str(self.configpage['advanced'].ui.comboBox_netdev.currentText()))
|
||||
settings.set('battery_device', str(self.configpage['advanced'].ui.lineEdit_batdev.text()))
|
||||
settings.set('ac_device', str(self.configpage['advanced'].ui.lineEdit_acdev.text()))
|
||||
settings.set('ac_online', str(self.configpage['advanced'].ui.lineEdit_acOnline.text()))
|
||||
settings.set('ac_offline', str(self.configpage['advanced'].ui.lineEdit_acOffline.text()))
|
||||
|
||||
settings.set('tooltip_num', self.configpage['tooltip'].ui.spinBox_tooltipNum.value())
|
||||
for label in ['cpu', 'cpuclock', 'mem', 'swap', 'down', 'up']:
|
||||
settings.set(self.defaults['confColor'][label], str(self.configpage['tooltip'].kcolorcombos[label].color().name()))
|
||||
|
||||
dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf"
|
||||
try:
|
||||
with open(dataengineConfig, 'w') as deConfigFile:
|
||||
item = QStringList()
|
||||
for i in range(self.configpage['dataengine'].ui.listWidget_customCommand.count()):
|
||||
item.append(self.configpage['dataengine'].ui.listWidget_customCommand.item(i).text())
|
||||
deConfigFile.write("CUSTOM=" + str(item.join(QString('@@'))) + "\n")
|
||||
deConfigFile.write("GPUDEV=" + str(self.configpage['dataengine'].ui.comboBox_gpudev.currentText()) + "\n")
|
||||
deConfigFile.write("HDDDEV=" + str(self.configpage['dataengine'].ui.comboBox_hdddev.currentText()) + "\n")
|
||||
deConfigFile.write("HDDTEMPCMD=" + str(self.configpage['dataengine'].ui.lineEdit_hddtempCmd.text()) + "\n")
|
||||
deConfigFile.write("MPDADDRESS=" + str(self.configpage['dataengine'].ui.lineEdit_mpdaddress.text()) + "\n")
|
||||
deConfigFile.write("MPDPORT=" + str(self.configpage['dataengine'].ui.spinBox_mpdport.value()) + "\n")
|
||||
item = QStringList()
|
||||
for i in range(self.configpage['dataengine'].ui.listWidget_pkgCommand.count()):
|
||||
item.append(self.configpage['dataengine'].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")
|
||||
deConfigFile.write("PLAYER=" + str(self.configpage['dataengine'].ui.comboBox_playerSelect.currentText()) + "\n")
|
||||
except:
|
||||
pass
|
||||
|
||||
# disconnecting from source and clear layout
|
||||
if (self.parent.uptimeBool > 0):
|
||||
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)
|
||||
if (self.parent.cpuFormat.split('$ccpu')[0] != self.parent.cpuFormat):
|
||||
self.parent.label_cpu.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_cpu)
|
||||
self.parent.label_cpu1.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_cpu1)
|
||||
for core in range(self.parent.numCores):
|
||||
self.parent.systemmonitor.disconnectSource("cpu/cpu"+str(core)+"/TotalLoad", self.parent)
|
||||
exec ("self.parent.label_coreCpu" + str(core) + ".setText('')")
|
||||
exec ("self.parent.layout.removeItem(self.parent.label_coreCpu" + str(core) + ")")
|
||||
else:
|
||||
self.parent.label_cpu.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_cpu)
|
||||
if (self.parent.cpuclockBool > 0):
|
||||
self.parent.systemmonitor.disconnectSource("cpu/system/AverageClock", self.parent)
|
||||
if (self.parent.cpuclockFormat.split('$ccpu')[0] != self.parent.cpuclockFormat):
|
||||
self.parent.label_cpuclock.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_cpuclock)
|
||||
self.parent.label_cpuclock1.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_cpuclock1)
|
||||
for core in range(self.parent.numCores):
|
||||
self.parent.systemmonitor.disconnectSource("cpu/cpu"+str(core)+"/clock", self.parent)
|
||||
exec ("self.parent.label_coreCpuclock" + str(core) + ".setText('')")
|
||||
exec ("self.parent.layout.removeItem(self.parent.label_coreCpuclock" + str(core) + ")")
|
||||
else:
|
||||
self.parent.label_cpuclock.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_cpuclock)
|
||||
if (self.parent.tempBool > 0):
|
||||
self.parent.systemmonitor.disconnectSource(self.parent.tempdev, self.parent)
|
||||
self.parent.label_temp.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_temp)
|
||||
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)
|
||||
if (self.parent.memInMb == False):
|
||||
self.parent.systemmonitor.disconnectSource("mem/physical/free", self.parent)
|
||||
self.parent.systemmonitor.disconnectSource("mem/physical/used", self.parent)
|
||||
self.parent.label_mem.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_mem)
|
||||
if (self.parent.swapBool > 0):
|
||||
self.parent.systemmonitor.disconnectSource("mem/swap/used", self.parent)
|
||||
if (self.parent.swapInMb == False):
|
||||
self.parent.systemmonitor.disconnectSource("mem/swap/free", self.parent)
|
||||
self.parent.label_swap.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_swap)
|
||||
if (self.parent.hddBool > 0):
|
||||
for mount in self.parent.mountPoints:
|
||||
self.parent.systemmonitor.disconnectSource("partitions" + mount + "/filllevel", self.parent)
|
||||
exec ('self.parent.label_hdd_' + ''.join(mount.split('/')) + '.setText("")')
|
||||
exec ("self.parent.layout.removeItem(self.parent.label_hdd_" + ''.join(mount.split('/')) + ")")
|
||||
self.parent.label_hdd0.setText('')
|
||||
self.parent.label_hdd1.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_hdd0)
|
||||
self.parent.layout.removeItem(self.parent.label_hdd1)
|
||||
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_netDown.setText('')
|
||||
self.parent.label_netUp.setText('')
|
||||
self.parent.layout.removeItem(self.parent.label_netUp)
|
||||
self.parent.layout.removeItem(self.parent.label_netDown)
|
||||
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)
|
||||
self.parent.disconnectFromSource()
|
||||
|
||||
self.parent.label_order = "--------------"
|
||||
|
||||
for label in self.parent.dict_orders.keys():
|
||||
exec ('self.parent.' + self.parent.dict_orders[label] + 'Bool = ' + str(self.configpage.checkboxes[self.parent.dict_orders[label]].checkState()))
|
||||
if (self.configpage.checkboxes[self.parent.dict_orders[label]].checkState() > 0):
|
||||
pos = self.configpage.sliders[self.parent.dict_orders[label]].value() - 1
|
||||
self.parent.label_order = self.parent.label_order[:pos] + label + self.parent.label_order[pos+1:]
|
||||
if (self.parent.dict_orders[label] == 'net'):
|
||||
exec ('self.parent.' + self.parent.dict_orders[label] + 'NonFormat = str(self.configpage.lineedits[self.parent.dict_orders[label]].text())')
|
||||
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)')
|
||||
if (self.parent.dict_orders[label] == 'bat'):
|
||||
self.parent.battery_device = str(self.configpage.ui.lineEdit_batdev.text())
|
||||
self.parent.ac_device = str(self.configpage.ui.lineEdit_acdev.text())
|
||||
settings.set('battery_device', self.parent.battery_device)
|
||||
settings.set('ac_device', self.parent.ac_device)
|
||||
elif (self.parent.dict_orders[label] == 'temp'):
|
||||
self.parent.tempdev = str(self.configpage.ui.comboBox_temp.currentText())
|
||||
settings.set('temp_device', self.parent.tempdev)
|
||||
elif (self.parent.dict_orders[label] == 'player'):
|
||||
self.parent.player_name = self.configpage.ui.comboBox_player.currentIndex()
|
||||
settings.set('player_name', self.parent.player_name)
|
||||
|
||||
self.parent.label_order = ''.join(self.parent.label_order.split('-'))
|
||||
settings.set('label_order', self.parent.label_order)
|
||||
labelOrder = "---------------"
|
||||
for label in self.defaults['order'].keys():
|
||||
if (self.configpage['widget'].checkboxes[self.defaults['order'][label]].checkState() > 0):
|
||||
pos = self.configpage['widget'].sliders[self.defaults['order'][label]].value() - 1
|
||||
labelOrder = labelOrder[:pos] + label + labelOrder[pos+1:]
|
||||
settings.set(self.defaults['confFormat'][self.defaults['order'][label]], str(self.configpage['widget'].lineedits[self.defaults['order'][label]].text()))
|
||||
settings.set(self.defaults['confBool'][self.defaults['order'][label]], self.configpage['widget'].checkboxes[self.defaults['order'][label]].checkState())
|
||||
labelOrder = ''.join(labelOrder.split('-'))
|
||||
settings.set('label_order', labelOrder)
|
||||
|
||||
# reinitializate
|
||||
self.parent.reinit.reinit(confAccept=True)
|
||||
self.parent.reInit()
|
||||
|
||||
|
||||
def createConfigurationInterface(self, parent):
|
||||
"""function to setup configuration window"""
|
||||
if self.debug: qDebug("[PTM] [configdef.py] [createConfigurationInterface]")
|
||||
settings = config.Config(self.parent)
|
||||
|
||||
font = QFont(str(settings.get('font_family', 'Terminus')), settings.get('font_size', 12).toInt()[0], 400, False)
|
||||
self.configpage.ui.spinBox_interval.setValue(settings.get('interval', 2000).toInt()[0])
|
||||
self.configpage.ui.fontComboBox.setCurrentFont(font)
|
||||
self.configpage.ui.spinBox_fontSize.setValue(settings.get('font_size', 12).toInt()[0])
|
||||
self.configpage.ui.kcolorcombo.setColor(QColor(str(settings.get('font_color', '#000000'))))
|
||||
self.configpage['appearance'].ui.spinBox_interval.setValue(settings.get('interval', 2000).toInt()[0])
|
||||
self.configpage['appearance'].ui.fontComboBox.setCurrentFont(font)
|
||||
self.configpage['appearance'].ui.spinBox_fontSize.setValue(settings.get('font_size', 12).toInt()[0])
|
||||
self.configpage['appearance'].ui.kcolorcombo.setColor(QColor(str(settings.get('font_color', '#000000'))))
|
||||
font = str(settings.get('font_style', 'normal'))
|
||||
if (font == 'normal'):
|
||||
self.configpage.ui.comboBox_style.setCurrentIndex(0)
|
||||
self.configpage['appearance'].ui.comboBox_style.setCurrentIndex(0)
|
||||
else:
|
||||
self.configpage.ui.comboBox_style.setCurrentIndex(1)
|
||||
self.configpage.ui.spinBox_weight.setValue(settings.get('font_weight', 400).toInt()[0])
|
||||
for label in self.parent.dict_orders.keys():
|
||||
exec ('bool = self.parent.' + self.parent.dict_orders[label] + 'Bool')
|
||||
self.configpage.checkboxes[self.parent.dict_orders[label]].setCheckState(bool)
|
||||
self.configpage['appearance'].ui.comboBox_style.setCurrentIndex(1)
|
||||
self.configpage['appearance'].ui.spinBox_weight.setValue(settings.get('font_weight', 400).toInt()[0])
|
||||
|
||||
self.configpage['advanced'].ui.checkBox_layout.setCheckState(settings.get('layout', 0).toInt()[0])
|
||||
self.configpage['advanced'].ui.checkBox_popup.setCheckState(settings.get('popup', 2).toInt()[0])
|
||||
self.configpage['advanced'].ui.checkBox_leftStretch.setCheckState(settings.get('left_stretch', 2).toInt()[0])
|
||||
self.configpage['advanced'].ui.checkBox_rightStretch.setCheckState(settings.get('right_stretch', 2).toInt()[0])
|
||||
self.configpage['advanced'].ui.lineEdit_timeFormat.setText(str(settings.get('custom_time', '$hh:$mm')))
|
||||
self.configpage['advanced'].ui.lineEdit_uptimeFormat.setText(str(settings.get('custom_uptime', '$ds,$hs,$ms')))
|
||||
index = self.configpage['advanced'].ui.comboBox_tempUnits.findText(str(settings.get('temp_units', "Celsius")))
|
||||
self.configpage['advanced'].ui.comboBox_tempUnits.setCurrentIndex(index)
|
||||
commandOut = commands.getoutput("sensors")
|
||||
for item in commandOut.split("\n\n"):
|
||||
for device in item.split("\n"):
|
||||
if (device.find('\xc2\xb0C') > -1):
|
||||
try:
|
||||
tempdev = 'lmsensors/' + item.split("\n")[0] + '/' + '_'.join(device.split(":")[0].split())
|
||||
self.configpage['advanced'].ui.comboBox_tempDevice.addItem(tempdev)
|
||||
except:
|
||||
pass
|
||||
self.configpage['advanced'].ui.listWidget_tempDevice.clear()
|
||||
for item in str(settings.get('temp_device', '')).split('@@'):
|
||||
if (len(item) > 0):
|
||||
self.configpage['advanced'].ui.listWidget_tempDevice.addItem(item)
|
||||
commandOut = commands.getoutput("mount")
|
||||
for item in commandOut.split("\n"):
|
||||
try:
|
||||
mount = item.split(' on ')[1].split(' type ')[0]
|
||||
self.configpage['advanced'].ui.comboBox_mount.addItem(mount)
|
||||
except:
|
||||
pass
|
||||
self.configpage['advanced'].ui.listWidget_mount.clear()
|
||||
for item in str(settings.get('mount', '/')).split('@@'):
|
||||
self.configpage['advanced'].ui.listWidget_mount.addItem(item)
|
||||
commandOut = commands.getoutput("find /dev -name '[hms]d[a-z]'")
|
||||
for item in commandOut.split("\n"):
|
||||
try:
|
||||
self.configpage['advanced'].ui.comboBox_hddDevice.addItem(item)
|
||||
except:
|
||||
pass
|
||||
self.configpage['advanced'].ui.listWidget_hddDevice.clear()
|
||||
for item in str(settings.get('hdd', '/dev/sda')).split('@@'):
|
||||
self.configpage['advanced'].ui.listWidget_hddDevice.addItem(item)
|
||||
self.configpage['advanced'].ui.comboBox_hddSpeedDevice.clear()
|
||||
for item in self.defaults['disk']:
|
||||
self.configpage['advanced'].ui.comboBox_hddSpeedDevice.addItem(item)
|
||||
self.configpage['advanced'].ui.listWidget_hddSpeedDevice.clear()
|
||||
for item in str(settings.get('disk', 'disk/sda_(8:0)')).split('@@'):
|
||||
self.configpage['advanced'].ui.listWidget_hddSpeedDevice.addItem(item)
|
||||
self.configpage['advanced'].ui.lineEdit_netdir.setText(str(settings.get('netdir', '/sys/class/net')))
|
||||
self.configpage['advanced'].ui.checkBox_netdev.setCheckState(settings.get('netdevBool', 0).toInt()[0])
|
||||
for item in QDir.entryList(QDir(str(settings.get('netdir', '/sys/class/net'))), QDir.Dirs | QDir.NoDotAndDotDot):
|
||||
self.configpage['advanced'].ui.comboBox_netdev.addItem(item)
|
||||
index = self.configpage['advanced'].ui.comboBox_netdev.findText(str(settings.get('custom_netdev', 'lo')))
|
||||
self.configpage['advanced'].ui.comboBox_netdev.setCurrentIndex(index)
|
||||
self.configpage['advanced'].ui.lineEdit_batdev.setText(str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity')))
|
||||
self.configpage['advanced'].ui.lineEdit_acdev.setText(str(settings.get('ac_device', '/sys/class/power_supply/AC/online')))
|
||||
self.configpage['advanced'].ui.lineEdit_acOnline.setText(str(settings.get('ac_online', '(*)')))
|
||||
self.configpage['advanced'].ui.lineEdit_acOffline.setText(str(settings.get('ac_offline', '( )')))
|
||||
|
||||
self.configpage['tooltip'].ui.spinBox_tooltipNum.setValue(settings.get('tooltip_num', 100).toInt()[0])
|
||||
self.configpage['tooltip'].ui.kcolorcombo_cpu.setColor(QColor(str(settings.get('cpu_color', '#ff0000'))))
|
||||
self.configpage['tooltip'].ui.kcolorcombo_cpuclock.setColor(QColor(str(settings.get('cpuclock_color', '#00ff00'))))
|
||||
self.configpage['tooltip'].ui.kcolorcombo_mem.setColor(QColor(str(settings.get('mem_color', '#0000ff'))))
|
||||
self.configpage['tooltip'].ui.kcolorcombo_swap.setColor(QColor(str(settings.get('swap_color', '#ffff00'))))
|
||||
self.configpage['tooltip'].ui.kcolorcombo_down.setColor(QColor(str(settings.get('down_color', '#00ffff'))))
|
||||
self.configpage['tooltip'].ui.kcolorcombo_up.setColor(QColor(str(settings.get('up_color', '#ff00ff'))))
|
||||
|
||||
deSettings = {'CUSTOM':'wget -qO- http://ifconfig.me/ip', 'GPUDEV':'auto', 'HDDDEV':'all',
|
||||
'HDDTEMPCMD':'sudo hddtemp', 'MPDADDRESS':'localhost', 'MPDPORT':'6600', 'PKGCMD':'pacman -Qu',
|
||||
'PKGNULL':'0', 'PLAYER':'amarok'}
|
||||
dataengineConfig = unicode(KGlobal.dirs().localkdedir()) + "/share/config/extsysmon.conf"
|
||||
try:
|
||||
with open(dataengineConfig, 'r') as deConfigFile:
|
||||
for line in deConfigFile:
|
||||
if ((line[0] != '#') and (line.split('=')[0] != line)):
|
||||
deSettings[line.split('=')[0]] = line.split('=')[1][:-1]
|
||||
except:
|
||||
pass
|
||||
for item in deSettings['CUSTOM'].split('@@'):
|
||||
self.configpage['dataengine'].ui.listWidget_customCommand.addItem(item)
|
||||
index = self.configpage['dataengine'].ui.comboBox_gpudev.findText(deSettings['GPUDEV'])
|
||||
self.configpage['dataengine'].ui.comboBox_gpudev.setCurrentIndex(index)
|
||||
self.configpage['dataengine'].ui.comboBox_hdddev.addItem("all")
|
||||
self.configpage['dataengine'].ui.comboBox_hdddev.addItem("disable")
|
||||
commandOut = commands.getoutput("find /dev -name '[hms]d[a-z]'")
|
||||
for item in commandOut.split("\n"):
|
||||
try:
|
||||
self.configpage['dataengine'].ui.comboBox_hdddev.addItem(item)
|
||||
except:
|
||||
pass
|
||||
index = self.configpage['dataengine'].ui.comboBox_hdddev.findText(deSettings['HDDDEV'])
|
||||
self.configpage['dataengine'].ui.comboBox_hdddev.setCurrentIndex(index)
|
||||
self.configpage['dataengine'].ui.lineEdit_hddtempCmd.setText(deSettings['HDDTEMPCMD'])
|
||||
self.configpage['dataengine'].ui.lineEdit_mpdaddress.setText(deSettings['MPDADDRESS'])
|
||||
self.configpage['dataengine'].ui.spinBox_mpdport.setValue(int(deSettings['MPDPORT']))
|
||||
self.configpage['dataengine'].ui.spinBox_mpdport.setValue(int(deSettings['MPDPORT']))
|
||||
self.configpage['dataengine'].ui.listWidget_pkgCommand.clear()
|
||||
for i in range(len(deSettings['PKGCMD'].split(','))):
|
||||
try:
|
||||
num = deSettings['PKGNULL'].split(',')[i]
|
||||
except:
|
||||
num = "0"
|
||||
self.configpage['dataengine'].ui.listWidget_pkgCommand.addItem(deSettings['PKGCMD'].split(',')[i] + ':' + num)
|
||||
index = self.configpage['dataengine'].ui.comboBox_playerSelect.findText(deSettings['PLAYER'])
|
||||
self.configpage['dataengine'].ui.comboBox_playerSelect.setCurrentIndex(index)
|
||||
|
||||
labelOrder = str(settings.get('label_order', '1345'))
|
||||
for label in self.defaults['order'].keys():
|
||||
bool = settings.get(self.defaults['confBool'][self.defaults['order'][label]],
|
||||
self.defaults['bool'][self.defaults['order'][label]]).toInt()[0]
|
||||
self.configpage['widget'].checkboxes[self.defaults['order'][label]].setCheckState(bool)
|
||||
if (bool > 0):
|
||||
self.configpage.sliders[self.parent.dict_orders[label]].setValue(self.parent.label_order.find(label)+1)
|
||||
if (self.parent.dict_orders[label] == 'net'):
|
||||
self.configpage.lineedits[self.parent.dict_orders[label]].setText(str(settings.get(self.parent.dict_orders[label] + 'NonFormat', self.parent.dict_defFormat[self.parent.dict_orders[label]])))
|
||||
else:
|
||||
self.configpage.lineedits[self.parent.dict_orders[label]].setText(str(settings.get(self.parent.dict_orders[label] + 'Format', self.parent.dict_defFormat[self.parent.dict_orders[label]])))
|
||||
if (self.parent.dict_orders[label] == 'bat'):
|
||||
self.configpage.ui.lineEdit_batdev.setText(str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity')))
|
||||
self.configpage.ui.lineEdit_acdev.setText(str(settings.get('ac_device', '/sys/class/power_supply/AC/online')))
|
||||
elif (self.parent.dict_orders[label] == 'temp'):
|
||||
self.configpage.ui.comboBox_temp.addItem(str(settings.get('temp_device', '<select device>')))
|
||||
commandOut = commands.getoutput("sensors")
|
||||
for adapter in commandOut.split("\n\n"):
|
||||
for device in adapter.split("\n"):
|
||||
if (device.find('\xc2\xb0C') > -1):
|
||||
try:
|
||||
tempdev = 'lmsensors/' + adapter.split('\n')[0] + '/' + '_'.join(device.split(":")[0].split())
|
||||
self.configpage.ui.comboBox_temp.addItem(tempdev)
|
||||
except:
|
||||
pass
|
||||
elif (self.parent.dict_orders[label] == 'player'):
|
||||
self.configpage.ui.comboBox_player.setCurrentIndex(int(settings.get('player_name', 0)))
|
||||
self.configpage['widget'].sliders[self.defaults['order'][label]].setValue(labelOrder.find(label) + 1)
|
||||
self.configpage['widget'].lineedits[self.defaults['order'][label]].setText(str(settings.get(self.defaults['confFormat'][self.defaults['order'][label]],
|
||||
self.defaults['format'][self.defaults['order'][label]])))
|
||||
|
||||
# add config page
|
||||
page = parent.addPage(self.configpage, i18n(self.parent.name()))
|
||||
page.setIcon(KIcon(self.parent.icon()))
|
||||
page = {}
|
||||
page['widget'] = parent.addPage(self.configpage['widget'], i18n("Widget"))
|
||||
page['widget'].setIcon(KIcon("utilities-system-monitor"))
|
||||
page['advanced'] = parent.addPage(self.configpage['advanced'], i18n("Advanced"))
|
||||
page['advanced'].setIcon(KIcon("system-run"))
|
||||
page['tooltip'] = parent.addPage(self.configpage['tooltip'], i18n("Tooltip"))
|
||||
page['tooltip'].setIcon(KIcon("preferences-desktop-color"))
|
||||
page['appearance'] = parent.addPage(self.configpage['appearance'], i18n("Appearance"))
|
||||
page['appearance'].setIcon(KIcon("preferences-desktop-theme"))
|
||||
page['dataengine'] = parent.addPage(self.configpage['dataengine'], i18n("DataEngine"))
|
||||
page['dataengine'].setIcon(KIcon("utilities-system-monitor"))
|
||||
|
||||
parent.okClicked.connect(self.configAccepted)
|
||||
QObject.connect(parent, SIGNAL("okClicked()"), self.configAccepted)
|
||||
|
@ -20,7 +20,6 @@
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
from PyKDE4.plasma import Plasma
|
||||
from PyKDE4 import plasmascript
|
||||
|
||||
import datetime
|
||||
|
||||
@ -29,315 +28,323 @@ timeLetters = ['dddd', 'ddd', 'dd', 'd', \
|
||||
'hh', 'h', 'mm', 'm', 'ss', 's']
|
||||
|
||||
|
||||
|
||||
class DataEngine:
|
||||
def __init__(self, parent):
|
||||
"""class definition"""
|
||||
# debug
|
||||
environment = QProcessEnvironment.systemEnvironment()
|
||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes")):
|
||||
self.debug = True
|
||||
else:
|
||||
self.debug = False
|
||||
# main
|
||||
self.parent = parent
|
||||
|
||||
|
||||
def connectToEngine(self):
|
||||
def connectToEngine(self, bools=None, dataEngines=None, interval=1000, names=None):
|
||||
"""function to initializate engine"""
|
||||
self.parent.systemmonitor = self.parent.dataEngine("systemmonitor")
|
||||
self.parent.extsysmon = self.parent.dataEngine("ext-sysmon")
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [connectToEngine]")
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [connectToEngine] : Run function with bools '%s'" %(bools))
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [connectToEngine] : Run function with dataengines '%s'" %(dataEngines))
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [connectToEngine] : Run function with names '%s'" %(names))
|
||||
if (bools['cpu'] > 0):
|
||||
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 + "/freespace", 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):
|
||||
self.parent.systemmonitor.connectSource("system/uptime", self.parent, self.parent.interval)
|
||||
if (self.parent.cpuBool > 0):
|
||||
self.parent.systemmonitor.connectSource("cpu/system/TotalLoad", self.parent, self.parent.interval)
|
||||
if (self.parent.cpuFormat.split('$ccpu')[0] != self.parent.cpuFormat):
|
||||
for core in range(self.parent.numCores):
|
||||
self.parent.systemmonitor.connectSource("cpu/cpu"+str(core)+"/TotalLoad", self.parent, self.parent.interval)
|
||||
if (self.parent.cpuclockBool > 0):
|
||||
self.parent.systemmonitor.connectSource("cpu/system/AverageClock", self.parent, self.parent.interval)
|
||||
if (self.parent.cpuclockFormat.split('$ccpucl')[0] != self.parent.cpuclockFormat):
|
||||
for core in range(self.parent.numCores):
|
||||
self.parent.systemmonitor.connectSource("cpu/cpu"+str(core)+"/clock", self.parent, self.parent.interval)
|
||||
if (self.parent.tempBool > 0):
|
||||
self.parent.systemmonitor.connectSource(self.parent.tempdev, self.parent, self.parent.interval)
|
||||
if (self.parent.gpuBool > 0):
|
||||
self.parent.extsysmon.connectSource("gpu", self.parent, self.parent.interval)
|
||||
if (self.parent.gputempBool > 0):
|
||||
self.parent.extsysmon.connectSource("gputemp", self.parent, self.parent.interval)
|
||||
if (self.parent.memBool > 0):
|
||||
if (self.parent.memInMb):
|
||||
self.parent.systemmonitor.connectSource("mem/physical/application", self.parent, self.parent.interval)
|
||||
else:
|
||||
self.parent.systemmonitor.connectSource("mem/physical/free", self.parent, int(self.parent.interval*0.5))
|
||||
self.parent.systemmonitor.connectSource("mem/physical/used", self.parent, int(self.parent.interval*0.5))
|
||||
self.parent.systemmonitor.connectSource("mem/physical/application", self.parent, int(self.parent.interval*0.5))
|
||||
if (self.parent.swapBool > 0):
|
||||
if (self.parent.swapInMb):
|
||||
self.parent.systemmonitor.connectSource("mem/swap/used", self.parent, self.parent.interval)
|
||||
else:
|
||||
self.parent.systemmonitor.connectSource("mem/swap/free", self.parent, int(self.parent.interval*0.5))
|
||||
self.parent.systemmonitor.connectSource("mem/swap/used", self.parent, int(self.parent.interval*0.5))
|
||||
if (self.parent.hddBool > 0):
|
||||
for mount in self.parent.mountPoints:
|
||||
self.parent.systemmonitor.connectSource("partitions" + mount + "/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)
|
||||
|
||||
def dataUpdated(self, sourceName, data):
|
||||
def dataUpdated(self, sourceName, data, ptm):
|
||||
"""function to update data"""
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [dataUpdated]")
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [dataUpdated] : Run function with source '%s'" %(sourceName))
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [dataUpdated] : Run function with data '%s'" %(data))
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [dataUpdated] : Run function with settings '%s'" %(ptm))
|
||||
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:
|
||||
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] == "freespace"):
|
||||
updatedData['name'] = "hddfreemb"
|
||||
updatedData['type'] = '/' + '/'.join(sourceName.split('/')[1:-1])
|
||||
value = data[QString(u'value')].toFloat()[0]
|
||||
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'] = {}
|
||||
updatedData['value']['album'] = str(data[QString(u'album')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['artist'] = str(data[QString(u'artist')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['progress'] = str(data[QString(u'progress')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['time'] = str(data[QString(u'duration')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['title'] = str(data[QString(u'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)))
|
||||
days = value.days
|
||||
hours = int(value.seconds / 60 / 60)
|
||||
minutes = int(value.seconds / 60 % 60)
|
||||
line = self.parent.uptimeFormat
|
||||
if (line.split('$uptime')[0] != line):
|
||||
uptimeText = "%3id%2ih%2im" % (days, hours, minutes)
|
||||
line = line.split('$uptime')[0] + uptimeText + line.split('$uptime')[1]
|
||||
elif (line.split('$custom')[0] != line):
|
||||
line = ''.join(line.split('$custom'))
|
||||
if (line.split('$ds')[0] != line):
|
||||
line = "%s%3i%s" % (line.split('$ds')[0], days, line.split('$ds')[1])
|
||||
if (line.split('$hs')[0] != line):
|
||||
line = "%s%2i%s" % (line.split('$hs')[0], hours, line.split('$hs')[1])
|
||||
if (line.split('$ms')[0] != line):
|
||||
line = "%s%2i%s" % (line.split('$ms')[0], minutes, line.split('$ms')[1])
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_uptime.setText(text)
|
||||
elif (sourceName == "cpu/system/TotalLoad"):
|
||||
value = str(round(float(data[QString(u'value')]), 1))
|
||||
cpuText = "%5s" % (value)
|
||||
if (self.parent.cpuFormat.split('$ccpu')[0] != self.parent.cpuFormat):
|
||||
if (self.parent.cpuFormat.split('$ccpu')[0].split('$cpu')[0] != self.parent.cpuFormat.split('$ccpu')[0]):
|
||||
line = self.parent.cpuFormat.split('$ccpu')[0].split('$cpu')[0] + cpuText + self.parent.cpuFormat.split('$ccpu')[0].split('$cpu')[1]
|
||||
else:
|
||||
line = self.parent.cpuFormat.split('$ccpu')[0]
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_cpu.setText(text)
|
||||
if (self.parent.cpuFormat.split('$ccpu')[1].split('$cpu')[0] != self.parent.cpuFormat.split('$ccpu')[1]):
|
||||
line = self.parent.cpuFormat.split('$ccpu')[1].split('$cpu')[0] + cpuText + self.parent.cpuFormat.split('$ccpu')[1].split('$cpu')[1]
|
||||
else:
|
||||
line = self.parent.cpuFormat.split('$ccpu')[1]
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_cpu1.setText(text)
|
||||
else:
|
||||
if (self.parent.cpuFormat.split('$cpu')[0] != self.parent.cpuFormat):
|
||||
line = self.parent.cpuFormat.split('$cpu')[0] + cpuText + self.parent.cpuFormat.split('$cpu')[1]
|
||||
else:
|
||||
line = self.parent.cpuFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_cpu.setText(text)
|
||||
elif ((str(sourceName)[:7] == "cpu/cpu") and (str(sourceName).split('/')[2] == "TotalLoad")):
|
||||
value = str(round(float(data[QString(u'value')]), 1))
|
||||
cpuText = "%5s" % (value)
|
||||
text = self.parent.formatLine.split('$LINE')[0] + cpuText + self.parent.formatLine.split('$LINE')[1]
|
||||
exec ('self.parent.label_coreCpu' + str(sourceName)[7] + '.setText(text)')
|
||||
elif (sourceName == "cpu/system/AverageClock"):
|
||||
value = str(data[QString(u'value')]).split('.')[0]
|
||||
cpuclockText = "%4s" % (value)
|
||||
if (self.parent.cpuclockFormat.split('$ccpucl')[0] != self.parent.cpuclockFormat):
|
||||
if (self.parent.cpuclockFormat.split('$ccpucl')[0].split('$cpucl')[0] != self.parent.cpuclockFormat.split('$ccpucl')[0]):
|
||||
line = self.parent.cpuclockFormat.split('$ccpucl')[0].split('$cpucl')[0] + cpuclockText + self.parent.cpuclockFormat.split('$ccpucl')[0].split('$cpucl')[1]
|
||||
else:
|
||||
line = self.parent.cpuclockFormat.split('$ccpucl')[0]
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_cpuclock.setText(text)
|
||||
if (self.parent.cpuclockFormat.split('$ccpucl')[1].split('$cpucl')[0] != self.parent.cpuclockFormat.split('$ccpucl')[1]):
|
||||
line = self.parent.cpuclockFormat.split('$ccpucl')[1].split('$cpucl')[0] + cpuclockText + self.parent.cpuclockFormat.split('$ccpucl')[1].split('$cpucl')[1]
|
||||
else:
|
||||
line = self.parent.cpuclockFormat.split('$ccpucl')[1]
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_cpuclock1.setText(text)
|
||||
else:
|
||||
if (self.parent.cpuclockFormat.split('$cpucl')[0] != self.parent.cpuclockFormat):
|
||||
line = self.parent.cpuclockFormat.split('$cpucl')[0] + cpuclockText + self.parent.cpuclockFormat.split('$cpucl')[1]
|
||||
else:
|
||||
line = self.parent.cpuclockFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_cpuclock.setText(text)
|
||||
elif ((str(sourceName)[:7] == "cpu/cpu") and (str(sourceName).split('/')[2] == "clock")):
|
||||
value = str(data[QString(u'value')]).split('.')[0]
|
||||
cpuclockText = "%4s" % (value)
|
||||
text = self.parent.formatLine.split('$LINE')[0] + cpuclockText + self.parent.formatLine.split('$LINE')[1]
|
||||
exec ('self.parent.label_coreCpuclock' + str(sourceName)[7] + '.setText(text)')
|
||||
elif (sourceName == "network/interfaces/"+self.parent.netdev+"/transmitter/data"):
|
||||
value = str(data[QString(u'value')]).split('.')[0]
|
||||
up_speed = "%4s" % (value)
|
||||
if (self.parent.netFormat.split('$net')[0] != self.parent.netFormat):
|
||||
line = '/' + up_speed + self.parent.netFormat.split('$net')[1]
|
||||
else:
|
||||
line = ''
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_netUp.setText(text)
|
||||
elif (sourceName == "network/interfaces/"+self.parent.netdev+"/receiver/data"):
|
||||
value = str(data[QString(u'value')]).split('.')[0]
|
||||
down_speed = "%4s" % (value)
|
||||
if (self.parent.netFormat.split('$net')[0] != self.parent.netFormat):
|
||||
line = self.parent.netFormat.split('$net')[0] + down_speed
|
||||
else:
|
||||
line = self.parent.netFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_netDown.setText(text)
|
||||
# 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 (sourceName == self.parent.tempdev):
|
||||
value = str(round(float(data[QString(u'value')]), 1))
|
||||
tempText = "%4s" % (value)
|
||||
if (self.parent.tempFormat.split('$temp')[0] != self.parent.tempFormat):
|
||||
line = self.parent.tempFormat.split('$temp')[0] + tempText + self.parent.tempFormat.split('$temp')[1]
|
||||
else:
|
||||
line = self.parent.tempFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_temp.setText(text)
|
||||
elif (str(sourceName).split('/')[0] == "partitions"):
|
||||
value = str(round(float(data[QString(u'value')]), 1))
|
||||
hddText = "%5s" % (value)
|
||||
text = self.parent.formatLine.split('$LINE')[0] + hddText + self.parent.formatLine.split('$LINE')[1]
|
||||
exec ('self.parent.label_hdd_' + ''.join(str(sourceName).split('/')[1:-1]) + '.setText(text)')
|
||||
elif (sourceName == "mem/physical/free"):
|
||||
self.parent.mem_free = float(data[QString(u'value')])
|
||||
elif (sourceName == "mem/physical/used"):
|
||||
self.parent.mem_uf = float(data[QString(u'value')])
|
||||
elif (sourceName == "mem/physical/application"):
|
||||
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)
|
||||
else:
|
||||
self.parent.mem_used = float(data[QString(u'value')])
|
||||
elif (sourceName == "mem/swap/free"):
|
||||
self.parent.swap_free = float(data[QString(u'value')])
|
||||
elif (sourceName == "mem/swap/used"):
|
||||
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)
|
||||
else:
|
||||
self.parent.swap_used = float(data[QString(u'value')])
|
||||
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"):
|
||||
value = str(data[QString(self.parent.hddtempFormat.split('@@')[1])])
|
||||
hddtempText = "%4s" % (value)
|
||||
if (self.parent.hddtempFormat.split('@@')[0] != self.parent.hddtempFormat):
|
||||
line = self.parent.hddtempFormat.split('@@')[0] + hddtempText + self.parent.hddtempFormat.split('@@')[2]
|
||||
else:
|
||||
line = self.parent.hddtempFormat
|
||||
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('$snsntime')[0] != self.parent.timeFormat):
|
||||
rawDate = str(data[QString(u'DateTime')].toString(Qt.TextDate).toUtf8())
|
||||
value = rawDate.split()[0] + " " + rawDate.split()[2] + " " + \
|
||||
rawDate.split()[1] + " " + ':'.join(rawDate.split()[3].split(':')[0:2])
|
||||
line = self.parent.timeFormat.split('$snsntime')[0] + value.decode("utf-8") + self.parent.timeFormat.split('$snsntime')[1]
|
||||
elif (self.parent.timeFormat.split('$nsnstime')[0] != self.parent.timeFormat):
|
||||
rawDate = str(data[QString(u'DateTime')].toString(Qt.TextDate).toUtf8())
|
||||
value = ':'.join(rawDate.split()[3].split(':')[0:2]) + " " + rawDate.split()[0] + " " + \
|
||||
rawDate.split()[2] + " " + rawDate.split()[1]
|
||||
line = self.parent.timeFormat.split('$nsnstime')[0] + value.decode("utf-8") + self.parent.timeFormat.split('$nsnstime')[1]
|
||||
elif (self.parent.timeFormat.split('$custom')[0] != self.parent.timeFormat):
|
||||
rawDate = data[QString(u'DateTime')]
|
||||
line = ''.join(self.parent.timeFormat.split('$custom'))
|
||||
for letters in timeLetters:
|
||||
if (line.split('$'+letters)[0] != line):
|
||||
line = line.split('$'+letters)[0] + \
|
||||
str(data[QString(u'DateTime')].toString(letters).toUtf8()).decode("utf-8") + \
|
||||
line.split('$'+letters)[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)
|
||||
|
||||
self.parent.update()
|
||||
if (formats['uptime'].split('$uptime')[0] != formats['uptime']):
|
||||
updatedData['value'] = "%3id%2ih%2im" % (days, hours, minutes)
|
||||
elif (formats['uptime'].split('$custom')[0] != formats['uptime']):
|
||||
updatedData['value'] = adv['customUptime']
|
||||
if (updatedData['value'].split('$dd')[0] != updatedData['value']):
|
||||
updatedData['value'] = "%s%03i%s" % (updatedData['value'].split('$dd')[0], days, updatedData['value'].split('$dd')[1])
|
||||
if (updatedData['value'].split('$d')[0] != updatedData['value']):
|
||||
updatedData['value'] = "%s%i%s" % (updatedData['value'].split('$d')[0], days, updatedData['value'].split('$d')[1])
|
||||
if (updatedData['value'].split('$hh')[0] != updatedData['value']):
|
||||
updatedData['value'] = "%s%02i%s" % (updatedData['value'].split('$hh')[0], hours, updatedData['value'].split('$hh')[1])
|
||||
if (updatedData['value'].split('$h')[0] != updatedData['value']):
|
||||
updatedData['value'] = "%s%i%s" % (updatedData['value'].split('$h')[0], hours, updatedData['value'].split('$h')[1])
|
||||
if (updatedData['value'].split('$mm')[0] != updatedData['value']):
|
||||
updatedData['value'] = "%s%02i%s" % (updatedData['value'].split('$mm')[0], minutes, updatedData['value'].split('$mm')[1])
|
||||
if (updatedData['value'].split('$m')[0] != updatedData['value']):
|
||||
updatedData['value'] = "%s%i%s" % (updatedData['value'].split('$m')[0], minutes, updatedData['value'].split('$m')[1])
|
||||
except:
|
||||
pass
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [dataUpdated] : Returns '%s'" %(updatedData))
|
||||
return updatedData
|
||||
|
||||
|
||||
def disconnectFromSource(self, dataEngines=None, keys=None, name=None):
|
||||
"""function to disconnect from sources"""
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [disconnectFromSource]")
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [disconnectFromSource] : Run function with dataengines '%s'" %(dataEngines))
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [disconnectFromSource] : Run function with keys '%s'" %(keys))
|
||||
if self.debug: qDebug("[PTM] [dataengine.py] [disconnectFromSource] : Run function with name '%s'" %(name))
|
||||
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)
|
||||
|
94
sources/ptm/contents/code/deconfig.py
Normal file
@ -0,0 +1,94 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
############################################################################
|
||||
# This file is part of pytextmonitor #
|
||||
# #
|
||||
# pytextmonitor is free software: you can redistribute it and/or #
|
||||
# modify it under the terms of the GNU General Public License as #
|
||||
# published by the Free Software Foundation, either version 3 of the #
|
||||
# License, or (at your option) any later version. #
|
||||
# #
|
||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
||||
############################################################################
|
||||
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
from PyKDE4.plasma import *
|
||||
from PyQt4 import uic
|
||||
|
||||
|
||||
|
||||
class DEConfigWindow(QWidget):
|
||||
def __init__(self, parent):
|
||||
"""settings window definition"""
|
||||
# debug
|
||||
environment = QProcessEnvironment.systemEnvironment()
|
||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes")):
|
||||
self.debug = True
|
||||
else:
|
||||
self.debug = False
|
||||
# main
|
||||
QWidget.__init__(self)
|
||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'deconfig.ui'), self)
|
||||
self.parent = parent
|
||||
|
||||
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_customCommand, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_customCommand.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)
|
||||
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
"""delete events"""
|
||||
if self.debug: qDebug("[PTM] [deconfig.py] [keyPressEvent]")
|
||||
if self.debug: qDebug("[PTM] [deconfig.py] [keyPressEvent] : Run function with event '%s'" %(event.key()))
|
||||
if (event.key() == Qt.Key_Delete):
|
||||
if (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 addCustomCommand(self):
|
||||
"""function to add custom command"""
|
||||
if self.debug: qDebug("[PTM] [deconfig.py] [addCustomCommand]")
|
||||
if self.debug: qDebug("[PTM] [deconfig.py] [addCustomCommand] : Cmd '%s'" %(self.ui.lineEdit_customCommand.text()))
|
||||
self.ui.listWidget_customCommand.clearSelection()
|
||||
self.ui.listWidget_customCommand.addItem(self.ui.lineEdit_customCommand.text())
|
||||
|
||||
|
||||
def addPkgCommand(self):
|
||||
"""function to add package manager command"""
|
||||
if self.debug: qDebug("[PTM] [deconfig.py] [addPkgCommand]")
|
||||
if self.debug: qDebug("[PTM] [deconfig.py] [addPkgCommand] : Cmd '%s'" %(self.ui.comboBox_pkgCommand.currentText()))
|
||||
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.debug: qDebug("[PTM] [deconfig.py] [updatePkgNullValue]")
|
||||
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)
|
@ -24,203 +24,769 @@ from PyKDE4.kdeui import *
|
||||
from PyKDE4.kio import *
|
||||
from PyKDE4 import plasmascript
|
||||
from PyKDE4.plasma import Plasma
|
||||
import commands, os, shutil, time
|
||||
import commands, os
|
||||
|
||||
import advanced
|
||||
import appearance
|
||||
import configdef
|
||||
import configwindow
|
||||
import dataengine
|
||||
import deconfig
|
||||
import ptmnotify
|
||||
import reinit
|
||||
from util import *
|
||||
import tooltip
|
||||
import tooltipconfig
|
||||
import widget
|
||||
|
||||
|
||||
|
||||
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, enablePopup):
|
||||
"""class definition"""
|
||||
Plasma.Label.__init__(self, applet)
|
||||
self.enablePopup = enablePopup
|
||||
self.name = name
|
||||
self.notify = ptmnotify.PTMNotify(self)
|
||||
|
||||
|
||||
def mousePressEvent(self, event):
|
||||
"""mouse click event"""
|
||||
if (self.enablePopup > 0):
|
||||
if (event.button() == Qt.LeftButton):
|
||||
self.notify.init(self.name)
|
||||
|
||||
|
||||
|
||||
class pyTextWidget(plasmascript.Applet):
|
||||
def __init__(self, parent, args=None):
|
||||
"""widget definition"""
|
||||
# debug
|
||||
environment = QProcessEnvironment.systemEnvironment()
|
||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes")):
|
||||
self.debug = True
|
||||
else:
|
||||
self.debug = False
|
||||
# main
|
||||
plasmascript.Applet.__init__(self, parent)
|
||||
|
||||
|
||||
# initialization
|
||||
def init(self):
|
||||
"""function to initializate widget"""
|
||||
self._name = str(self.package().metadata().pluginName())
|
||||
self.initTooltip()
|
||||
self.layout = QGraphicsLinearLayout(Qt.Horizontal, self.applet)
|
||||
if self.debug: qDebug("[PTM] [main.py] [init]")
|
||||
self.setupVar()
|
||||
|
||||
self.dataengine = dataengine.DataEngine(self)
|
||||
self.reinit = reinit.Reinit(self)
|
||||
self.reinit = reinit.Reinit(self, self.ptm['defaults'])
|
||||
self.tooltipAgent = tooltip.Tooltip(self)
|
||||
|
||||
self.timer = QTimer()
|
||||
QObject.connect(self.timer, SIGNAL("timeout()"), self.updateLabel)
|
||||
QObject.connect(self.timer, SIGNAL("timeout()"), self.startPolling)
|
||||
|
||||
self.setupVar()
|
||||
self.reinit.reinit(confAccept=False)
|
||||
self.initTooltip()
|
||||
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)
|
||||
# Create notifyrc file if required
|
||||
|
||||
# actions
|
||||
self.createActions()
|
||||
|
||||
|
||||
# context menu
|
||||
def createActions(self):
|
||||
"""function to create actions"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [createActions]")
|
||||
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)
|
||||
self.ptmActions['update'] = QAction(i18n("Update text"), self)
|
||||
QObject.connect(self.ptmActions['update'], SIGNAL("triggered(bool)"),
|
||||
self.ptm['dataengine']['ext'], SLOT("updateAllSources()"))
|
||||
QObject.connect(self.ptmActions['update'], SIGNAL("triggered(bool)"),
|
||||
self.ptm['dataengine']['system'], SLOT("updateAllSources()"))
|
||||
QObject.connect(self.ptmActions['update'], SIGNAL("triggered(bool)"),
|
||||
self.ptm['dataengine']['time'], SLOT("updateAllSources()"))
|
||||
QObject.connect(self.ptmActions['update'], SIGNAL("triggered(bool)"), self.updateNetdev)
|
||||
|
||||
|
||||
def contextualActions(self):
|
||||
"""function to create context menu"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [contextualActions]")
|
||||
contextMenu = []
|
||||
contextMenu.append(self.ptmActions['ksysguard'])
|
||||
contextMenu.append(self.ptmActions['readme'])
|
||||
contextMenu.append(self.ptmActions['update'])
|
||||
return contextMenu
|
||||
|
||||
|
||||
def runKsysguard(self, event):
|
||||
"""function to run ksysguard"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [runKsysguard]")
|
||||
if self.debug: qDebug("[PTM] [main.py] [runKsysguard] : Run cmd " + "'ksysguard &'")
|
||||
os.system("ksysguard &")
|
||||
|
||||
|
||||
def showReadme(self):
|
||||
"""function to show readme file"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [showReadme]")
|
||||
kdehome = unicode(KGlobal.dirs().localkdedir())
|
||||
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"))):
|
||||
self.createNotifyrc(kdehome)
|
||||
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 = str(QLocale.system().name())
|
||||
if (os.path.exists(dirPath + locale + ".html")):
|
||||
filePath = dirPath + locale + ".html"
|
||||
else:
|
||||
locale = locale.split('_')[0]
|
||||
if (os.path.exists(dirPath + locale + ".html")):
|
||||
filePath = dirPath + locale + ".html"
|
||||
elif (os.path.exists(dirPath + "en.html")):
|
||||
filePath = dirPath + "en.html"
|
||||
else:
|
||||
return
|
||||
if self.debug: qDebug("[PTM] [main.py] [showReadme] : Run cmd " + "'kioclient exec " + str(filePath) + " &'")
|
||||
os.system("kioclient exec " + str(filePath) + " &")
|
||||
|
||||
|
||||
# internal functions
|
||||
def addDiskDevice(self, sourceName):
|
||||
if self.debug: qDebug("[PTM] [main.py] [addDiskDevice]")
|
||||
diskRegexp = QRegExp("disk/(?:md|sd|hd)[a-z|0-9]_.*/Rate/(?:rblk)")
|
||||
if (diskRegexp.indexIn(sourceName) > -1):
|
||||
if self.debug: qDebug("[PTM] [main.py] [addDiskDevice] : Add device '%s'" %(str(sourceName).split('/')[1]))
|
||||
self.ptm['defaults']['disk'].append('/'.join(str(sourceName).split('/')[0:2]))
|
||||
|
||||
|
||||
def createConfigurationInterface(self, parent):
|
||||
"""function to setup configuration window"""
|
||||
self.configpage = configwindow.ConfigWindow(self)
|
||||
self.configdef = configdef.ConfigDefinition(self, self.configpage)
|
||||
self.configdef.createConfigurationInterface(parent)
|
||||
if self.debug: qDebug("[PTM] [main.py] [createConfigurationInterface]")
|
||||
configpage = {}
|
||||
configpage['advanced'] = advanced.AdvancedWindow(self)
|
||||
configpage['appearance'] = appearance.AppearanceWindow(self)
|
||||
configpage['dataengine'] = deconfig.DEConfigWindow(self)
|
||||
configpage['tooltip'] = tooltipconfig.TooltipWindow(self)
|
||||
configpage['widget'] = widget.WidgetWindow(self)
|
||||
|
||||
|
||||
def createNotifyrc(self, kdehome):
|
||||
"""function to create *.notifyrc"""
|
||||
if (not os.path.isdir(kdehome + "/share/apps/plasma_applet_pytextmonitor")):
|
||||
os.mkdir(kdehome + "/share/apps/plasma_applet_pytextmonitor")
|
||||
shutil.copy(kdehome + "/share/apps/plasma/plasmoids/py-text-monitor/contents/code/plasma_applet_pytextmonitor.notifyrc",
|
||||
kdehome + "/share/apps/plasma_applet_pytextmonitor/")
|
||||
self.confdef = configdef.ConfigDefinition(self, configpage, self.ptm['defaults'])
|
||||
self.confdef.createConfigurationInterface(parent)
|
||||
|
||||
|
||||
def initTooltip(self):
|
||||
"""function to create tooltip"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [initTooltip]")
|
||||
self.tooltip = Plasma.ToolTipContent()
|
||||
self.tooltip.setMainText("PyTextMonitor")
|
||||
self.tooltip.setSubText('')
|
||||
Plasma.ToolTipManager.self().registerWidget(self.applet)
|
||||
# graphical tooltip
|
||||
self.tooltipScene = QGraphicsScene()
|
||||
self.tooltipView = QGraphicsView(self.tooltipScene)
|
||||
self.tooltipView.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
||||
self.tooltipView.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
||||
# show tooltip
|
||||
#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"
|
||||
try:
|
||||
interfaces = []
|
||||
for line in commands.getoutput("ifconfig -a -s").split("\n"):
|
||||
if ((line.split()[0] != 'Iface') and (line.split()[0] != 'lo')):
|
||||
interfaces.append(line.split()[0])
|
||||
|
||||
for device in interfaces:
|
||||
if (commands.getoutput("ifconfig " + device + " | grep 'inet '") != ''):
|
||||
netdev = device
|
||||
break
|
||||
except:
|
||||
pass
|
||||
return netdev
|
||||
Plasma.ToolTipManager.self().setContent(self.applet, self.tooltip)
|
||||
|
||||
|
||||
def setupVar(self):
|
||||
"""function to setup variables"""
|
||||
self.netdev = ''
|
||||
# setup number of cores
|
||||
commandOut = commands.getoutput("grep -c '^processor' /proc/cpuinfo")
|
||||
self.numCores = int(commandOut)
|
||||
self.tempdev = "tempdevice"
|
||||
if self.debug: qDebug("[PTM] [main.py] [setupVar]")
|
||||
# variables
|
||||
self.ptm = {}
|
||||
# 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'] = {}
|
||||
# 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"))
|
||||
if self.debug: qDebug("[PTM] [main.py] [setupVar] : Number of cores '%s'" %(numCores))
|
||||
for i in range(numCores):
|
||||
self.ptm['values']['cpu'][i] = 0.0
|
||||
self.ptm['values']['cpuclock'][i] = 0.0
|
||||
self.ptm['values']['disk-r'] = {}
|
||||
self.ptm['values']['disk-w'] = {}
|
||||
self.ptm['values']['hdd'] = {}
|
||||
self.ptm['values']['hddfreemb'] = {}
|
||||
self.ptm['values']['hddmb'] = {}
|
||||
self.ptm['values']['hddtemp'] = {}
|
||||
self.ptm['values']['mem'] = {'app':0.0, 'used':0.0, 'free':1.0}
|
||||
self.ptm['values']['net'] = {"up":0.0, "down":0.0}
|
||||
self.ptm['values']['swap'] = {'used':0.0, 'free':1.0}
|
||||
self.ptm['values']['temp'] = {}
|
||||
# variables
|
||||
self.ptm['vars'] = {}
|
||||
self.ptm['vars']['adv'] = {}
|
||||
self.ptm['vars']['app'] = {}
|
||||
self.ptm['vars']['bools'] = {}
|
||||
self.ptm['vars']['formats'] = {}
|
||||
self.ptm['vars']['tooltip'] = {}
|
||||
|
||||
# create dictionaries
|
||||
self.dict_orders = {'6':'bat', '1':'cpu', '7':'cpuclock', '9':'gpu', 'a':'gputemp',
|
||||
'b':'hdd', 'c':'hddtemp', '3':'mem', '5':'net', '4':'swap', '2':'temp', '8':'uptime',
|
||||
'd':'player', 'e':'time'}
|
||||
self.dict_defFormat = {'bat':'[bat: $bat%$ac]', 'cpu':'[cpu: $cpu%]',
|
||||
'cpuclock':'[mhz: $cpucl]', 'gpu':'[gpu: $gpu%]',
|
||||
'gputemp':'[gpu temp: $gputemp°C]', 'hdd':'[hdd: @@/@@%]',
|
||||
'hddtemp':'[hdd temp: @@/dev/sda@@°C]', 'mem':'[mem: $mem%]',
|
||||
'net':'[$netdev: $netKB/s]', 'swap':'[swap: $swap%]',
|
||||
'temp':'[temp: $temp°C]', 'uptime':'[uptime: $uptime]',
|
||||
'player':'[$artist - $title]', 'time':'[$time]'}
|
||||
|
||||
def showConfigurationInterface(self):
|
||||
"""function to show configuration window"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [showConfigurationInterface]")
|
||||
plasmascript.Applet.showConfigurationInterface(self)
|
||||
|
||||
|
||||
def startPolling(self):
|
||||
"""function to update"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [startPolling]")
|
||||
try:
|
||||
self.timer.start()
|
||||
self.updateLabel()
|
||||
self.tooltip.setSubText('')
|
||||
if self.debug: qDebug("[PTM] [main.py] [startPolling] : Update without errors")
|
||||
except Exception as strerror:
|
||||
self.tooltip.setSubText(str(strerror))
|
||||
self.label_error = Plasma.Label(self.applet)
|
||||
self.label_error.setText('<font color="red">ERROR</font>')
|
||||
self.layout.addItem(self.label_error)
|
||||
if self.debug: qDebug("[PTM] [main.py] [startPolling] : There is some errors '%s'" %(str(strerror)))
|
||||
return
|
||||
|
||||
|
||||
def updateLabel(self):
|
||||
"""function to update label"""
|
||||
if ((self.memBool > 0) and (self.memInMb == False)):
|
||||
self.memText()
|
||||
if ((self.swapBool > 0) and (self.swapInMb == False)):
|
||||
self.swapText()
|
||||
if (self.batBool > 0):
|
||||
if self.debug: qDebug("[PTM] [main.py] [updateLabel]")
|
||||
if (self.ptm['vars']['bools']['bat'] > 0):
|
||||
self.batText()
|
||||
if (self.ptm['vars']['bools']['cpu'] > 0):
|
||||
self.cpuText()
|
||||
if (self.ptm['vars']['bools']['cpuclock'] > 0):
|
||||
self.cpuclockText()
|
||||
if (self.ptm['vars']['bools']['disk'] > 0):
|
||||
self.diskText()
|
||||
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()
|
||||
if (self.ptm['vars']['bools']['net'] > 0):
|
||||
self.netText()
|
||||
if (self.ptm['vars']['bools']['swap'] > 0):
|
||||
self.swapText()
|
||||
if (self.ptm['vars']['bools']['temp'] > 0):
|
||||
self.tempText()
|
||||
self.updateTooltip()
|
||||
|
||||
|
||||
def updateNetdev(self):
|
||||
"""function to update netdev"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [updateNetdev]")
|
||||
self.ptm['names']['net'] = self.setNetdev()
|
||||
|
||||
|
||||
def updateTooltip(self):
|
||||
"""function to update tooltip"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [updateTooltip]")
|
||||
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"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [dataUpdated]")
|
||||
if self.debug: qDebug("[PTM] [main.py] [dataUpdated] : Run function with source '%s'" %(sourceName))
|
||||
if self.debug: qDebug("[PTM] [main.py] [dataUpdated] : Run function with data '%s'" %(data))
|
||||
updatedData = self.dataengine.dataUpdated(str(sourceName), data, self.ptm)
|
||||
if self.debug: qDebug("[PTM] [main.py] [dataUpdated] : Received data '%s'" %(updatedData))
|
||||
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):
|
||||
"""function to set battery text"""
|
||||
line = self.batFormat
|
||||
if self.debug: qDebug("[PTM] [main.py] [batText]")
|
||||
line = self.ptm['vars']['formats']['bat']
|
||||
if (line.split('$bat')[0] != line):
|
||||
try:
|
||||
with open (self.battery_device, 'r') as bat_file:
|
||||
bat = bat_file.readline().split('\n')[0]
|
||||
with open (self.ptm['vars']['adv']['batDev'], 'r') as batFile:
|
||||
bat = batFile.readline()[:-1]
|
||||
except:
|
||||
bat = 'off'
|
||||
bat = "off"
|
||||
bat = "%3s" % (bat)
|
||||
line = line.split('$bat')[0] + bat + line.split('$bat')[1]
|
||||
|
||||
if (line.split('$ac')[0] != line):
|
||||
try:
|
||||
with open (self.ac_device, 'r') as bat_file:
|
||||
bat = bat_file.readline().split('\n')[0]
|
||||
if (bat == '1'):
|
||||
bat = '(*)'
|
||||
with open (self.ptm['vars']['adv']['acDev'], 'r') as batFile:
|
||||
bat = batFile.readline()[:-1]
|
||||
if (bat == "1"):
|
||||
bat = self.ptm['vars']['adv']['acOnline']
|
||||
else:
|
||||
bat = '( )'
|
||||
bat = self.ptm['vars']['adv']['acOffline']
|
||||
except:
|
||||
bat = '(?)'
|
||||
bat = "N\\A"
|
||||
line = line.split('$ac')[0] + bat + line.split('$ac')[1]
|
||||
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
|
||||
self.label_bat.setText(text)
|
||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||
self.setText("bat", text)
|
||||
|
||||
|
||||
def cpuText(self):
|
||||
"""function to set cpu text"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [cpuText]")
|
||||
line = self.ptm['vars']['formats']['cpu']
|
||||
keys = self.ptm['values']['cpu'].keys()
|
||||
keys.sort()
|
||||
keys.reverse()
|
||||
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):
|
||||
value = "%5.1f" % (self.ptm['values']['cpu'][-1])
|
||||
line = line.split('$cpu')[0] + value + line.split('$cpu')[1]
|
||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||
self.setText("cpu", text)
|
||||
|
||||
|
||||
def cpuclockText(self):
|
||||
"""function to set cpu clock text"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [cpuclockText]")
|
||||
line = self.ptm['vars']['formats']['cpuclock']
|
||||
keys = self.ptm['values']['cpuclock'].keys()
|
||||
keys.sort()
|
||||
keys.reverse()
|
||||
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):
|
||||
value = "%4.0f" % (self.ptm['values']['cpuclock'][-1])
|
||||
line = line.split('$cpucl')[0] + value + line.split('$cpucl')[1]
|
||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||
self.setText("cpuclock", text)
|
||||
|
||||
|
||||
def diskText(self):
|
||||
"""function to update hdd speed text"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [diskText]")
|
||||
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"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [hddText]")
|
||||
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] + hdd + line.split('$hddmb' + str(i))[1]
|
||||
if (line.split('$hddgb' + str(i))[0] != line):
|
||||
hdd = "%5.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]
|
||||
if (line.split('$hddtotmb' + str(i))[0] != line):
|
||||
hdd = "%i" % ((self.ptm['values']['hddfreemb'][self.ptm['names']['hdd'][i]] +\
|
||||
self.ptm['values']['hddmb'][self.ptm['names']['hdd'][i]]) / 1024.0)
|
||||
line = line.split('$hddtotmb' + str(i))[0] + hdd + line.split('$hddtotmb' + str(i))[1]
|
||||
if (line.split('$hddtotgb' + str(i))[0] != line):
|
||||
hdd = "%5.1f" % ((self.ptm['values']['hddfreemb'][self.ptm['names']['hdd'][i]] +\
|
||||
self.ptm['values']['hddmb'][self.ptm['names']['hdd'][i]]) / (1024.0 * 1024.0))
|
||||
line = line.split('$hddtotgb' + str(i))[0] + hdd + line.split('$hddtotgb' + 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"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [hddtempText]")
|
||||
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):
|
||||
"""function to set mem text"""
|
||||
full = self.mem_uf + self.mem_free
|
||||
try:
|
||||
mem = 100 * self.mem_used / full
|
||||
mem = "%5s" % (str(round(mem, 1)))
|
||||
except:
|
||||
mem = " N\\A"
|
||||
if (self.memFormat.split('$mem')[0] != self.memFormat):
|
||||
line = self.memFormat.split('$mem')[0] + mem + self.memFormat.split('$mem')[1]
|
||||
else:
|
||||
line = self.memFormat
|
||||
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
|
||||
self.label_mem.setText(text)
|
||||
if self.debug: qDebug("[PTM] [main.py] [memText]")
|
||||
line = self.ptm['vars']['formats']['mem']
|
||||
if (line.split('$memtotgb')[0] != line):
|
||||
mem = "%4.1f" %((self.ptm['values']['mem']['free'] + self.ptm['values']['mem']['used']) / (1024.0 * 1024.0))
|
||||
line = line.split('$memtotgb')[0] + mem + line.split('$memtotgb')[1]
|
||||
if (line.split('$memtotmb')[0] != line):
|
||||
mem = "%i" %((self.ptm['values']['mem']['free'] + self.ptm['values']['mem']['used']) / 1024.0)
|
||||
line = line.split('$memtotmb')[0] + mem + line.split('$memtotmb')[1]
|
||||
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:
|
||||
mem = 100 * self.ptm['values']['mem']['app'] / (self.ptm['values']['mem']['free'] + self.ptm['values']['mem']['used'])
|
||||
mem = "%5.1f" % (round(mem, 1))
|
||||
except:
|
||||
mem = " N\\A"
|
||||
line = line.split('$mem')[0] + mem + line.split('$mem')[1]
|
||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||
self.setText("mem", text)
|
||||
|
||||
|
||||
def netText(self):
|
||||
"""function to set network text"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [netText]")
|
||||
line = self.ptm['vars']['formats']['net']
|
||||
if (line.split('$netdev')[0] != 0):
|
||||
line = line.split('$netdev')[0] + self.ptm['names']['net'] + line.split('$netdev')[1]
|
||||
if (line.split('$down')[0] != line):
|
||||
value = "%4.0f" %(self.ptm['values']['net']['down'])
|
||||
line = line.split('$down')[0] + value + line.split('$down')[1]
|
||||
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):
|
||||
"""function to set swap text"""
|
||||
full = self.swap_used + self.swap_free
|
||||
try:
|
||||
mem = 100 * self.swap_used / full
|
||||
mem = "%5s" % (str(round(mem, 1)))
|
||||
except:
|
||||
mem = " N\\A"
|
||||
if (self.swapFormat.split('$swap')[0] != self.swapFormat):
|
||||
line = self.swapFormat.split('$swap')[0] + mem + self.swapFormat.split('$swap')[1]
|
||||
if self.debug: qDebug("[PTM] [main.py] [swapText]")
|
||||
line = self.ptm['vars']['formats']['swap']
|
||||
if (line.split('$swaptotgb')[0] != line):
|
||||
mem = "%4.1f" % ((self.ptm['values']['swap']['free'] + self.ptm['values']['swap']['used']) / (1024.0 * 1024.0))
|
||||
line = line.split('$swaptotgb')[0] + mem + line.split('$swaptotgb')[1]
|
||||
if (line.split('$swaptotmb')[0] != line):
|
||||
mem = "%i" % ((self.ptm['values']['swap']['free'] + self.ptm['values']['swap']['used']) / 1024.0)
|
||||
line = line.split('$swaptotmb')[0] + mem + line.split('$swaptotmb')[1]
|
||||
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:
|
||||
mem = 100 * self.ptm['values']['swap']['used'] / (self.ptm['values']['swap']['free'] + self.ptm['values']['swap']['used'])
|
||||
mem = "%5.1f" % (round(mem, 1))
|
||||
except:
|
||||
mem = " N\\A"
|
||||
line = line.split('$swap')[0] + mem + line.split('$swap')[1]
|
||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||
self.setText("swap", text)
|
||||
|
||||
|
||||
def tempText(self):
|
||||
"""function to set temperature text"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [tempText]")
|
||||
line = self.ptm['vars']['formats']['temp']
|
||||
devices = range(len(self.ptm['names']['temp']))
|
||||
devices.reverse()
|
||||
for i in devices:
|
||||
if (line.split('$temp' + str(i))[0] != line):
|
||||
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)
|
||||
|
||||
|
||||
# external functions
|
||||
def addLabel(self, name=None, text=None, add=True, enablePopup=2):
|
||||
"""function to add new label"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [addLabel]")
|
||||
if self.debug: qDebug("[PTM] [main.py] [addLabel] : Run function with name '%s'" %(name))
|
||||
if self.debug: qDebug("[PTM] [main.py] [addLabel] : Run function with text '%s'" %(text))
|
||||
if self.debug: qDebug("[PTM] [main.py] [addLabel] : Run function with add '%s'" %(add))
|
||||
if self.debug: qDebug("[PTM] [main.py] [addLabel] : Run function with popup '%s'" %(enablePopup))
|
||||
if (add):
|
||||
self.ptm['labels'][name] = CustomPlasmaLabel(self.applet, name, enablePopup)
|
||||
self.ptm['layout'].addItem(self.ptm['labels'][name])
|
||||
self.setText(name, text)
|
||||
else:
|
||||
line = self.swapFormat
|
||||
text = self.formatLine.split('$LINE')[0] + line + self.formatLine.split('$LINE')[1]
|
||||
self.label_swap.setText(text)
|
||||
self.setText(name, '')
|
||||
self.ptm['layout'].removeItem(self.ptm['labels'][name])
|
||||
|
||||
|
||||
@pyqtSignature("dataUpdated(const QString &, const Plasma::DataEngine::Data &)")
|
||||
def dataUpdated(self, sourceName, data):
|
||||
"""function to update label"""
|
||||
self.dataengine.dataUpdated(sourceName, data)
|
||||
def applySettings(self, name=None, ptm=None):
|
||||
"""function to read settings"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [applySettings]")
|
||||
if self.debug: qDebug("[PTM] [main.py] [applySettings] : Run function with name '%s'" %(name))
|
||||
if self.debug: qDebug("[PTM] [main.py] [applySettings] : Run function with settings '%s'" %(ptm))
|
||||
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']['hddfreemb'][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"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [connectToEngine]")
|
||||
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 createLayout(self, verticalLayout=0, leftStretch=2):
|
||||
"""function to create layout"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [createLayout]")
|
||||
if self.debug: qDebug("[PTM] [main.py] [createLayout] : Run function with vertical layout '%s'" %(verticalLayout))
|
||||
if self.debug: qDebug("[PTM] [main.py] [createLayout] : Run function with left stretch '%s'" %(leftStretch))
|
||||
if (verticalLayout == 0):
|
||||
self.ptm['layout'] = QGraphicsLinearLayout(Qt.Horizontal, self.applet)
|
||||
else:
|
||||
self.ptm['layout'] = QGraphicsLinearLayout(Qt.Vertical, self.applet)
|
||||
self.ptm['layout'].setContentsMargins(1, 1, 1, 1)
|
||||
if (leftStretch == 2):
|
||||
self.ptm['layout'].addStretch(1)
|
||||
|
||||
|
||||
def disconnectFromSource(self):
|
||||
"""function to disconnect from sources"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [disconnectFromSource]")
|
||||
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"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [reInit]")
|
||||
self.reinit.reinit()
|
||||
# add stretch
|
||||
if (self.ptm['vars']['adv']['rightStretch'] == 2):
|
||||
self.ptm['layout'].addStretch(1)
|
||||
self.updateNetdev()
|
||||
self.resize(10, 10)
|
||||
|
||||
# create dataengines
|
||||
self.thread().wait(60000)
|
||||
self.connectToEngine()
|
||||
|
||||
self.timer.setInterval(self.ptm['vars']['app']['interval'])
|
||||
self.timer.start()
|
||||
self.startPolling()
|
||||
|
||||
|
||||
def setNetdev(self):
|
||||
"""function to set network device"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [setNetdev]")
|
||||
if (self.ptm['vars']['adv']['netdevBool'] > 0):
|
||||
return self.ptm['vars']['adv']['netdev']
|
||||
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:
|
||||
with open(netdir + '/' + str(device) + '/operstate', 'r') as stateFile:
|
||||
if (stateFile.readline() == "up\n"):
|
||||
netdev = str(device)
|
||||
except:
|
||||
pass
|
||||
if self.debug: qDebug("[PTM] [main.py] [setNetdev] : Returns '%s'" %(netdev))
|
||||
return netdev
|
||||
|
||||
|
||||
def setText(self, name=None, text=None):
|
||||
"""function to set text to labels"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [setText]")
|
||||
if self.debug: qDebug("[PTM] [main.py] [setText] : Run function with name '%s'" %(name))
|
||||
if self.debug: qDebug("[PTM] [main.py] [setText] : Run function with text '%s'" %(text))
|
||||
self.ptm['labels'][name].setText(text)
|
||||
|
||||
|
||||
def textPrepare(self, name=None, text=None):
|
||||
"""function to prepare text"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [textPrepare]")
|
||||
if self.debug: qDebug("[PTM] [main.py] [textPrepare] : Run function with name '%s'" %(name))
|
||||
if self.debug: qDebug("[PTM] [main.py] [textPrepare] : Run function with text '%s'" %(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]
|
||||
if self.debug: qDebug("[PTM] [main.py] [textPrepare] : Returns '%s'" %(output))
|
||||
return output
|
||||
|
||||
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
||||
############################################################################
|
||||
|
||||
from PyQt4.QtCore import *
|
||||
from PyKDE4.kdecore import KComponentData
|
||||
from PyKDE4.kdeui import KNotification
|
||||
import commands
|
||||
@ -26,17 +27,28 @@ import commands
|
||||
class PTMNotify:
|
||||
def __init__(self, parent):
|
||||
"""class definition"""
|
||||
self.parent = parent
|
||||
# debug
|
||||
environment = QProcessEnvironment.systemEnvironment()
|
||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes")):
|
||||
self.debug = True
|
||||
else:
|
||||
self.debug = False
|
||||
# main
|
||||
|
||||
|
||||
def init(self):
|
||||
def init(self, name=None):
|
||||
"""function to init notification"""
|
||||
content = self.initText(self.parent)
|
||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [init]")
|
||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [init] : Run function with name '%s'" %(name))
|
||||
content = self.initText(name)
|
||||
self.createNotify(content)
|
||||
|
||||
|
||||
def createNotify(self, content):
|
||||
"""function to create notification for label"""
|
||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [createNotify]")
|
||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [createNotify] : Run function with content '%s'" %(content))
|
||||
notification = KNotification(content[0])
|
||||
notification.setComponentData(KComponentData("plasma_applet_pytextmonitor"))
|
||||
notification.setTitle("PyTextMonitor info ::: " + content[0]);
|
||||
@ -46,28 +58,18 @@ class PTMNotify:
|
||||
|
||||
def createText(self, type):
|
||||
"""function to create text"""
|
||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [createText]")
|
||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [createText] : Run function with type '%s'" %(type))
|
||||
text = ""
|
||||
if (type == "system"):
|
||||
if (type == "battery"):
|
||||
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"))
|
||||
text = "%s" %(commands.getoutput("acpi -abi"))
|
||||
except:
|
||||
text = "Something wrong"
|
||||
elif (type == "processor"):
|
||||
elif (type == "disk"):
|
||||
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: %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)))
|
||||
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 + "%s (to %s): %s of %s (%s)\n" % (line.split()[0], line.split()[1], line.split()[2], line.split()[3], line.split()[4])
|
||||
except:
|
||||
text = "Something wrong"
|
||||
elif (type == "graphical"):
|
||||
@ -78,87 +80,89 @@ class PTMNotify:
|
||||
elif (output.lower().find('radeon') > -1):
|
||||
gpudev = "ati"
|
||||
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'):
|
||||
output = commands.getoutput("nvidia-smi -q -d UTILIZATION | grep Gpu | tail -n1")
|
||||
try:
|
||||
value = "%5s" % (str(round(float(output.split()[2][:-1]), 1)))
|
||||
value = "%5.1f" % (round(float(output.split()[2]), 1))
|
||||
except:
|
||||
value = " N\A"
|
||||
elif (gpudev == 'ati'):
|
||||
output = commands.getoutput("aticonfig --od-getclocks | grep load | tail -n1")
|
||||
try:
|
||||
value = "%5s" % (str(round(float(output.split()[3][:-1]), 1)))
|
||||
value = "%5.1f" % (round(float(output.split()[3]), 1))
|
||||
except:
|
||||
value = " N\A"
|
||||
else:
|
||||
value = " N\A"
|
||||
text = text + "Load: %s%%\n" %(value)
|
||||
text = text + "Load: %s%%\n" % (value)
|
||||
if (gpudev == 'nvidia'):
|
||||
output = commands.getoutput("nvidia-smi -q -d TEMPERATURE | grep Gpu | tail -n1")
|
||||
try:
|
||||
value = "%5s" % (str(round(float(output.split()[2][:-1]), 1)))
|
||||
value = "%5.1f" % (round(float(output.split()[2]), 1))
|
||||
except:
|
||||
value = " N\A"
|
||||
elif (gpudev == 'ati'):
|
||||
output = commands.getoutput("aticonfig --od-gettemperature | grep Temperature | tail -n1")
|
||||
try:
|
||||
value = "%5s" % (str(round(float(output.split()[3][:-1]), 1)))
|
||||
value = "%5.1f" % (round(float(output.split()[3]), 1))
|
||||
except:
|
||||
value = " N\A"
|
||||
else:
|
||||
value = " N\A"
|
||||
text = text + "Temp: %s\xb0C\n" %(value)
|
||||
text = text + "Temp: %s\xb0C\n" % (value)
|
||||
except:
|
||||
text = "Something wrong"
|
||||
elif (type == "memory"):
|
||||
try:
|
||||
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]))
|
||||
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 + "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]))))
|
||||
memUsage = int(output[1].split()[1]) - (int(output[1].split()[3]) + int(output[1].split()[5]) + int(output[1].split()[6]))
|
||||
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 (%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")
|
||||
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])
|
||||
text = text + "Swap Device: %s (%s)" % (output[1].split()[0], output[1].split()[1])
|
||||
except:
|
||||
text = "Something wrong"
|
||||
elif (type == "network"):
|
||||
try:
|
||||
output = commands.getoutput("ifconfig -a -s").split("\n")[1:]
|
||||
text = text + "Devices:"
|
||||
for line in output:
|
||||
text = text + " %s" %(line.split()[0])
|
||||
output = commands.getoutput("ifconfig -a -s " + self.parent.parent.netdev + " && sleep 0.2 && ifconfig -a -s " + self.parent.parent.netdev).split("\n")
|
||||
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))
|
||||
text = text + "\n%s: %s/%s KB/s\n" %(self.parent.parent.netdev, download, upload)
|
||||
output = commands.getoutput("ifconfig " + self.parent.parent.netdev + " | grep 'inet '").split()[1]
|
||||
text = text + "IP: %s\n" %(output[:-1])
|
||||
output = commands.getoutput("wget http://checkip.dyndns.org/ -q -O - | awk '{print $6}' | sed 's/<.*>//g'")
|
||||
text = text + "External IP: %s" %(output[:-1])
|
||||
devices = [line.split()[0] for line in output]
|
||||
text = text + "Devices: %s\n" % (' '.join(devices))
|
||||
for dev in devices:
|
||||
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))
|
||||
upload = int((int(output[3].split()[6]) - int(output[1].split()[6])) / (0.2 * 1024))
|
||||
text = text + "%s: %i/%i KB/s" % (dev, download, upload)
|
||||
output = commands.getoutput("ifconfig " + dev + " | grep 'inet ' || echo ' inet Null'").split()[1]
|
||||
text = text + " (IP: %s)\n" % (output)
|
||||
output = commands.getoutput("wget -qO- http://ifconfig.me/ip")
|
||||
text = text + "External IP: %s" % (output)
|
||||
except:
|
||||
text = "Something wrong"
|
||||
elif (type == "battery"):
|
||||
try:
|
||||
text = text + "%s" %(commands.getoutput("acpi -abi"))
|
||||
except:
|
||||
text = "Something wrong"
|
||||
elif (type == "musicplayer"):
|
||||
elif (type == "player"):
|
||||
try:
|
||||
artist = "N\\A"
|
||||
album = "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 clementine")) > 0):
|
||||
player = "clementine"
|
||||
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-")
|
||||
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-")
|
||||
elif (self.parent.parent.player_name == 1):
|
||||
elif (player == "clementine"):
|
||||
artist = commands.getoutput("qdbus org.mpris.clementine /Player GetMetadata 2> /dev/null | grep albumartist: | cut -c14-")
|
||||
album = commands.getoutput("qdbus org.mpris.clementine /Player GetMetadata 2> /dev/null | grep album: | cut -c8-")
|
||||
title = commands.getoutput("qdbus org.mpris.clementine /Player GetMetadata 2> /dev/null | grep title: | cut -c8-")
|
||||
elif (player == "mpd"):
|
||||
output = commands.getoutput("echo 'currentsong\nclose' | curl --connect-timeout 1 -fsm 3 telnet://localhost:6600 2> /dev/null")
|
||||
for line in output.split("\n"):
|
||||
if (line.split(": ")[0] == "Artist"):
|
||||
@ -167,101 +171,80 @@ class PTMNotify:
|
||||
album = line.split(": ")[1]
|
||||
elif (line.split(": ")[0] == "Title"):
|
||||
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")
|
||||
album = commands.getoutput("qmmp --nowplaying '%if(%a,%a,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:
|
||||
text = "Something wrong"
|
||||
|
||||
content = [type, text]
|
||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [createText] : Returns '%s'" %(content))
|
||||
return content
|
||||
|
||||
|
||||
def initText(self, sender):
|
||||
def initText(self, name):
|
||||
"""function to send text"""
|
||||
try:
|
||||
if (sender == self.parent.parent.label_time):
|
||||
content = self.createText("system")
|
||||
return content
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if (sender == self.parent.parent.label_uptime):
|
||||
content = self.createText("system")
|
||||
return content
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if (sender == self.parent.parent.label_cpu):
|
||||
content = self.createText("processor")
|
||||
return content
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if (sender == self.parent.parent.label_cpuclock):
|
||||
content = self.createText("processor")
|
||||
return content
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if (sender == self.parent.parent.label_temp):
|
||||
content = self.createText("processor")
|
||||
return content
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if (sender == self.parent.parent.label_gpu):
|
||||
content = self.createText("graphical")
|
||||
return content
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
if (sender == self.parent.parent.label_gputemp):
|
||||
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_hdd0):
|
||||
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_netDown):
|
||||
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
|
||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [initText]")
|
||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [initText] : Run function with name '%s'" %(name))
|
||||
if (name == "bat"):
|
||||
return self.createText("battery")
|
||||
elif (name == "cpu"):
|
||||
return self.createText("processor")
|
||||
elif (name == "cpuclock"):
|
||||
return self.createText("processor")
|
||||
elif (name == "custom"):
|
||||
return self.createText("system")
|
||||
elif (name == "disk"):
|
||||
return self.createText("disk")
|
||||
elif (name == "gpu"):
|
||||
return self.createText("graphical")
|
||||
elif (name == "gputemp"):
|
||||
return self.createText("graphical")
|
||||
elif (name == "hdd"):
|
||||
return self.createText("disk")
|
||||
elif (name == "hddtemp"):
|
||||
return self.createText("disk")
|
||||
elif (name == "mem"):
|
||||
return self.createText("memory")
|
||||
elif (name == "net"):
|
||||
return self.createText("network")
|
||||
elif (name == "pkg"):
|
||||
return self.createText("system")
|
||||
elif (name == "player"):
|
||||
return self.createText("player")
|
||||
elif (name == "ps"):
|
||||
return self.createText("system")
|
||||
elif (name == "swap"):
|
||||
return self.createText("memory")
|
||||
elif (name == "temp"):
|
||||
return self.createText("processor")
|
||||
elif (name == "time"):
|
||||
return self.createText("system")
|
||||
elif (name == "uptime"):
|
||||
return self.createText("system")
|
||||
else:
|
||||
return None
|
||||
|
@ -19,322 +19,92 @@
|
||||
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
from PyKDE4.plasma import Plasma
|
||||
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():
|
||||
def __init__(self, parent):
|
||||
def __init__(self, parent, defaults=None):
|
||||
"""class definition"""
|
||||
# debug
|
||||
environment = QProcessEnvironment.systemEnvironment()
|
||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes")):
|
||||
self.debug = True
|
||||
else:
|
||||
self.debug = False
|
||||
# main
|
||||
self.parent = parent
|
||||
self.defaults = defaults
|
||||
self.labels = defaults['format'].keys()
|
||||
|
||||
|
||||
def reinit(self, confAccept=False):
|
||||
def reinit(self):
|
||||
"""function to reinitializate widget"""
|
||||
if self.debug: qDebug("[PTM] [reinit.py] [reinit]")
|
||||
settings = config.Config(self.parent)
|
||||
self.parent.interval = settings.get('interval', 2000).toInt()[0]
|
||||
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.label_order = str(settings.get('label_order', '1345'))
|
||||
for label in self.parent.dict_orders.values():
|
||||
if ((label == 'cpu') or (label == 'mem') or (label == 'swap') or (label == 'net')):
|
||||
exec ('self.parent.' + label + 'Bool = int(settings.get("' + label + 'Bool", 2))')
|
||||
else:
|
||||
exec ('self.parent.' + label + 'Bool = int(settings.get("' + label + 'Bool", 0))')
|
||||
ptmVars = {}
|
||||
|
||||
# labels
|
||||
for order in self.parent.label_order:
|
||||
if (order == "1"):
|
||||
if (self.parent.cpuBool > 0):
|
||||
self.parent.cpuFormat = str(settings.get('cpuFormat', '[cpu: $cpu%]'))
|
||||
if (self.parent.cpuFormat.split('$ccpu')[0] != self.parent.cpuFormat):
|
||||
self.parent.label_cpu = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
self.parent.label_cpu1 = Plasma.Label(self.parent.applet)
|
||||
if (self.parent.cpuFormat.split('$ccpu')[0].split('$cpu')[0] != self.parent.cpuFormat.split('$ccpu')[0]):
|
||||
line = self.parent.cpuFormat.split('$ccpu')[0].split('$cpu')[0] + '-----' + self.parent.cpuFormat.split('$ccpu')[0].split('$cpu')[1]
|
||||
else:
|
||||
line = self.parent.cpuFormat.split('$ccpu')[0]
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_cpu.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_cpu)
|
||||
text = self.parent.formatLine.split('$LINE')[0] + "-----" + self.parent.formatLine.split('$LINE')[1]
|
||||
for core in range(self.parent.numCores):
|
||||
exec ('self.parent.label_coreCpu' + str(core) + ' = Plasma.Label(self.parent.applet)')
|
||||
exec ('self.parent.label_coreCpu' + str(core) + '.setText(text)')
|
||||
exec ('self.parent.layout.addItem(self.parent.label_coreCpu' + str(core) + ')')
|
||||
if (self.parent.cpuFormat.split('$ccpu')[1].split('$cpu')[0] != self.parent.cpuFormat.split('$ccpu')[1]):
|
||||
line = self.parent.cpuFormat.split('$ccpu')[1].split('$cpu')[0] + '-----' + self.parent.cpuFormat.split('$ccpu')[1].split('$cpu')[1]
|
||||
else:
|
||||
line = self.parent.cpuFormat.split('$ccpu')[1]
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_cpu1.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_cpu1)
|
||||
else:
|
||||
self.parent.label_cpu = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
if (self.parent.cpuFormat.split('$cpu')[0] != self.parent.cpuFormat):
|
||||
line = self.parent.cpuFormat.split('$cpu')[0] + '-----' + self.parent.cpuFormat.split('$cpu')[1]
|
||||
else:
|
||||
line = self.parent.cpuFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_cpu.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_cpu)
|
||||
elif (order == "2"):
|
||||
if (self.parent.tempBool > 0):
|
||||
self.parent.tempdev = str(settings.get('temp_device', '<select device>'))
|
||||
self.parent.tempFormat = str(settings.get('tempFormat', '[temp: $temp°C]'))
|
||||
self.parent.label_temp = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
if (self.parent.tempFormat.split('$temp')[0] != self.parent.tempFormat):
|
||||
line = self.parent.tempFormat.split('$temp')[0] + '----' + self.parent.tempFormat.split('$temp')[1]
|
||||
else:
|
||||
line = self.parent.tempFormat
|
||||
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%]'))
|
||||
if (self.parent.memFormat.split('$memmb')[0] != self.parent.memFormat):
|
||||
self.parent.memInMb = True
|
||||
line = self.parent.memFormat.split('$memmb')[0] + '-----' + self.parent.memFormat.split('$memmb')[1]
|
||||
elif (self.parent.memFormat.split('$mem')[0] != self.parent.memFormat):
|
||||
self.parent.memInMb = False
|
||||
self.parent.mem_used = 0.0
|
||||
self.parent.mem_free = 1.0
|
||||
self.parent.mem_uf = 0.0
|
||||
line = self.parent.memFormat.split('$mem')[0] + '-----' + self.parent.memFormat.split('$mem')[1]
|
||||
else:
|
||||
line = self.parent.memFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_mem = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
self.parent.label_mem.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_mem)
|
||||
elif (order == "4"):
|
||||
if (self.parent.swapBool > 0):
|
||||
self.parent.swapFormat = str(settings.get('swapFormat', '[swap: $swap%]'))
|
||||
if (self.parent.swapFormat.split('$swapmb')[0] != self.parent.swapFormat):
|
||||
self.parent.swapInMb = True
|
||||
line = self.parent.swapFormat.split('$swapmb')[0] + '-----' + self.parent.swapFormat.split('$swapmb')[1]
|
||||
elif (self.parent.swapFormat.split('$swap')[0] != self.parent.swapFormat):
|
||||
self.parent.swapInMb = False
|
||||
self.parent.swap_free = 1.0
|
||||
self.parent.swap_used = 0.0
|
||||
line = self.parent.swapFormat.split('$swap')[0] + '-----' + self.parent.swapFormat.split('$swap')[1]
|
||||
else:
|
||||
line = self.parent.swapFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_swap = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
self.parent.label_swap.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_swap)
|
||||
elif (order == "5"):
|
||||
if (self.parent.netBool > 0):
|
||||
self.parent.netNonFormat = str(settings.get('netNonFormat', '[net: $netKB/s]'))
|
||||
if (self.parent.netNonFormat.split('@@')[0] != self.parent.netNonFormat):
|
||||
self.parent.netdev = self.parent.netNonFormat.split('@@')[1]
|
||||
self.parent.netNonFormat = self.parent.netNonFormat.split('@@')[0] + self.parent.netNonFormat.split('@@')[2]
|
||||
else:
|
||||
self.parent.netdev = self.parent.setupNetdev()
|
||||
if (self.parent.netNonFormat.split('$netdev')[0] != self.parent.netNonFormat):
|
||||
self.parent.netFormat = self.parent.netNonFormat.split('$netdev')[0] + self.parent.netdev + self.parent.netNonFormat.split('$netdev')[1]
|
||||
else:
|
||||
self.parent.netFormat = self.parent.netNonFormat
|
||||
self.parent.label_netDown = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
if (self.parent.netFormat.split('$net')[0] != self.parent.netFormat):
|
||||
line = self.parent.netFormat.split('$net')[0] + '----'
|
||||
else:
|
||||
line = self.parent.netFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_netDown.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_netDown)
|
||||
self.parent.label_netUp = Plasma.Label(self.parent.applet)
|
||||
if (self.parent.netFormat.split('$net')[0] != self.parent.netFormat):
|
||||
line = '/----' + self.parent.netFormat.split('$net')[1]
|
||||
else:
|
||||
line = ''
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_netUp.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_netUp)
|
||||
elif (order == "6"):
|
||||
if (self.parent.batBool > 0):
|
||||
self.parent.batFormat = str(settings.get('batFormat', '[bat: $bat%$ac]'))
|
||||
self.parent.battery_device= str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity'))
|
||||
self.parent.ac_device = str(settings.get('ac_device', '/sys/class/power_supply/AC/online'))
|
||||
self.parent.label_bat = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
line = self.parent.batFormat
|
||||
if (line.split('$ac')[0] != line):
|
||||
line = line.split('$ac')[0] + '(-)' + line.split('$ac')[1]
|
||||
if (line.split('$bat')[0] != line):
|
||||
line = line.split('$bat')[0] + '---' + line.split('$bat')[1]
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_bat.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_bat)
|
||||
elif (order == "7"):
|
||||
if (self.parent.cpuclockBool > 0):
|
||||
self.parent.cpuclockFormat = str(settings.get('cpuclockFormat', '[mhz: $cpucl]'))
|
||||
if (self.parent.cpuclockFormat.split('$ccpucl')[0] != self.parent.cpuclockFormat):
|
||||
self.parent.label_cpuclock = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
self.parent.label_cpuclock1 = Plasma.Label(self.parent.applet)
|
||||
if (self.parent.cpuclockFormat.split('$ccpucl')[0].split('$cpucl')[0] != self.parent.cpuclockFormat.split('$ccpucl')[0]):
|
||||
line = self.parent.cpuclockFormat.split('$ccpucl')[0].split('$cpucl')[0] + '----' + self.parent.cpuclockFormat.split('$ccpucl')[0].split('$cpucl')[1]
|
||||
else:
|
||||
line = self.parent.cpuclockFormat.split('$ccpucl')[0]
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_cpuclock.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_cpuclock)
|
||||
text = self.parent.formatLine.split('$LINE')[0] + "----" + self.parent.formatLine.split('$LINE')[1]
|
||||
for core in range(self.parent.numCores):
|
||||
exec ('self.parent.label_coreCpuclock' + str(core) + ' = Plasma.Label(self.parent.applet)')
|
||||
exec ('self.parent.label_coreCpuclock' + str(core) + '.setText(text)')
|
||||
exec ('self.parent.layout.addItem(self.parent.label_coreCpuclock' + str(core) + ')')
|
||||
if (self.parent.cpuclockFormat.split('$ccpucl')[1].split('$cpucl')[0] != self.parent.cpuclockFormat.split('$ccpucl')[1]):
|
||||
line = self.parent.cpuclockFormat.split('$ccpucl')[1].split('$cpucl')[0] + '----' + self.parent.cpuclockFormat.split('$ccpucl')[1].split('$cpucl')[1]
|
||||
else:
|
||||
line = self.parent.cpuclockFormat.split('$ccpucl')[1]
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_cpuclock1.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_cpuclock1)
|
||||
else:
|
||||
self.parent.label_cpuclock = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
if (self.parent.cpuclockFormat.split('$cpucl')[0] != self.parent.cpuclockFormat):
|
||||
line = self.parent.cpuclockFormat.split('$cpucl')[0] + '----' + self.parent.cpuclockFormat.split('$cpucl')[1]
|
||||
else:
|
||||
line = self.parent.cpuclockFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_cpuclock.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_cpuclock)
|
||||
elif (order == "8"):
|
||||
if (self.parent.uptimeBool > 0):
|
||||
self.parent.uptimeFormat = str(settings.get('uptimeFormat', '[uptime: $uptime]'))
|
||||
self.parent.label_uptime = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
if (self.parent.uptimeFormat.split('$uptime')[0] != self.parent.uptimeFormat):
|
||||
line = self.parent.uptimeFormat.split('$uptime')[0] + '---d--h--m' + self.parent.uptimeFormat.split('$uptime')[1]
|
||||
else:
|
||||
line = self.parent.uptimeFormat
|
||||
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)
|
||||
if (self.parent.gpuFormat.split('$gpu')[0] != self.parent.gpuFormat):
|
||||
line = self.parent.gpuFormat.split('$gpu')[0] + '-----' + self.parent.gpuFormat.split('$gpu')[1]
|
||||
else:
|
||||
line = self.parent.gpuFormat
|
||||
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)
|
||||
if (self.parent.gputempFormat.split('$gputemp')[0] != self.parent.gputempFormat):
|
||||
line = self.parent.gputempFormat.split('$gputemp')[0] + '----' + self.parent.gputempFormat.split('$gputemp')[1]
|
||||
else:
|
||||
line = self.parent.gputempFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_gputemp.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_gputemp)
|
||||
elif (order == "b"):
|
||||
if (self.parent.hddBool > 0):
|
||||
self.parent.hddFormat = str(settings.get('hddFormat', '[hdd: @@/@@%]'))
|
||||
if (self.parent.hddFormat.split('@@')[0] != self.parent.hddFormat):
|
||||
self.parent.mountPoints = self.parent.hddFormat.split('@@')[1].split(';')
|
||||
line = self.parent.hddFormat.split('@@')[0]
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_hdd0 = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
self.parent.label_hdd0.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_hdd0)
|
||||
text = self.parent.formatLine.split('$LINE')[0] + "-----" + self.parent.formatLine.split('$LINE')[1]
|
||||
for mount in self.parent.mountPoints:
|
||||
exec ('self.parent.label_hdd_' + ''.join(mount.split('/')) + ' = Plasma.Label(self.parent.applet)')
|
||||
exec ('self.parent.label_hdd_' + ''.join(mount.split('/')) + '.setText(text)')
|
||||
exec ('self.parent.layout.addItem(self.parent.label_hdd_' + ''.join(mount.split('/')) + ')')
|
||||
line = self.parent.hddFormat.split('@@')[2]
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_hdd1 = Plasma.Label(self.parent.applet)
|
||||
self.parent.label_hdd1.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_hdd1)
|
||||
else:
|
||||
line = self.parent.hddFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_hdd0.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_hdd0)
|
||||
elif (order == "c"):
|
||||
if (self.parent.hddtempBool > 0):
|
||||
self.parent.hddtempFormat = str(settings.get('hddtempFormat', '[hdd temp: @@/dev/sda@@°C]'))
|
||||
self.parent.label_hddtemp = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
if (self.parent.hddtempFormat.split('@@')[0] != self.parent.hddtempFormat):
|
||||
line = self.parent.hddtempFormat.split('@@')[0] + '----' + self.parent.hddtempFormat.split('@@')[2]
|
||||
else:
|
||||
line = self.parent.hddtempFormat
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_hddtemp.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_hddtemp)
|
||||
elif (order == "d"):
|
||||
if (self.parent.playerBool > 0):
|
||||
self.parent.playerFormat = str(settings.get('playerFormat', '[$artist - $title]'))
|
||||
self.parent.player_name = settings.get('player_name', 0).toInt()[0]
|
||||
self.parent.label_player = NewPlasmaLabel(self.parent.applet, self.parent)
|
||||
line = self.parent.playerFormat
|
||||
if (line.split('$album')[0] != line):
|
||||
line = line.split('$album')[0] + 'N\\A' + line.split('$album')[1]
|
||||
if (line.split('$artist')[0] != line):
|
||||
line = line.split('$artist')[0] + 'N\\A' + line.split('$artist')[1]
|
||||
if (line.split('$progress')[0] != line):
|
||||
line = line.split('$progress')[0] + '00:00' + line.split('$progress')[1]
|
||||
if (line.split('$title')[0] != line):
|
||||
line = line.split('$title')[0] + 'N\\A' + line.split('$title')[1]
|
||||
if (line.split('$time')[0] != line):
|
||||
line = line.split('$time')[0] + '00:00' + line.split('$time')[1]
|
||||
text = self.parent.formatLine.split('$LINE')[0] + line + self.parent.formatLine.split('$LINE')[1]
|
||||
self.parent.label_player.setText(text)
|
||||
self.parent.layout.addItem(self.parent.label_player)
|
||||
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)
|
||||
if (self.parent.timeFormat.split('$time')[0] != self.parent.timeFormat):
|
||||
line = self.parent.timeFormat.split('$time')[0] + '----------------------' + self.parent.timeFormat.split('$time')[1]
|
||||
else:
|
||||
line = self.parent.timeFormat
|
||||
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)
|
||||
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)
|
||||
ptmVars['adv'] = {}
|
||||
ptmVars['adv']['acDev'] = str(settings.get('ac_device', '/sys/class/power_supply/AC/online'))
|
||||
ptmVars['adv']['acOnline'] = str(settings.get('ac_online', '(*)'))
|
||||
ptmVars['adv']['acOffline'] = str(settings.get('ac_offline', '( )'))
|
||||
ptmVars['adv']['batDev'] = str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity'))
|
||||
ptmVars['adv']['customTime'] = str(settings.get('custom_time', '$hh:$mm'))
|
||||
ptmVars['adv']['customUptime'] = str(settings.get('custom_uptime', '$dd,$hh,$mm'))
|
||||
ptmVars['adv']['layout'] = settings.get('layout', 0).toInt()[0]
|
||||
ptmVars['adv']['leftStretch'] = settings.get('left_stretch', 2).toInt()[0]
|
||||
ptmVars['adv']['netdevBool'] = settings.get('netdevBool', 0).toInt()[0]
|
||||
ptmVars['adv']['netdev'] = str(settings.get('custom_netdev', 'lo'))
|
||||
ptmVars['adv']['netDir'] = str(settings.get('netdir', '/sys/class/net'))
|
||||
ptmVars['adv']['rightStretch'] = settings.get('right_stretch', 2).toInt()[0]
|
||||
ptmVars['adv']['tempUnits'] = str(settings.get('temp_units', 'Celsius'))
|
||||
ptmVars['adv']['popup'] = settings.get('popup', 2).toInt()[0]
|
||||
|
||||
# create dataengines
|
||||
self.parent.thread().wait(60000)
|
||||
self.parent.dataengine.connectToEngine()
|
||||
ptmVars['app'] = {}
|
||||
ptmVars['app']['format'] = ["<pre><p align=\"center\"><span style=\" font-family:'" + str(settings.get('font_family', 'Terminus')) +\
|
||||
"'; font-style:" + str(settings.get('font_style', 'normal')) + "; font-size:" + str(settings.get('font_size', 12)) +\
|
||||
"pt; font-weight:" + str(settings.get('font_weight', 400)) + "; color:" + str(settings.get('font_color', '#000000')) +\
|
||||
";\">", "</span></p></pre>"]
|
||||
ptmVars['app']['interval'] = settings.get('interval', 2000).toInt()[0]
|
||||
ptmVars['app']['order'] = str(settings.get('label_order', '1345'))
|
||||
|
||||
self.parent.timer.setInterval(self.parent.interval)
|
||||
self.parent.startPolling()
|
||||
ptmVars['tooltip'] = {}
|
||||
ptmVars['tooltip']['colors'] = {}
|
||||
ptmVars['tooltip']['colors']['cpu'] = str(settings.get('cpu_color', '#ff0000'))
|
||||
ptmVars['tooltip']['colors']['cpuclock'] = str(settings.get('cpuclock_color', '#00ff00'))
|
||||
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('@@')
|
||||
ptmNames['temp'] = str(settings.get('temp_device', '')).split('@@')
|
||||
if self.debug: qDebug("[PTM] [reinit.py] [reinit] : Returns names '%s'" %(ptmNames))
|
||||
self.parent.applySettings('names', ptmNames)
|
||||
|
||||
self.parent.createLayout(ptmVars['adv']['layout'], ptmVars['adv']['leftStretch'])
|
||||
ptmVars['formats'] = {}
|
||||
ptmVars['tooltip']['required'] = []
|
||||
for order in ptmVars['app']['order']:
|
||||
label = self.defaults['order'][order]
|
||||
if (ptmVars['bools'][label] > 0):
|
||||
ptmVars['formats'][label] = str(settings.get(self.defaults['confFormat'][label], self.defaults['format'][label]))
|
||||
text = ptmVars['app']['format'][0] + ptmVars['formats'][label] + ptmVars['app']['format'][1]
|
||||
self.parent.addLabel(label, text, True, ptmVars['adv']['popup'])
|
||||
if ((label in ['cpu', 'cpuclock', 'mem', 'net', 'swap']) and (ptmVars['bools'][label] == 2)):
|
||||
if (label == 'net'):
|
||||
ptmVars['tooltip']['required'].append("down")
|
||||
ptmVars['tooltip']['required'].append("up")
|
||||
else:
|
||||
ptmVars['tooltip']['required'].append(label)
|
||||
if self.debug: qDebug("[PTM] [reinit.py] [reinit] : Returns vars '%s'" %(ptmVars))
|
||||
self.parent.applySettings('vars', ptmVars)
|
||||
|
73
sources/ptm/contents/code/tooltip.py
Normal file
@ -0,0 +1,73 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
############################################################################
|
||||
# This file is part of pytextmonitor #
|
||||
# #
|
||||
# pytextmonitor is free software: you can redistribute it and/or #
|
||||
# modify it under the terms of the GNU General Public License as #
|
||||
# published by the Free Software Foundation, either version 3 of the #
|
||||
# License, or (at your option) any later version. #
|
||||
# #
|
||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
||||
############################################################################
|
||||
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
|
||||
|
||||
|
||||
class Tooltip():
|
||||
def __init__(self, parent):
|
||||
"""class definition"""
|
||||
# debug
|
||||
environment = QProcessEnvironment.systemEnvironment()
|
||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes")):
|
||||
self.debug = True
|
||||
else:
|
||||
self.debug = False
|
||||
# main
|
||||
self.parent = parent
|
||||
|
||||
|
||||
def createGraphic(self, ptmVars, ptmTooltip, widget):
|
||||
"""function to create graph"""
|
||||
if self.debug: qDebug("[PTM] [tooltip.py] [createGraphic]")
|
||||
widget.clear()
|
||||
pen = QPen()
|
||||
bounds = ptmTooltip['bounds']
|
||||
colors = ptmVars['colors']
|
||||
types = ptmVars['required']
|
||||
values = ptmTooltip['values']
|
||||
maxOne = [100.0, 100.0]
|
||||
bounds['down'] = 1.0
|
||||
for value in values['down']:
|
||||
if (bounds['down'] < value):
|
||||
bounds['down'] = value
|
||||
for value in values['up']:
|
||||
if (bounds['down'] < value):
|
||||
bounds['down'] = value
|
||||
bounds['up'] = bounds['down']
|
||||
down = False
|
||||
for type in types:
|
||||
norm = [maxOne[0] / len(values[type]), maxOne[1] / (1.5 * bounds[type])]
|
||||
pen.setColor(QColor(colors[type]))
|
||||
if (down):
|
||||
shift = (types.index(type) - 1) * maxOne[0]
|
||||
else:
|
||||
shift = types.index(type) * maxOne[0]
|
||||
for i in range(len(values[type])-1):
|
||||
x1 = i * norm[0] + shift
|
||||
y1 = -values[type][i] * norm[1]
|
||||
x2 = (i + 1) * norm[0] + shift
|
||||
y2 = -values[type][i+1] * norm[1]
|
||||
widget.addLine(x1, y1, x2, y2, pen)
|
||||
if (type == 'down'):
|
||||
down = True
|
||||
|
44
sources/ptm/contents/code/tooltipconfig.py
Normal file
@ -0,0 +1,44 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
############################################################################
|
||||
# This file is part of pytextmonitor #
|
||||
# #
|
||||
# pytextmonitor is free software: you can redistribute it and/or #
|
||||
# modify it under the terms of the GNU General Public License as #
|
||||
# published by the Free Software Foundation, either version 3 of the #
|
||||
# License, or (at your option) any later version. #
|
||||
# #
|
||||
# pytextmonitor is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with pytextmonitor. If not, see http://www.gnu.org/licenses/ #
|
||||
############################################################################
|
||||
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
from PyKDE4.plasma import *
|
||||
from PyQt4 import uic
|
||||
|
||||
|
||||
|
||||
class TooltipWindow(QWidget):
|
||||
def __init__(self, parent):
|
||||
"""settings window definition"""
|
||||
# debug
|
||||
environment = QProcessEnvironment.systemEnvironment()
|
||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes")):
|
||||
self.debug = True
|
||||
else:
|
||||
self.debug = False
|
||||
# main
|
||||
QWidget.__init__(self)
|
||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'tooltipconfig.ui'), self)
|
||||
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}
|
@ -1,56 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Alex Oleshkevich <alex.oleshkevich@gmail.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
from shutil import copyfile
|
||||
from PyKDE4.kdecore import *
|
||||
import os
|
||||
|
||||
|
||||
|
||||
class Util():
|
||||
def __init__(self, applet):
|
||||
self.applet = applet
|
||||
|
||||
|
||||
def createDirectory(self, name):
|
||||
if not os.path.isdir(name):
|
||||
try:
|
||||
os.mkdir(name)
|
||||
except:
|
||||
print 'Failed to create directory: ' + name
|
||||
|
||||
|
||||
def kdeHome(self):
|
||||
return unicode(KGlobal.dirs().localkdedir())
|
||||
|
||||
|
||||
def createNotifyrc(self):
|
||||
print '[%s] creating notifyrc' % (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
|
||||
destination = self.kdeHome() + 'share/apps/%s/%s.notifyrc' % (self.applet._name, self.applet._name)
|
||||
copyfile(source, destination)
|
||||
|
||||
|
||||
def createConfig(self):
|
||||
self.createDirectory(self.kdeHome() + 'share/apps/%s' % 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)
|
||||
copyfile(source, destination)
|
@ -21,58 +21,83 @@ from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
from PyKDE4.plasma import *
|
||||
from PyQt4 import uic
|
||||
from PyKDE4 import plasmascript
|
||||
|
||||
|
||||
|
||||
class ConfigWindow(QWidget):
|
||||
class WidgetWindow(QWidget):
|
||||
def __init__(self, parent):
|
||||
"""settings window definition"""
|
||||
# debug
|
||||
environment = QProcessEnvironment.systemEnvironment()
|
||||
debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes")):
|
||||
self.debug = True
|
||||
else:
|
||||
self.debug = False
|
||||
# main
|
||||
QWidget.__init__(self)
|
||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'configwindow.ui'), self)
|
||||
self.ui = uic.loadUi(parent.package().filePath('ui', 'widget.ui'), self)
|
||||
self.parent = parent
|
||||
self.checkboxes = {'bat':self.ui.checkBox_bat, 'cpu':self.ui.checkBox_cpu,
|
||||
'cpuclock':self.ui.checkBox_cpuclock, 'gpu':self.ui.checkBox_gpu,
|
||||
'gputemp':self.ui.checkBox_gpuTemp, 'hdd':self.ui.checkBox_hdd,
|
||||
'hddtemp':self.ui.checkBox_hddTemp, 'mem':self.ui.checkBox_mem,
|
||||
'net':self.ui.checkBox_net, 'swap':self.ui.checkBox_swap,
|
||||
'temp':self.ui.checkBox_temp, 'uptime':self.ui.checkBox_uptime,
|
||||
'player':self.ui.checkBox_player, 'time':self.ui.checkBox_time}
|
||||
self.sliders = {'bat':self.ui.slider_bat, 'cpu':self.ui.slider_cpu,
|
||||
'cpuclock':self.ui.slider_cpuclock, 'gpu':self.ui.slider_gpu,
|
||||
'gputemp':self.ui.slider_gpuTemp, 'hdd':self.ui.slider_hdd,
|
||||
'hddtemp':self.ui.slider_hddTemp, 'mem':self.ui.slider_mem,
|
||||
'net':self.ui.slider_net, 'swap':self.ui.slider_swap,
|
||||
'temp':self.ui.slider_temp, 'uptime':self.ui.slider_uptime,
|
||||
'player':self.ui.slider_player, 'time':self.ui.slider_time}
|
||||
'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,
|
||||
'hddtemp':self.ui.checkBox_hddTemp, 'mem':self.ui.checkBox_mem,
|
||||
'net':self.ui.checkBox_net, 'swap':self.ui.checkBox_swap,
|
||||
'temp':self.ui.checkBox_temp, 'uptime':self.ui.checkBox_uptime,
|
||||
'pkg':self.ui.checkBox_pkg, 'player':self.ui.checkBox_player,
|
||||
'ps':self.ui.checkBox_ps, 'time':self.ui.checkBox_time}
|
||||
self.lineedits = {'bat':self.ui.lineEdit_bat, 'cpu':self.ui.lineEdit_cpu,
|
||||
'cpuclock':self.ui.lineEdit_cpuclock, 'gpu':self.ui.lineEdit_gpu,
|
||||
'gputemp':self.ui.lineEdit_gpuTemp, 'hdd':self.ui.lineEdit_hdd,
|
||||
'hddtemp':self.ui.lineEdit_hddTemp, 'mem':self.ui.lineEdit_mem,
|
||||
'net':self.ui.lineEdit_net, 'swap':self.ui.lineEdit_swap,
|
||||
'temp':self.ui.lineEdit_temp, 'uptime':self.ui.lineEdit_uptime,
|
||||
'player':self.ui.lineEdit_player, 'time':self.ui.lineEdit_time}
|
||||
'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,
|
||||
'hddtemp':self.ui.lineEdit_hddTemp, 'mem':self.ui.lineEdit_mem,
|
||||
'net':self.ui.lineEdit_net, 'swap':self.ui.lineEdit_swap,
|
||||
'temp':self.ui.lineEdit_temp, 'uptime':self.ui.lineEdit_uptime,
|
||||
'pkg':self.ui.lineEdit_pkg, 'player':self.ui.lineEdit_player,
|
||||
'ps':self.ui.lineEdit_ps, 'time':self.ui.lineEdit_time}
|
||||
self.sliders = {'bat':self.ui.slider_bat, 'cpu':self.ui.slider_cpu,
|
||||
'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,
|
||||
'hddtemp':self.ui.slider_hddTemp, 'mem':self.ui.slider_mem,
|
||||
'net':self.ui.slider_net, 'swap':self.ui.slider_swap,
|
||||
'temp':self.ui.slider_temp, 'uptime':self.ui.slider_uptime,
|
||||
'pkg':self.ui.slider_pkg, 'player':self.ui.slider_player,
|
||||
'ps':self.ui.slider_ps, 'time':self.ui.slider_time}
|
||||
|
||||
for item in self.checkboxes.values():
|
||||
QObject.connect(item, SIGNAL("stateChanged(int)"), self.setStatus)
|
||||
for item in self.sliders.values():
|
||||
QObject.connect(item, SIGNAL("valueChanged(int)"), self.setSlider)
|
||||
for item in self.checkboxes.values():
|
||||
QObject.connect(item, SIGNAL("stateChanged(int)"), self.setStatus)
|
||||
|
||||
|
||||
def setSlider(self):
|
||||
"""function to set sliders"""
|
||||
if self.debug: qDebug("[PTM] [widget.py] [setSlider]")
|
||||
if (self.sender().isEnabled() == True):
|
||||
second_slider = self.sender()
|
||||
order = []
|
||||
for slider in self.sliders.values():
|
||||
if (slider.isEnabled() == True):
|
||||
order.append(slider.value())
|
||||
if ((slider.value() == self.sender().value()) and (slider != self.sender())):
|
||||
second_slider = slider
|
||||
if (second_slider == self.sender()):
|
||||
return
|
||||
for value in range(len(order)):
|
||||
if (order.count(value+1) == 0):
|
||||
new_value = value + 1
|
||||
second_slider.setValue(new_value)
|
||||
|
||||
|
||||
def setStatus(self):
|
||||
"""function to enable label"""
|
||||
count = self.sliders['bat'].maximum()
|
||||
if self.debug: qDebug("[PTM] [widget.py] [setStatus]")
|
||||
for label in self.checkboxes.keys():
|
||||
if ((self.checkboxes[label].checkState() > 0) and (self.sliders[label].isEnabled() == False)):
|
||||
self.lineedits[label].setEnabled(True)
|
||||
self.sliders[label].setEnabled(True)
|
||||
if (label == 'bat'):
|
||||
self.ui.lineEdit_acdev.setEnabled(True)
|
||||
self.ui.lineEdit_batdev.setEnabled(True)
|
||||
elif (label == 'temp'):
|
||||
self.ui.comboBox_temp.setEnabled(True)
|
||||
elif (label == 'player'):
|
||||
self.ui.comboBox_player.setEnabled(True)
|
||||
slider_label = 0
|
||||
for slider in self.sliders.values():
|
||||
if (slider.isEnabled() == True):
|
||||
@ -86,13 +111,6 @@ class ConfigWindow(QWidget):
|
||||
elif ((self.checkboxes[label].checkState() == 0) and (self.sliders[label].isEnabled() == True)):
|
||||
self.lineedits[label].setDisabled(True)
|
||||
self.sliders[label].setDisabled(True)
|
||||
if (label == 'bat'):
|
||||
self.ui.lineEdit_acdev.setDisabled(True)
|
||||
self.ui.lineEdit_batdev.setDisabled(True)
|
||||
elif (label == 'temp'):
|
||||
self.ui.comboBox_temp.setDisabled(True)
|
||||
elif (label == 'player'):
|
||||
self.ui.comboBox_player.setDisabled(True)
|
||||
for slider in self.sliders.values():
|
||||
if ((slider.value() == slider.maximum()) and (slider != self.sliders[label])):
|
||||
slider.setValue(self.sliders[label].value())
|
||||
@ -106,23 +124,3 @@ class ConfigWindow(QWidget):
|
||||
else:
|
||||
slider.setMaximum(1)
|
||||
self.sliders[label].setValue(1)
|
||||
|
||||
def setSlider(self):
|
||||
"""function to set sliders"""
|
||||
if (self.sender().isEnabled() == True):
|
||||
second_slider = self.sender()
|
||||
order = []
|
||||
for slider in self.sliders.values():
|
||||
if (slider.isEnabled() == True):
|
||||
order.append(slider.value())
|
||||
if ((slider.value() == self.sender().value()) and (slider != self.sender())):
|
||||
second_slider = slider
|
||||
|
||||
if (second_slider == self.sender()):
|
||||
return
|
||||
|
||||
for value in range(len(order)):
|
||||
if (order.count(value+1) == 0):
|
||||
new_value = value + 1
|
||||
|
||||
second_slider.setValue(new_value)
|
@ -3,14 +3,14 @@ IconName=system
|
||||
Name=PyTextMonitor
|
||||
Comment=PyTextMonitor information
|
||||
|
||||
[Event/system]
|
||||
Name=System information
|
||||
Comment=System information
|
||||
[Event/battery]
|
||||
Name=Battery information
|
||||
Comment=Battery information
|
||||
Action=Popup
|
||||
|
||||
[Event/processor]
|
||||
Name=Processor information
|
||||
Comment=Processor information
|
||||
[Event/disk]
|
||||
Name=Disk information
|
||||
Comment=Disk information
|
||||
Action=Popup
|
||||
|
||||
[Event/graphical]
|
||||
@ -23,27 +23,22 @@ Name=Memory information
|
||||
Comment=Memory information
|
||||
Action=Popup
|
||||
|
||||
[Event/disk]
|
||||
Name=Disk information
|
||||
Comment=Disk information
|
||||
Action=Popup
|
||||
|
||||
[Event/network]
|
||||
Name=Network information
|
||||
Comment=Network information
|
||||
Action=Popup
|
||||
|
||||
[Event/battery]
|
||||
Name=Battery information
|
||||
Comment=Battery information
|
||||
Action=Popup
|
||||
|
||||
[Event/graphinfo]
|
||||
Name=Graphical Information
|
||||
Comment=Graphical Information
|
||||
Action=Popup
|
||||
|
||||
[Event/musicplayer]
|
||||
[Event/player]
|
||||
Name=Now playing
|
||||
Comment=Now playing
|
||||
Action=Popup
|
||||
|
||||
[Event/processor]
|
||||
Name=Processor information
|
||||
Comment=Processor information
|
||||
Action=Popup
|
||||
|
||||
[Event/system]
|
||||
Name=System information
|
||||
Comment=System information
|
||||
Action=Popup
|
645
sources/ptm/contents/ui/advanced.ui
Normal file
@ -0,0 +1,645 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ConfigWindow</class>
|
||||
<widget class="QWidget" name="ConfigWindow">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>700</width>
|
||||
<height>594</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>700</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QScrollArea" name="scrollArea_advanced">
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="contents_advanced">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>666</width>
|
||||
<height>823</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_layout">
|
||||
<property name="text">
|
||||
<string>Vertical layout</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_popup">
|
||||
<property name="text">
|
||||
<string>Enable popup on mouse click</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_leftStretch">
|
||||
<property name="text">
|
||||
<string>Add stretch to left/top of the layout</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_rightStretch">
|
||||
<property name="text">
|
||||
<string>Add stretch to right/bottom of the layout</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_timeFormat">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_timeFormat">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Custom time format</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_timeFormat">
|
||||
<property name="toolTip">
|
||||
<string>$dddd - long weekday
|
||||
$ddd - short weekday
|
||||
$dd - day
|
||||
$d - day w\o zero
|
||||
$MMMM - long month
|
||||
$MMM - short month
|
||||
$MM - month
|
||||
$M - month w\o zero
|
||||
$yyyy - year
|
||||
$yy - short year
|
||||
$hh - hours (24 only)
|
||||
$h - hours w\o zero (24 only)
|
||||
$mm - minutes
|
||||
$m - minutes w\o zero
|
||||
$ss - seconds
|
||||
$s - seconds w\o zero</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_uptimeFormat">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_uptimeFormat">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Custom uptime format</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_uptimeFormat">
|
||||
<property name="toolTip">
|
||||
<string>$dd - uptime days
|
||||
$d - uptime days without zero
|
||||
$hh - uptime hours
|
||||
$h - uptime hours without zero
|
||||
$mm - uptime minutes
|
||||
$m - uptime minutes without zero</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_tempUnits">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_tempUnits">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Temperature units</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_tempUnits">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_tempUnits">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">Celsius</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">Fahrenheit</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">Kelvin</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="layout_tempDevice">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_tempDeviceSelect">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_tempDevice">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Temperature devices</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_tempDevice">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_tempDevice">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QListWidget" name="listWidget_tempDevice">
|
||||
<property name="toolTip">
|
||||
<string>Editable
|
||||
del - remove item</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="layout_mount">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_mountSelect">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_mount">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Mount points</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_mount">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_mount">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QListWidget" name="listWidget_mount">
|
||||
<property name="toolTip">
|
||||
<string>Editable
|
||||
del - remove item</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="layout_hddSpeedDevice">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_hddSpeedDeviceSelect">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_hddSpeedDevice">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>HDD devices (speed)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_hddSpeedDevice">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_hddSpeedDevice">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QListWidget" name="listWidget_hddSpeedDevice">
|
||||
<property name="toolTip">
|
||||
<string>Editable
|
||||
del - remove item</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="layout_hddDevice">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_hddDeviceSelect">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_hddDevice">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>HDD devices (temp)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_hddDevice">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_hddDevice">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QListWidget" name="listWidget_hddDevice">
|
||||
<property name="toolTip">
|
||||
<string>Editable
|
||||
del - remove item</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_netdir">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_netdir">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Network directory</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_netdir">
|
||||
<property name="toolTip">
|
||||
<string>"/sys/class/net" by default</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_netdev">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_netdev">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Disable auto select device and set specified device</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Set network device</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_netdev">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_batdev">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_batdev">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Battery device</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_batdev">
|
||||
<property name="toolTip">
|
||||
<string>"/sys/class/power_supply/BAT0/capacity" by default</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_acOnline">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_acOnline">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>AC online tag</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_acOnline">
|
||||
<property name="toolTip">
|
||||
<string>Line, which returns when AC is online</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_acOffline">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_acOffline">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>AC offline tag</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_acOffline">
|
||||
<property name="toolTip">
|
||||
<string>Line, which returns when AC is offline</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_acdev">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_acdev">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>AC device</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_acdev">
|
||||
<property name="toolTip">
|
||||
<string>"/sys/class/power_supply/AC/online" by default</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_advanced">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>scrollArea_advanced</tabstop>
|
||||
<tabstop>checkBox_layout</tabstop>
|
||||
<tabstop>checkBox_popup</tabstop>
|
||||
<tabstop>checkBox_leftStretch</tabstop>
|
||||
<tabstop>checkBox_rightStretch</tabstop>
|
||||
<tabstop>lineEdit_timeFormat</tabstop>
|
||||
<tabstop>lineEdit_uptimeFormat</tabstop>
|
||||
<tabstop>comboBox_tempUnits</tabstop>
|
||||
<tabstop>comboBox_tempDevice</tabstop>
|
||||
<tabstop>pushButton_tempDevice</tabstop>
|
||||
<tabstop>listWidget_tempDevice</tabstop>
|
||||
<tabstop>comboBox_mount</tabstop>
|
||||
<tabstop>pushButton_mount</tabstop>
|
||||
<tabstop>listWidget_mount</tabstop>
|
||||
<tabstop>comboBox_hddSpeedDevice</tabstop>
|
||||
<tabstop>pushButton_hddSpeedDevice</tabstop>
|
||||
<tabstop>listWidget_hddSpeedDevice</tabstop>
|
||||
<tabstop>comboBox_hddDevice</tabstop>
|
||||
<tabstop>pushButton_hddDevice</tabstop>
|
||||
<tabstop>listWidget_hddDevice</tabstop>
|
||||
<tabstop>lineEdit_netdir</tabstop>
|
||||
<tabstop>checkBox_netdev</tabstop>
|
||||
<tabstop>comboBox_netdev</tabstop>
|
||||
<tabstop>lineEdit_batdev</tabstop>
|
||||
<tabstop>lineEdit_acOnline</tabstop>
|
||||
<tabstop>lineEdit_acOffline</tabstop>
|
||||
<tabstop>lineEdit_acdev</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
373
sources/ptm/contents/ui/appearance.ui
Normal file
@ -0,0 +1,373 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ConfigWindow</class>
|
||||
<widget class="QWidget" name="ConfigWindow">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>700</width>
|
||||
<height>594</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>700</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QScrollArea" name="scrollArea_appearance">
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="contents_appearance">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>684</width>
|
||||
<height>578</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_10">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_interval">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_interval">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Time interval</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_interval">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_interval">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>10000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>500</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>2000</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_font">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_font">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_font">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QFontComboBox" name="fontComboBox">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_fontSize">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontSize">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font size</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_fontSize">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_fontSize">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>99</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>12</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_color">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_color">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_color">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_style">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_style">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font style</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_style">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_style">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">normal</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">italic</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_weight">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_weight">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font weight</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_weight">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>19</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_weight">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>1000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>50</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>400</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_text">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KColorCombo</class>
|
||||
<extends>QComboBox</extends>
|
||||
<header>kcolorcombo.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
480
sources/ptm/contents/ui/deconfig.ui
Normal file
@ -0,0 +1,480 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ConfigWindow</class>
|
||||
<widget class="QWidget" name="ConfigWindow">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>700</width>
|
||||
<height>594</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>700</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="QScrollArea" name="scrollArea_dattaengine">
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="contents_dattaengine">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>684</width>
|
||||
<height>578</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<layout class="QVBoxLayout" name="layout_customCmd">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_customCommand">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_customCommand">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Custom command</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_customCommand">
|
||||
<property name="toolTip">
|
||||
<string>Custom command to run</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_customCommand">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QListWidget" name="listWidget_customCommand">
|
||||
<property name="toolTip">
|
||||
<string>Editable
|
||||
del - remove item</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_gpudev">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_gpudev">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>GPU device</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_gpudev">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">auto</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">disable</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">nvidia</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">ati</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_hdddev">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_hdddev">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>HDD</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_hdddev">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_hddtempCmd">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_hddtempCmd">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>hddtemp cmd</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_hddtempCmd">
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_mpdaddress">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_mpdaddress">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>MPD address</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_mpdaddress">
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_mpdport">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_mpdport">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>MPD port</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_mpdport">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>19</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_mpdport">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>50000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>6600</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<layout class="QVBoxLayout" name="layout_pkgCommand">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_pkgCommandSelect">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_pkgCommand">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Package manager</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_pkgCommand">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">pacman -Qu</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">apt-show-versions -u -b</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">aptitude search '~U'</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">yum list updates</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">pkg_version -I -l '<'</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">urpmq --auto-select</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_pkgCommandNum">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_pkgCommandNum">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Number of null lines</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_pkgCommandNum">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_pkgCommand">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QListWidget" name="listWidget_pkgCommand">
|
||||
<property name="toolTip">
|
||||
<string>Editable
|
||||
del - remove item</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_playerSelect">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_playerSelect">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Music player</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_playerSelect">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">amarok</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">clementine</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">mpd</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">qmmp</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<spacer name="spacer_dataengine">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>657</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
395
sources/ptm/contents/ui/tooltipconfig.ui
Normal file
@ -0,0 +1,395 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ConfigWindow</class>
|
||||
<widget class="QWidget" name="ConfigWindow">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>700</width>
|
||||
<height>594</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>700</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_tooltip">
|
||||
<property name="text">
|
||||
<string>CPU, CPU clock, memory, swap and network labels support graphical tooltip. To enable them just make needed checkbox fully checked.</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QScrollArea" name="scrollArea_tooltip">
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="contents_tooltip">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>684</width>
|
||||
<height>542</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_9">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_tooltipNum">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_tooltipNum">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Number of values for tooltips</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_tooltipNum">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>19</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_tooltipNum">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>50</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>1000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>25</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>100</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_cpuclockColor">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_cpuclockColor">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>CPU clock color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_cpuclockColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_cpuclock">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_swapColor">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_swapColor">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Swap color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_swapColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_swap">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_cpuColor">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_cpuColor">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>CPU color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_cpuColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_cpu">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_downColor">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_downColor">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Download speed color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_downColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_down">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_memColor">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_memColor">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Memory color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_memColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_mem">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_upColor">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_upColor">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Upload speed color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_upColor">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="KColorCombo" name="kcolorcombo_up">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_tooltip">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>289</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KColorCombo</class>
|
||||
<extends>QComboBox</extends>
|
||||
<header>kcolorcombo.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>spinBox_tooltipNum</tabstop>
|
||||
<tabstop>kcolorcombo_cpuclock</tabstop>
|
||||
<tabstop>kcolorcombo_swap</tabstop>
|
||||
<tabstop>kcolorcombo_cpu</tabstop>
|
||||
<tabstop>kcolorcombo_down</tabstop>
|
||||
<tabstop>kcolorcombo_mem</tabstop>
|
||||
<tabstop>kcolorcombo_up</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
WDIR=`pwd` # working dir
|
||||
SATELLITE_LIST=satellite.list
|
||||
BACKGROUND_LIST=background.list
|
||||
|
||||
# Background list
|
||||
cd "$WDIR"
|
||||
cd ../images
|
||||
ls -1 background_* | sed -e "s/background_//g" | sed -e "s/_/ /g" | sed -e "s/\.jpg//g" | sed -e "s/\.png//g" | sed -e "s/\.gif//g" | grep -v '^$' | sort --unique --ignore-leading-blanks > "$WDIR/background.list"
|
||||
|
||||
# Satellite list
|
||||
cd "$WDIR"
|
||||
cd ../data
|
||||
cat satellite_images.xml | grep image\ name | sed -e "s/.*<image name=\"\([^\"]*\).*/\1/" | sed -e "s/\&/\&/g" | sed -e "s/\'/'/g" | sed -e "s/\"/\"/g" | sed -e "s/\</</g" | sed -e "s/\>/>/g" | grep -v '^$' | sort --unique --ignore-leading-blanks > "$WDIR/satellite.list"
|
@ -1,13 +1,13 @@
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# Copyright (C) 2014
|
||||
# This file is distributed under the same license as the PyTextMonitor package.
|
||||
#
|
||||
# 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-03-31 00:58+0400\n"
|
||||
"PO-Revision-Date: 2014-03-31 01:01+0400\n"
|
||||
"POT-Creation-Date: 2014-06-04 22:48+0400\n"
|
||||
"PO-Revision-Date: 2014-06-04 22:48+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||
"Language: ru\n"
|
||||
@ -18,357 +18,623 @@ msgstr ""
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:32
|
||||
#. i18n: ectx: property (windowTitle), widget (QWidget, ConfigWindow)
|
||||
#: rc.cpp:3
|
||||
msgid "Form"
|
||||
msgstr "Form"
|
||||
#: code/configdef.py:273
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:42
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, settings)
|
||||
#: rc.cpp:6
|
||||
msgid "Widget settings"
|
||||
msgstr "Widget settings"
|
||||
#: code/configdef.py:275
|
||||
msgid "Advanced"
|
||||
msgstr "Advanced"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:48
|
||||
#. i18n: ectx: property (text), widget (QLabel, label)
|
||||
#: rc.cpp:9
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"pytextmonitor/\">project homepage</a>"
|
||||
msgstr ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"pytextmonitor/\">project homepage</a>"
|
||||
#: code/configdef.py:277
|
||||
msgid "Tooltip"
|
||||
msgstr "Tooltip"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:66
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
|
||||
#: rc.cpp:12
|
||||
msgid "Time"
|
||||
msgstr "Time"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:85
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
|
||||
#: 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: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o "
|
||||
"zero; \n"
|
||||
"\t$MMMM - long month; $MMM - short month; $MM - month; $M - month w\\o "
|
||||
"zero; \n"
|
||||
"\t$yyyy - year; $yy short year; \n"
|
||||
"\t$hh - hours (24 only); $h - hours w\\o zero (24 only); \n"
|
||||
"\t$mm - minutes; $m - minutes w\\o zero;\n"
|
||||
"\t$ss - seconds; $s - seconds w\\o zero"
|
||||
msgstr ""
|
||||
"$time - time in default format\n"
|
||||
"$isotime - time in ISO format\n"
|
||||
"$shorttime - time in short format\n"
|
||||
"$longtime - time in log format\n"
|
||||
"$custom: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o "
|
||||
"zero; \n"
|
||||
"\t$MMMM - long month; $MMM - short month; $MM - month; $M - month w\\o "
|
||||
"zero; \n"
|
||||
"\t$yyyy - year; $yy short year; \n"
|
||||
"\t$hh - hours (24 only); $h - hours w\\o zero (24 only); \n"
|
||||
"\t$mm - minutes; $m - minutes w\\o zero;\n"
|
||||
"\t$ss - seconds; $s - seconds w\\o zero"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:130
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
|
||||
#: rc.cpp:27
|
||||
msgid "Uptime"
|
||||
msgstr "Uptime"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:141
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
|
||||
#: rc.cpp:30
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes"
|
||||
msgstr ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:189
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
|
||||
#: rc.cpp:34
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:200
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
|
||||
#: rc.cpp:38
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$cpu - total load CPU, %\n"
|
||||
"$ccpu - load CPU for each core, %"
|
||||
msgstr ""
|
||||
"$cpu - total load CPU, %\n"
|
||||
"$ccpu - load CPU for each core, %"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:248
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
|
||||
#: rc.cpp:42
|
||||
msgid "CPU Clock"
|
||||
msgstr "CPU Clock"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:259
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
|
||||
#: rc.cpp:45
|
||||
msgid ""
|
||||
"$cpucl - average CPU clock, MHz\n"
|
||||
"$ccpucl - CPU clock for each core, MHz"
|
||||
msgstr ""
|
||||
"$cpucl - average CPU clock, MHz\n"
|
||||
"$ccpucl - CPU clock for each core, MHz"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:307
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
|
||||
#: rc.cpp:49
|
||||
msgid "Temperature"
|
||||
msgstr "Temperature"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:330
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
|
||||
#: rc.cpp:52
|
||||
msgid "$temp - physical temperature on CPU"
|
||||
msgstr "$temp - physical temperature on CPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:378
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
|
||||
#: rc.cpp:55
|
||||
msgid "GPU"
|
||||
msgstr "GPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:388
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
|
||||
#: rc.cpp:59
|
||||
#, no-c-format
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr "$gpu - gpu usage, %"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:436
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
|
||||
#: rc.cpp:62
|
||||
msgid "GPU Temp"
|
||||
msgstr "GPU Temp"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:446
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
|
||||
#: rc.cpp:65
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr "$gputemp - physical temperature on GPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:494
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
|
||||
#: rc.cpp:68
|
||||
msgid "Memory"
|
||||
msgstr "Memory"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:505
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
|
||||
#: rc.cpp:72
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB"
|
||||
msgstr ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:553
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
|
||||
#: rc.cpp:76
|
||||
msgid "Swap"
|
||||
msgstr "Swap"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:564
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
|
||||
#: rc.cpp:80
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB"
|
||||
msgstr ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:612
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
|
||||
#: rc.cpp:84
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:622
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
|
||||
#: rc.cpp:88
|
||||
#, no-c-format
|
||||
msgid "@@/;@@ - mount point usage, %"
|
||||
msgstr "@@/;@@ - mount point usage, %"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:670
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
|
||||
#: rc.cpp:91
|
||||
msgid "HDD Temp"
|
||||
msgstr "HDD Temp"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:680
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
|
||||
#: rc.cpp:94
|
||||
msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
|
||||
msgstr "@@/dev/sda@@ - physical temperature on /dev/sda"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:728
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
|
||||
#: rc.cpp:97
|
||||
msgid "Network"
|
||||
msgstr "Network"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:740
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
|
||||
#: rc.cpp:100
|
||||
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"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:788
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
|
||||
#: rc.cpp:105
|
||||
msgid "Battery"
|
||||
msgstr "Battery"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:799
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
|
||||
#: rc.cpp:109
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:863
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
|
||||
#: rc.cpp:113
|
||||
msgid "Battery device"
|
||||
msgstr "Battery device"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:870
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
|
||||
#: rc.cpp:116
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:906
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
|
||||
#: rc.cpp:119
|
||||
msgid "AC device"
|
||||
msgstr "AC device"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:913
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
|
||||
#: rc.cpp:122
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" by default"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:933
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
|
||||
#: rc.cpp:125
|
||||
msgid "Music player"
|
||||
msgstr "Music player"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:950
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
|
||||
#: rc.cpp:128
|
||||
msgid "amarok"
|
||||
msgstr "amarok"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:955
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
|
||||
#: rc.cpp:131
|
||||
msgid "mpd"
|
||||
msgstr "mpd"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:960
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
|
||||
#: rc.cpp:134
|
||||
msgid "qmmp"
|
||||
msgstr "qmmp"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:972
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
|
||||
#: rc.cpp:137
|
||||
msgid ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
"$progress - song progress\n"
|
||||
"$time - song duration\n"
|
||||
"$title - song title"
|
||||
msgstr ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
"$progress - song progress\n"
|
||||
"$time - song duration\n"
|
||||
"$title - song title"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1026
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, appearance)
|
||||
#: rc.cpp:144
|
||||
#: code/configdef.py:279
|
||||
msgid "Appearance"
|
||||
msgstr "Appearance"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1040
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: rc.cpp:147
|
||||
#: code/configdef.py:281
|
||||
msgid "DataEngine"
|
||||
msgstr "DataEngine"
|
||||
|
||||
#: code/main.py:117
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Run ksysguard"
|
||||
|
||||
#: code/main.py:119
|
||||
msgid "Show README"
|
||||
msgstr "Show README"
|
||||
|
||||
#: code/main.py:121
|
||||
msgid "Update text"
|
||||
msgstr "Update text"
|
||||
|
||||
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
|
||||
msgid "Form"
|
||||
msgstr "Form"
|
||||
|
||||
#: rc.cpp:6
|
||||
msgid "Vertical layout"
|
||||
msgstr "Vertical layout"
|
||||
|
||||
#: rc.cpp:9
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Enable popup on mouse click"
|
||||
|
||||
#: rc.cpp:12
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Add stretch to left/top of the layout"
|
||||
|
||||
#: rc.cpp:15
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Add stretch to right/bottom of the layout"
|
||||
|
||||
#: rc.cpp:18
|
||||
msgid "Custom time format"
|
||||
msgstr "Custom time format"
|
||||
|
||||
#: rc.cpp:21
|
||||
msgid ""
|
||||
"$dddd - long weekday\n"
|
||||
"$ddd - short weekday\n"
|
||||
"$dd - day\n"
|
||||
"$d - day w\\o zero\n"
|
||||
"$MMMM - long month\n"
|
||||
"$MMM - short month\n"
|
||||
"$MM - month\n"
|
||||
"$M - month w\\o zero\n"
|
||||
"$yyyy - year\n"
|
||||
"$yy - short year\n"
|
||||
"$hh - hours (24 only)\n"
|
||||
"$h - hours w\\o zero (24 only)\n"
|
||||
"$mm - minutes\n"
|
||||
"$m - minutes w\\o zero\n"
|
||||
"$ss - seconds\n"
|
||||
"$s - seconds w\\o zero"
|
||||
msgstr ""
|
||||
"$dddd - long weekday\n"
|
||||
"$ddd - short weekday\n"
|
||||
"$dd - day\n"
|
||||
"$d - day w\\o zero\n"
|
||||
"$MMMM - long month\n"
|
||||
"$MMM - short month\n"
|
||||
"$MM - month\n"
|
||||
"$M - month w\\o zero\n"
|
||||
"$yyyy - year\n"
|
||||
"$yy - short year\n"
|
||||
"$hh - hours (24 only)\n"
|
||||
"$h - hours w\\o zero (24 only)\n"
|
||||
"$mm - minutes\n"
|
||||
"$m - minutes w\\o zero\n"
|
||||
"$ss - seconds\n"
|
||||
"$s - seconds w\\o zero"
|
||||
|
||||
#: rc.cpp:39
|
||||
msgid "Custom uptime format"
|
||||
msgstr "Custom uptime format"
|
||||
|
||||
#: rc.cpp:42
|
||||
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 - 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"
|
||||
|
||||
#: rc.cpp:50
|
||||
msgid "Temperature units"
|
||||
msgstr "Temperature units"
|
||||
|
||||
#: rc.cpp:53
|
||||
msgid "Temperature devices"
|
||||
msgstr "Temperature devices"
|
||||
|
||||
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
|
||||
msgid "Add"
|
||||
msgstr "Add"
|
||||
|
||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
|
||||
#: rc.cpp:63
|
||||
msgid "Mount points"
|
||||
msgstr "Mount points"
|
||||
|
||||
#: rc.cpp:73
|
||||
msgid "HDD devices (speed)"
|
||||
msgstr "HDD (speed)"
|
||||
|
||||
#: rc.cpp:83
|
||||
msgid "HDD devices (temp)"
|
||||
msgstr "HDD (temp)"
|
||||
|
||||
#: rc.cpp:93
|
||||
msgid "Network directory"
|
||||
msgstr "Network directory"
|
||||
|
||||
#: rc.cpp:96
|
||||
msgid "\"/sys/class/net\" by default"
|
||||
msgstr "\"/sys/class/net\" by default"
|
||||
|
||||
#: rc.cpp:99
|
||||
msgid "Disable auto select device and set specified device"
|
||||
msgstr "Disable auto select device and set specified device"
|
||||
|
||||
#: rc.cpp:102
|
||||
msgid "Set network device"
|
||||
msgstr "Set network device"
|
||||
|
||||
#: rc.cpp:105
|
||||
msgid "Battery device"
|
||||
msgstr "Battery device"
|
||||
|
||||
#: rc.cpp:108
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
|
||||
#: rc.cpp:111
|
||||
msgid "AC online tag"
|
||||
msgstr "AC online tag"
|
||||
|
||||
#: rc.cpp:114
|
||||
msgid "Line, which returns when AC is online"
|
||||
msgstr "Line, which returns when AC is online"
|
||||
|
||||
#: rc.cpp:117
|
||||
msgid "AC offline tag"
|
||||
msgstr "AC offline tag"
|
||||
|
||||
#: rc.cpp:120
|
||||
msgid "Line, which returns when AC is offline"
|
||||
msgstr "Line, which returns when AC is offline"
|
||||
|
||||
#: rc.cpp:123
|
||||
msgid "AC device"
|
||||
msgstr "AC device"
|
||||
|
||||
#: rc.cpp:126
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" by default"
|
||||
|
||||
#: rc.cpp:132
|
||||
msgid "Time interval"
|
||||
msgstr "Time interval"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1095
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
||||
#: rc.cpp:150
|
||||
#: rc.cpp:135
|
||||
msgid "Font"
|
||||
msgstr "Font"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1135
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
||||
#: rc.cpp:153
|
||||
#: rc.cpp:138
|
||||
msgid "Font size"
|
||||
msgstr "Font size"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1190
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_color)
|
||||
#: rc.cpp:156
|
||||
#: rc.cpp:141
|
||||
msgid "Font color"
|
||||
msgstr "Font color"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1230
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_style)
|
||||
#: rc.cpp:159
|
||||
#: rc.cpp:144
|
||||
msgid "Font style"
|
||||
msgstr "Font style"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1280
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_weight)
|
||||
#: rc.cpp:162
|
||||
#: rc.cpp:147
|
||||
msgid "Font weight"
|
||||
msgstr "Font weight"
|
||||
|
||||
#: rc.cpp:163
|
||||
#: rc.cpp:153
|
||||
msgid "Custom command"
|
||||
msgstr "Custom command"
|
||||
|
||||
#: rc.cpp:156
|
||||
msgid "Custom command to run"
|
||||
msgstr "Custom command to run"
|
||||
|
||||
#: rc.cpp:166
|
||||
msgid "GPU device"
|
||||
msgstr "GPU device"
|
||||
|
||||
#: rc.cpp:169 rc.cpp:311
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: rc.cpp:172
|
||||
msgid "hddtemp cmd"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:175
|
||||
msgid "MPD address"
|
||||
msgstr "MPD address"
|
||||
|
||||
#: rc.cpp:178
|
||||
msgid "MPD port"
|
||||
msgstr "MPD port"
|
||||
|
||||
#: rc.cpp:181 rc.cpp:369
|
||||
msgid "Package manager"
|
||||
msgstr "Package manager"
|
||||
|
||||
#: rc.cpp:184
|
||||
msgid "Number of null lines"
|
||||
msgstr "Number of null lines"
|
||||
|
||||
#: rc.cpp:194 rc.cpp:351
|
||||
msgid "Music player"
|
||||
msgstr "Music player"
|
||||
|
||||
#: rc.cpp:200
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
msgstr ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
|
||||
#: rc.cpp:203
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Number of values for tooltips"
|
||||
|
||||
#: rc.cpp:206
|
||||
msgid "CPU clock color"
|
||||
msgstr "CPU clock color"
|
||||
|
||||
#: rc.cpp:209
|
||||
msgid "Swap color"
|
||||
msgstr "Swap color"
|
||||
|
||||
#: rc.cpp:212
|
||||
msgid "CPU color"
|
||||
msgstr "CPU color"
|
||||
|
||||
#: rc.cpp:215
|
||||
msgid "Download speed color"
|
||||
msgstr "Download speed color"
|
||||
|
||||
#: rc.cpp:218
|
||||
msgid "Memory color"
|
||||
msgstr "Memory color"
|
||||
|
||||
#: rc.cpp:221
|
||||
msgid "Upload speed color"
|
||||
msgstr "Upload speed color"
|
||||
|
||||
#: rc.cpp:227
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"pytextmonitor/\">project homepage</a>"
|
||||
msgstr ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"pytextmonitor/\">project homepage</a>"
|
||||
|
||||
#: rc.cpp:230
|
||||
msgid "Time"
|
||||
msgstr "Time"
|
||||
|
||||
#: rc.cpp:233
|
||||
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 - 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"
|
||||
|
||||
#: rc.cpp:240
|
||||
msgid "Uptime"
|
||||
msgstr "Uptime"
|
||||
|
||||
#: rc.cpp:243
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom - custom format"
|
||||
|
||||
#: rc.cpp:247
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
#: rc.cpp:251
|
||||
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 - 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, %"
|
||||
|
||||
#: rc.cpp:259
|
||||
msgid "CPU Clock"
|
||||
msgstr "CPU Clock"
|
||||
|
||||
#: rc.cpp:262
|
||||
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 - 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"
|
||||
|
||||
#: rc.cpp:270
|
||||
msgid "Temperature"
|
||||
msgstr "Temperature"
|
||||
|
||||
#: rc.cpp:273
|
||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||
msgstr "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||
|
||||
#: rc.cpp:276
|
||||
msgid "GPU"
|
||||
msgstr "GPU"
|
||||
|
||||
#: rc.cpp:280
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr "$gpu - gpu usage, %"
|
||||
|
||||
#: rc.cpp:283
|
||||
msgid "GPU Temp"
|
||||
msgstr "GPU Temp"
|
||||
|
||||
#: rc.cpp:286
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr "$gputemp - physical temperature on GPU"
|
||||
|
||||
#: rc.cpp:289
|
||||
msgid "Memory"
|
||||
msgstr "Memory"
|
||||
|
||||
#: rc.cpp:293
|
||||
msgid ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB\n"
|
||||
"$memgb - RAM usage, GB\n"
|
||||
"$memtotmb - total RAM, MB\n"
|
||||
"$memtotgb - total RAM, GB"
|
||||
msgstr ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB\n"
|
||||
"$memgb - RAM usage, GB\n"
|
||||
"$memtotmb - total RAM, MB\n"
|
||||
"$memtotgb - total RAM, GB"
|
||||
|
||||
#: rc.cpp:300
|
||||
msgid "Swap"
|
||||
msgstr "Swap"
|
||||
|
||||
#: rc.cpp:304
|
||||
msgid ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB\n"
|
||||
"$swapgb - swap usage, GB\n"
|
||||
"$swaptotmb - total swap, MB\n"
|
||||
"$swaptotgb - total swap, GB"
|
||||
msgstr ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB\n"
|
||||
"$swapgb - swap usage, GB\n"
|
||||
"$swaptotmb - total swap, MB\n"
|
||||
"$swaptotgb - total swap, GB"
|
||||
|
||||
#: rc.cpp:315
|
||||
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\n"
|
||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
||||
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\n"
|
||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
||||
|
||||
#: rc.cpp:322
|
||||
msgid "HDD speed"
|
||||
msgstr "HDD speed"
|
||||
|
||||
#: rc.cpp:325
|
||||
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:329
|
||||
msgid "HDD temp"
|
||||
msgstr "HDD temp"
|
||||
|
||||
#: rc.cpp:332
|
||||
msgid ""
|
||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||
msgstr ""
|
||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||
|
||||
#: rc.cpp:335
|
||||
msgid "Network"
|
||||
msgstr "Network"
|
||||
|
||||
#: rc.cpp:338
|
||||
msgid ""
|
||||
"$down - download speed, KB/s\n"
|
||||
"$up - upload speed, KB/s\n"
|
||||
"$netdev - current network device"
|
||||
msgstr ""
|
||||
"$down - download speed, KB/s\n"
|
||||
"$up - upload speed, KB/s\n"
|
||||
"$netdev - current network device"
|
||||
|
||||
#: rc.cpp:343
|
||||
msgid "Battery"
|
||||
msgstr "Battery"
|
||||
|
||||
#: rc.cpp:347
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
|
||||
#: rc.cpp:354
|
||||
msgid ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
"$progress - song progress\n"
|
||||
"$time - song duration\n"
|
||||
"$title - song title"
|
||||
msgstr ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
"$progress - song progress\n"
|
||||
"$time - song duration\n"
|
||||
"$title - song title"
|
||||
|
||||
#: rc.cpp:361
|
||||
msgid "Processes"
|
||||
msgstr "Processes"
|
||||
|
||||
#: rc.cpp:364
|
||||
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:372
|
||||
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:375
|
||||
msgid "Custom"
|
||||
msgstr "Custom"
|
||||
|
||||
#: rc.cpp:378
|
||||
msgid ""
|
||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
msgstr ""
|
||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
|
||||
#: rc.cpp:379
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: rc.cpp:164
|
||||
#: rc.cpp:380
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
||||
|
||||
#~ msgid "Widget settings"
|
||||
#~ msgstr "Widget settings"
|
||||
|
||||
#~ msgid "pacman -Qu"
|
||||
#~ msgstr "pacman -Qu"
|
||||
|
||||
#~ msgid "apt-show-versions -u -b"
|
||||
#~ msgstr "apt-show-versions -u -b"
|
||||
|
||||
#~ msgid "aptitude search '~U'"
|
||||
#~ msgstr "aptitude search '~U'"
|
||||
|
||||
#~ msgid "yum list updates"
|
||||
#~ msgstr "yum list updates"
|
||||
|
||||
#~ msgid "pkg_version -I -l '<'"
|
||||
#~ msgstr "pkg_version -I -l '<'"
|
||||
|
||||
#~ msgid "urpmq --auto-select"
|
||||
#~ msgstr "urpmq --auto-select"
|
||||
|
||||
#~ 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 ""
|
||||
#~ "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"
|
||||
|
599
sources/ptm/po/es.po
Normal file
@ -0,0 +1,599 @@
|
||||
# Copyright (C) 2014
|
||||
# This file is distributed under the same license as the PyTextMonitor 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-06-04 22:48+0400\n"
|
||||
"PO-Revision-Date: 2014-06-05 10:21+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/configdef.py:273
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: code/configdef.py:275
|
||||
msgid "Advanced"
|
||||
msgstr "Avanzado"
|
||||
|
||||
#: code/configdef.py:277
|
||||
msgid "Tooltip"
|
||||
msgstr "Ventana emergente"
|
||||
|
||||
#: code/configdef.py:279
|
||||
msgid "Appearance"
|
||||
msgstr "Apariencia"
|
||||
|
||||
#: code/configdef.py:281
|
||||
msgid "DataEngine"
|
||||
msgstr "DataEngine"
|
||||
|
||||
#: code/main.py:117
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Ejecutar ksysguard"
|
||||
|
||||
#: code/main.py:119
|
||||
msgid "Show README"
|
||||
msgstr "Mostrar el README"
|
||||
|
||||
#: code/main.py:121
|
||||
msgid "Update text"
|
||||
msgstr "Actualizar texto"
|
||||
|
||||
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
|
||||
msgid "Form"
|
||||
msgstr "Formulario"
|
||||
|
||||
#: rc.cpp:6
|
||||
msgid "Vertical layout"
|
||||
msgstr "Orientación vertical"
|
||||
|
||||
#: rc.cpp:9
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Habilitar ventana emergente al hacer clic"
|
||||
|
||||
#: rc.cpp:12
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Añadir extensión a la izquierda/superior de la distribución"
|
||||
|
||||
#: rc.cpp:15
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Añadir extensión a la derecha/inferior de la distribución"
|
||||
|
||||
#: rc.cpp:18
|
||||
msgid "Custom time format"
|
||||
msgstr "Formato personalizado para la hora"
|
||||
|
||||
#: rc.cpp:21
|
||||
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:39
|
||||
msgid "Custom uptime format"
|
||||
msgstr "Formato personalizado para el tiempo de actividad del sistema"
|
||||
|
||||
#: rc.cpp:42
|
||||
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:50
|
||||
msgid "Temperature units"
|
||||
msgstr "Unidades de temperatura"
|
||||
|
||||
#: rc.cpp:53
|
||||
msgid "Temperature devices"
|
||||
msgstr "Dispositivos de temperatura"
|
||||
|
||||
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
|
||||
msgid "Add"
|
||||
msgstr "Añadir"
|
||||
|
||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
"Editable\n"
|
||||
"del - eliminar elemento"
|
||||
|
||||
#: rc.cpp:63
|
||||
msgid "Mount points"
|
||||
msgstr "Puntos de montaje"
|
||||
|
||||
#: rc.cpp:73
|
||||
msgid "HDD devices (speed)"
|
||||
msgstr "Disco duro (velocidad)"
|
||||
|
||||
#: rc.cpp:83
|
||||
msgid "HDD devices (temp)"
|
||||
msgstr "Disco duro (temperatura)"
|
||||
|
||||
#: rc.cpp:93
|
||||
msgid "Network directory"
|
||||
msgstr "Directorio de la red"
|
||||
|
||||
#: rc.cpp:96
|
||||
msgid "\"/sys/class/net\" by default"
|
||||
msgstr "\"/sys/class/net\" por defecto"
|
||||
|
||||
#: rc.cpp:99
|
||||
msgid "Disable auto select device and set specified device"
|
||||
msgstr "Inhabilitar selección automática del dispositivo y especificar uno"
|
||||
|
||||
#: rc.cpp:102
|
||||
msgid "Set network device"
|
||||
msgstr "Establecer dispositivo de red"
|
||||
|
||||
#: rc.cpp:105
|
||||
msgid "Battery device"
|
||||
msgstr "Dispositivo de batería"
|
||||
|
||||
#: rc.cpp:108
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" por defecto"
|
||||
|
||||
#: rc.cpp:111
|
||||
msgid "AC online tag"
|
||||
msgstr "Etiqueta para alimentación conectada"
|
||||
|
||||
#: rc.cpp:114
|
||||
msgid "Line, which returns when AC is online"
|
||||
msgstr "Línea que devuelve si la alimentación está conectada"
|
||||
|
||||
#: rc.cpp:117
|
||||
msgid "AC offline tag"
|
||||
msgstr "Etiqueta para la alimentación desconectada"
|
||||
|
||||
#: rc.cpp:120
|
||||
msgid "Line, which returns when AC is offline"
|
||||
msgstr "Línea que devuelve si la alimentación está desconectada"
|
||||
|
||||
#: rc.cpp:123
|
||||
msgid "AC device"
|
||||
msgstr "Dispositivo de alimentación"
|
||||
|
||||
#: rc.cpp:126
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" por defecto"
|
||||
|
||||
#: rc.cpp:132
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalo de tiempo"
|
||||
|
||||
#: rc.cpp:135
|
||||
msgid "Font"
|
||||
msgstr "Fuente"
|
||||
|
||||
#: rc.cpp:138
|
||||
msgid "Font size"
|
||||
msgstr "Tamaño de fuente"
|
||||
|
||||
#: rc.cpp:141
|
||||
msgid "Font color"
|
||||
msgstr "Color de fuente"
|
||||
|
||||
#: rc.cpp:144
|
||||
msgid "Font style"
|
||||
msgstr "Estilo de fuente"
|
||||
|
||||
#: rc.cpp:147
|
||||
msgid "Font weight"
|
||||
msgstr "Grosor de la fuente"
|
||||
|
||||
#: rc.cpp:153
|
||||
msgid "Custom command"
|
||||
msgstr "Comando personalizado"
|
||||
|
||||
#: rc.cpp:156
|
||||
msgid "Custom command to run"
|
||||
msgstr "Comando personalizado para ejecutar"
|
||||
|
||||
#: rc.cpp:166
|
||||
msgid "GPU device"
|
||||
msgstr "Dispositivo de GPU"
|
||||
|
||||
#: rc.cpp:169 rc.cpp:311
|
||||
msgid "HDD"
|
||||
msgstr "Disco duro"
|
||||
|
||||
#: rc.cpp:172
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "Comando hddtemp"
|
||||
|
||||
#: rc.cpp:175
|
||||
msgid "MPD address"
|
||||
msgstr "Dirección de MPD"
|
||||
|
||||
#: rc.cpp:178
|
||||
msgid "MPD port"
|
||||
msgstr "Puerto de MPD"
|
||||
|
||||
#: rc.cpp:181 rc.cpp:369
|
||||
msgid "Package manager"
|
||||
msgstr "Gestor de paquetes"
|
||||
|
||||
#: rc.cpp:184
|
||||
msgid "Number of null lines"
|
||||
msgstr "Número de líneas nulas"
|
||||
|
||||
#: rc.cpp:194 rc.cpp:351
|
||||
msgid "Music player"
|
||||
msgstr "Reproductor de música"
|
||||
|
||||
#: rc.cpp:200
|
||||
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:203
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Número de valores para las ventanas emergentes"
|
||||
|
||||
#: rc.cpp:206
|
||||
msgid "CPU clock color"
|
||||
msgstr "Color de la frecuencia de la CPU"
|
||||
|
||||
#: rc.cpp:209
|
||||
msgid "Swap color"
|
||||
msgstr "Color de la swap"
|
||||
|
||||
#: rc.cpp:212
|
||||
msgid "CPU color"
|
||||
msgstr "Color de la CPU"
|
||||
|
||||
#: rc.cpp:215
|
||||
msgid "Download speed color"
|
||||
msgstr "Color de la velocidad de recepción"
|
||||
|
||||
#: rc.cpp:218
|
||||
msgid "Memory color"
|
||||
msgstr "Color de la memoria"
|
||||
|
||||
#: rc.cpp:221
|
||||
msgid "Upload speed color"
|
||||
msgstr "Color de la velocidad de envío"
|
||||
|
||||
#: rc.cpp:227
|
||||
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:230
|
||||
msgid "Time"
|
||||
msgstr "Hora"
|
||||
|
||||
#: rc.cpp:233
|
||||
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:240
|
||||
msgid "Uptime"
|
||||
msgstr "Tiempo de actividad"
|
||||
|
||||
#: rc.cpp:243
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
"$uptime - tiempo de actividad del sistema\n"
|
||||
"$custom - formato personalizado"
|
||||
|
||||
#: rc.cpp:247
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
#: rc.cpp:251
|
||||
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:259
|
||||
msgid "CPU Clock"
|
||||
msgstr "Frecuencia de la CPU"
|
||||
|
||||
#: rc.cpp:262
|
||||
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:270
|
||||
msgid "Temperature"
|
||||
msgstr "Temperatura"
|
||||
|
||||
#: rc.cpp:273
|
||||
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:276
|
||||
msgid "GPU"
|
||||
msgstr "GPU"
|
||||
|
||||
#: rc.cpp:280
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr "$gpu - uso de la GPU, %"
|
||||
|
||||
#: rc.cpp:283
|
||||
msgid "GPU Temp"
|
||||
msgstr "Temperatura de la GPU"
|
||||
|
||||
#: rc.cpp:286
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr "$gputemp - temperatura física de la GPU"
|
||||
|
||||
#: rc.cpp:289
|
||||
msgid "Memory"
|
||||
msgstr "Memoria"
|
||||
|
||||
#: rc.cpp:293
|
||||
msgid ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB\n"
|
||||
"$memgb - RAM usage, GB\n"
|
||||
"$memtotmb - total RAM, MB\n"
|
||||
"$memtotgb - total RAM, GB"
|
||||
msgstr ""
|
||||
"$mem - uso de la RAM, %\n"
|
||||
"$memmb - uso de la RAM, MB\n"
|
||||
"$memgb - uso de la RAM, GB\n"
|
||||
"$memtotmb - uso total de la RAM, MB\n"
|
||||
"$memtotgb - uso total de la RAM, GB"
|
||||
|
||||
#: rc.cpp:300
|
||||
msgid "Swap"
|
||||
msgstr "Swap"
|
||||
|
||||
#: rc.cpp:304
|
||||
msgid ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB\n"
|
||||
"$swapgb - swap usage, GB\n"
|
||||
"$swaptotmb - total swap, MB\n"
|
||||
"$swaptotgb - total swap, GB"
|
||||
msgstr ""
|
||||
"$swap - uso de la swap, %\n"
|
||||
"$swapmb - uso de la swap, MB\n"
|
||||
"$swapgb - uso de la swap, GB\n"
|
||||
"$swaptotmb - uso total de la swap, MB\n"
|
||||
"$swaptotgb - uso total de la swap, GB"
|
||||
|
||||
#: rc.cpp:315
|
||||
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\n"
|
||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
||||
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\n"
|
||||
"$hddtotmbN - uso total para el punto de montaje N (a partir de 0), MB. "
|
||||
"Ejemplo: $hddtotmb0\n"
|
||||
"$hddtotgbN - uso total para el punto de montaje N (a partir de 0), GB. "
|
||||
"Ejemplo: $hddtotgb0"
|
||||
|
||||
#: rc.cpp:322
|
||||
msgid "HDD speed"
|
||||
msgstr "Velocidad del disco duro"
|
||||
|
||||
#: rc.cpp:325
|
||||
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 - velocidad de lectura 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:329
|
||||
msgid "HDD temp"
|
||||
msgstr "Temperatura del disco duro"
|
||||
|
||||
#: rc.cpp:332
|
||||
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:335
|
||||
msgid "Network"
|
||||
msgstr "Red"
|
||||
|
||||
#: rc.cpp:338
|
||||
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:343
|
||||
msgid "Battery"
|
||||
msgstr "Batería"
|
||||
|
||||
#: rc.cpp:347
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
"$bat - carga de la batería, %\n"
|
||||
"$ac - estado de la alimentación"
|
||||
|
||||
#: rc.cpp:354
|
||||
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:361
|
||||
msgid "Processes"
|
||||
msgstr "Procesos"
|
||||
|
||||
#: rc.cpp:364
|
||||
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:372
|
||||
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:375
|
||||
msgid "Custom"
|
||||
msgstr "Personalizado"
|
||||
|
||||
#: rc.cpp:378
|
||||
msgid ""
|
||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
msgstr ""
|
||||
"$customN - obtener la salida de ejecución del comando personalizado N (a "
|
||||
"partir de 0). Por ejemplo: $custom0"
|
||||
|
||||
#: 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"
|
||||
|
||||
#~ msgid "Widget settings"
|
||||
#~ msgstr "Configuración del componente"
|
||||
|
||||
#~ msgid "pacman -Qu"
|
||||
#~ msgstr "pacman -Qu"
|
||||
|
||||
#~ msgid "apt-show-versions -u -b"
|
||||
#~ msgstr "apt-show-versions -u -b"
|
||||
|
||||
#~ msgid "aptitude search '~U'"
|
||||
#~ msgstr "aptitude search '~U'"
|
||||
|
||||
#~ msgid "yum list updates"
|
||||
#~ msgstr "yum list updates"
|
||||
|
||||
#~ msgid "pkg_version -I -l '<'"
|
||||
#~ msgstr "pkg_version -I -l '<'"
|
||||
|
||||
#~ msgid "urpmq --auto-select"
|
||||
#~ msgstr "urpmq --auto-select"
|
@ -2,80 +2,42 @@
|
||||
BASEDIR="../contents" # root of translatable sources
|
||||
PROJECT="pytextmonitor" # project name
|
||||
BUGADDR="http://kde-look.org/content/show.php?content=157124" # MSGID-Bugs
|
||||
WDIR=`pwd` # working dir
|
||||
WDIR=$(pwd) # working dir
|
||||
SATELLITE_LIST=satellite.list
|
||||
BACKGROUND_LIST=background.list
|
||||
|
||||
add_list()
|
||||
{
|
||||
LIST=$1
|
||||
|
||||
if [ -z "$LIST" ]
|
||||
then
|
||||
echo ">>ERR<< add_list() - missing parameter LIST - exiting"
|
||||
return
|
||||
fi
|
||||
|
||||
if [ -f "$LIST" ]
|
||||
then
|
||||
cat $LIST | while read ROW
|
||||
do
|
||||
echo "tr2i18n(\"${ROW}\")" >> ${WDIR}/rc.cpp
|
||||
done
|
||||
else
|
||||
echo ">>ERR<< add_list() - file $LIST does not exist."
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
echo "Preparing rc files"
|
||||
cd ${BASEDIR}
|
||||
# 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
|
||||
xargs --arg-file=${WDIR}/rcfiles.list extractrc > ${WDIR}/rc.cpp
|
||||
|
||||
# additional string for KAboutData
|
||||
echo 'i18nc("NAME OF TRANSLATORS","Your names");' >> ${WDIR}/rc.cpp
|
||||
echo 'i18nc("EMAIL OF TRANSLATORS","Your emails");' >> ${WDIR}/rc.cpp
|
||||
|
||||
cd ${WDIR}
|
||||
|
||||
# Add Satellite list
|
||||
add_list "$SATELLITE_LIST"
|
||||
|
||||
# Add Background list
|
||||
add_list "$BACKGROUND_LIST"
|
||||
|
||||
cd "${BASEDIR}"
|
||||
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"
|
||||
echo 'i18nc("NAME OF TRANSLATORS","Your names");' >> "${WDIR}/rc.cpp"
|
||||
echo 'i18nc("EMAIL OF TRANSLATORS","Your emails");' >> "${WDIR}/rc.cpp"
|
||||
echo "Done preparing rc files"
|
||||
|
||||
|
||||
echo "Extracting messages"
|
||||
cd ${BASEDIR}
|
||||
# see above on sorting
|
||||
find . -name '*.cpp' -o -name '*.h' -o -name '*.c' | sort > ${WDIR}/infiles.list
|
||||
echo "rc.cpp" >> ${WDIR}/infiles.list
|
||||
cd ${WDIR}
|
||||
cd "${WDIR}"
|
||||
cd "${BASEDIR}"
|
||||
find . -name '*.cpp' -o -name '*.h' -o -name '*.c' -o -name '*.py' | sort > "${WDIR}/infiles.list"
|
||||
echo "rc.cpp" >> "${WDIR}/infiles.list"
|
||||
|
||||
cd "${WDIR}"
|
||||
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 \
|
||||
--msgid-bugs-address="${BUGADDR}" \
|
||||
--files-from=infiles.list -D ${BASEDIR} -D ${WDIR} -o ${PROJECT}.pot || { echo "error while calling xgettext. aborting."; exit 1; }
|
||||
--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; }
|
||||
echo "Done extracting messages"
|
||||
|
||||
|
||||
echo "Merging translations"
|
||||
catalogs=`find . -name '*.po'`
|
||||
catalogs=$(find . -name '*.po')
|
||||
for cat in $catalogs; do
|
||||
echo $cat
|
||||
msgmerge -o $cat.new $cat ${PROJECT}.pot
|
||||
mv $cat.new $cat
|
||||
echo $cat
|
||||
msgmerge -o "$cat.new" "$cat" "${PROJECT}.pot"
|
||||
mv "$cat.new" "$cat"
|
||||
done
|
||||
echo "Done merging translations"
|
||||
|
||||
|
||||
echo "Cleaning up"
|
||||
cd ${WDIR}
|
||||
rm rcfiles.list
|
||||
rm infiles.list
|
||||
rm rc.cpp
|
||||
cd "${WDIR}"
|
||||
rm -f rcfiles.list infiles.list rc.cpp
|
||||
echo "Done"
|
||||
|
||||
|
650
sources/ptm/po/fr.po
Normal file
@ -0,0 +1,650 @@
|
||||
# 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-06-04 22:48+0400\n"
|
||||
"PO-Revision-Date: 2014-06-05 19:24+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: French <kde-russian@lists.kde.ru>\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/configdef.py:273
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: code/configdef.py:275
|
||||
msgid "Advanced"
|
||||
msgstr "Avancé"
|
||||
|
||||
#: code/configdef.py:277
|
||||
msgid "Tooltip"
|
||||
msgstr "Conseil"
|
||||
|
||||
#: code/configdef.py:279
|
||||
msgid "Appearance"
|
||||
msgstr "Apparence"
|
||||
|
||||
#: code/configdef.py:281
|
||||
msgid "DataEngine"
|
||||
msgstr "Moteur de données"
|
||||
|
||||
#: code/main.py:117
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Lancer ksysguard"
|
||||
|
||||
#: code/main.py:119
|
||||
msgid "Show README"
|
||||
msgstr "Voir le README"
|
||||
|
||||
#: code/main.py:121
|
||||
msgid "Update text"
|
||||
msgstr "Mettre à jour le texte"
|
||||
|
||||
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
|
||||
msgid "Form"
|
||||
msgstr "Entrées"
|
||||
|
||||
#: rc.cpp:6
|
||||
msgid "Vertical layout"
|
||||
msgstr "Positionnement vertical"
|
||||
|
||||
#: rc.cpp:9
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Popup lors d'un click souris"
|
||||
|
||||
#: rc.cpp:12
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Étirer le positionnement vers haut/gauche"
|
||||
|
||||
#: rc.cpp:15
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Étirer le positionnement vers bas/droite"
|
||||
|
||||
#: rc.cpp:18
|
||||
msgid "Custom time format"
|
||||
msgstr "Format de l'heure personnalisé"
|
||||
|
||||
#: rc.cpp:21
|
||||
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:39
|
||||
msgid "Custom uptime format"
|
||||
msgstr "Temps de fonctionnement personalisé"
|
||||
|
||||
#: rc.cpp:42
|
||||
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:50
|
||||
msgid "Temperature units"
|
||||
msgstr "Unités de température"
|
||||
|
||||
#: rc.cpp:53
|
||||
msgid "Temperature devices"
|
||||
msgstr "Temperature des périphériques"
|
||||
|
||||
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
|
||||
msgid "Add"
|
||||
msgstr "Ajouter"
|
||||
|
||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
"Modifiable\n"
|
||||
"del - supprimer un élément"
|
||||
|
||||
#: rc.cpp:63
|
||||
msgid "Mount points"
|
||||
msgstr "Points de montage"
|
||||
|
||||
#: rc.cpp:73
|
||||
msgid "HDD devices (speed)"
|
||||
msgstr "Périphériques HDD (la vitesse)"
|
||||
|
||||
#: rc.cpp:83
|
||||
msgid "HDD devices (temp)"
|
||||
msgstr "Périphériques HDD (température)"
|
||||
|
||||
#: rc.cpp:93
|
||||
msgid "Network directory"
|
||||
msgstr "Voisinage réseau"
|
||||
|
||||
#: rc.cpp:96
|
||||
msgid "\"/sys/class/net\" by default"
|
||||
msgstr "\"/sys/class/net\" par défaut"
|
||||
|
||||
#: rc.cpp:99
|
||||
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:102
|
||||
msgid "Set network device"
|
||||
msgstr "Sélectionner le périphérique réseau"
|
||||
|
||||
#: rc.cpp:105
|
||||
msgid "Battery device"
|
||||
msgstr "Batterie"
|
||||
|
||||
#: rc.cpp:108
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" par défaut"
|
||||
|
||||
#: rc.cpp:111
|
||||
msgid "AC online tag"
|
||||
msgstr "Tag alimentation branchée"
|
||||
|
||||
#: rc.cpp:114
|
||||
msgid "Line, which returns when AC is online"
|
||||
msgstr "Ligne qui est renvoyée lorsque l'alimentation est branchée"
|
||||
|
||||
#: rc.cpp:117
|
||||
msgid "AC offline tag"
|
||||
msgstr "Tag alimentation débranchée"
|
||||
|
||||
#: rc.cpp:120
|
||||
msgid "Line, which returns when AC is offline"
|
||||
msgstr "Ligne, qui est renvoyée lorsque l'alimentation est débranchée"
|
||||
|
||||
#: rc.cpp:123
|
||||
msgid "AC device"
|
||||
msgstr "Périphérique d'alimentation"
|
||||
|
||||
#: rc.cpp:126
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" par défaut"
|
||||
|
||||
#: rc.cpp:132
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalle"
|
||||
|
||||
#: rc.cpp:135
|
||||
msgid "Font"
|
||||
msgstr "Police"
|
||||
|
||||
#: rc.cpp:138
|
||||
msgid "Font size"
|
||||
msgstr "Taille de la police"
|
||||
|
||||
#: rc.cpp:141
|
||||
msgid "Font color"
|
||||
msgstr "Couleur de la police"
|
||||
|
||||
#: rc.cpp:144
|
||||
msgid "Font style"
|
||||
msgstr "Style de la police"
|
||||
|
||||
#: rc.cpp:147
|
||||
msgid "Font weight"
|
||||
msgstr "Épaisseur de la police"
|
||||
|
||||
#: rc.cpp:153
|
||||
msgid "Custom command"
|
||||
msgstr "Commande personnalisée"
|
||||
|
||||
#: rc.cpp:156
|
||||
msgid "Custom command to run"
|
||||
msgstr "Commande personnalisée à exécuter"
|
||||
|
||||
#: rc.cpp:166
|
||||
msgid "GPU device"
|
||||
msgstr "Périphérique graphique"
|
||||
|
||||
#: rc.cpp:169 rc.cpp:311
|
||||
msgid "HDD"
|
||||
msgstr "Disque dur"
|
||||
|
||||
#: rc.cpp:172
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "Commande de température HDD"
|
||||
|
||||
#: rc.cpp:175
|
||||
msgid "MPD address"
|
||||
msgstr "Adresse MPD"
|
||||
|
||||
#: rc.cpp:178
|
||||
msgid "MPD port"
|
||||
msgstr "Port MPD"
|
||||
|
||||
#: rc.cpp:181 rc.cpp:369
|
||||
msgid "Package manager"
|
||||
msgstr "Gestionnaire de paquets"
|
||||
|
||||
#: rc.cpp:184
|
||||
msgid "Number of null lines"
|
||||
msgstr "Nombre d'éléments pour les conseils"
|
||||
|
||||
#: rc.cpp:194 rc.cpp:351
|
||||
msgid "Music player"
|
||||
msgstr "Lecteur audio"
|
||||
|
||||
#: rc.cpp:200
|
||||
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:203
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Nombre d'éléments pour les conseils"
|
||||
|
||||
#: rc.cpp:206
|
||||
msgid "CPU clock color"
|
||||
msgstr "Couleur de l'horloge processeur"
|
||||
|
||||
#: rc.cpp:209
|
||||
msgid "Swap color"
|
||||
msgstr "Couleur de la mémoire d'échange"
|
||||
|
||||
#: rc.cpp:212
|
||||
msgid "CPU color"
|
||||
msgstr "Couleur processeur"
|
||||
|
||||
#: rc.cpp:215
|
||||
msgid "Download speed color"
|
||||
msgstr "Couleur de la vitesse de téléchargement"
|
||||
|
||||
#: rc.cpp:218
|
||||
msgid "Memory color"
|
||||
msgstr "Couleur de la mémoire"
|
||||
|
||||
#: rc.cpp:221
|
||||
msgid "Upload speed color"
|
||||
msgstr "Couleur du téléversement"
|
||||
|
||||
#: rc.cpp:227
|
||||
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:230
|
||||
msgid "Time"
|
||||
msgstr "Durée"
|
||||
|
||||
#: rc.cpp:233
|
||||
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:240
|
||||
msgid "Uptime"
|
||||
msgstr "temps de fonctionnement"
|
||||
|
||||
#: rc.cpp:243
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
"$uptime - temps de fonctionnement\n"
|
||||
"$custom - format personnalisé"
|
||||
|
||||
#: rc.cpp:247
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
#: rc.cpp:251
|
||||
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"
|
||||
"$cpuN - charge processeur pour le coeur N, %"
|
||||
|
||||
#: rc.cpp:259
|
||||
msgid "CPU Clock"
|
||||
msgstr "Horloge processeur"
|
||||
|
||||
#: rc.cpp:262
|
||||
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"
|
||||
"$cpuclN - Horloge du coeur N, MHz"
|
||||
|
||||
#: rc.cpp:270
|
||||
msgid "Temperature"
|
||||
msgstr "Température"
|
||||
|
||||
#: rc.cpp:273
|
||||
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:276
|
||||
msgid "GPU"
|
||||
msgstr "Processeur graphique"
|
||||
|
||||
#: rc.cpp:280
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr "$gpu - utilisation du processeur graphique, %"
|
||||
|
||||
#: rc.cpp:283
|
||||
msgid "GPU Temp"
|
||||
msgstr "Temp du processeur graphique"
|
||||
|
||||
#: rc.cpp:286
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr "$gputemp - Température physique du processeur graphique"
|
||||
|
||||
#: rc.cpp:289
|
||||
msgid "Memory"
|
||||
msgstr "Mémoire"
|
||||
|
||||
#: rc.cpp:293
|
||||
msgid ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB\n"
|
||||
"$memgb - RAM usage, GB\n"
|
||||
"$memtotmb - total RAM, MB\n"
|
||||
"$memtotgb - total RAM, GB"
|
||||
msgstr ""
|
||||
"$mem - utilisation de la RAM, %\n"
|
||||
"$memmb - utilisation de la RAM, MB\n"
|
||||
"$memgb - utilisation de la RAM, GB\n"
|
||||
"$memtotmb - RAM, MB\n"
|
||||
"$memtotgb - RAM, GB"
|
||||
|
||||
#: rc.cpp:300
|
||||
msgid "Swap"
|
||||
msgstr "mémoire d'échange (swap)"
|
||||
|
||||
#: rc.cpp:304
|
||||
msgid ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB\n"
|
||||
"$swapgb - swap usage, GB\n"
|
||||
"$swaptotmb - total swap, MB\n"
|
||||
"$swaptotgb - total swap, GB"
|
||||
msgstr ""
|
||||
"$swap - utilisation swap, %\n"
|
||||
"$swapmb - utilisation swap, MB\n"
|
||||
"$swapgb - utilisation swap, MB\n"
|
||||
"$swaptotmb - swap, MB\n"
|
||||
"$swaptotgb - swap, GB"
|
||||
|
||||
#: rc.cpp:315
|
||||
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\n"
|
||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
||||
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\n"
|
||||
"$hddtotmbN - taille totale de point de montage N (à partir de 0), MB. "
|
||||
"Exemple: $hddtotmb0\n"
|
||||
"$hddtotgbN - taille totale de point de montage N (à partir de 0), GB. "
|
||||
"Exemple: $hddtotgb0"
|
||||
|
||||
#: rc.cpp:322
|
||||
msgid "HDD speed"
|
||||
msgstr "Vitesse HDD"
|
||||
|
||||
#: rc.cpp:325
|
||||
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:329
|
||||
msgid "HDD temp"
|
||||
msgstr "Température HDD"
|
||||
|
||||
#: rc.cpp:332
|
||||
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:335
|
||||
msgid "Network"
|
||||
msgstr "Réseau"
|
||||
|
||||
#: rc.cpp:338
|
||||
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:343
|
||||
msgid "Battery"
|
||||
msgstr "Batterie"
|
||||
|
||||
#: rc.cpp:347
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
"$bat - charge de la batterie, %\n"
|
||||
"$ac - état de l'alimentation"
|
||||
|
||||
#: rc.cpp:354
|
||||
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:361
|
||||
msgid "Processes"
|
||||
msgstr "Processus"
|
||||
|
||||
#: rc.cpp:364
|
||||
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:372
|
||||
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:375
|
||||
msgid "Custom"
|
||||
msgstr "Personnalisé"
|
||||
|
||||
#: rc.cpp:378
|
||||
msgid ""
|
||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
msgstr ""
|
||||
"$customN - sortie d'une commande personnelle N (à partir de 0). Exemple: "
|
||||
"$custom0"
|
||||
|
||||
#: 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 "Widget settings"
|
||||
#~ msgstr "Paramètres de l'applet"
|
||||
|
||||
#~ msgid "pacman -Qu"
|
||||
#~ msgstr "pacman -Qu"
|
||||
|
||||
#~ msgid "apt-show-versions -u -b"
|
||||
#~ msgstr "apt-show-versions -u -b"
|
||||
|
||||
#~ msgid "aptitude search '~U'"
|
||||
#~ msgstr "aptitude search '~U'"
|
||||
|
||||
#~ msgid "yum list updates"
|
||||
#~ msgstr "yum list updates"
|
||||
|
||||
#~ msgid "pkg_version -I -l '<'"
|
||||
#~ msgstr "pkg_version -I -l '<'"
|
||||
|
||||
#~ msgid "urpmq --auto-select"
|
||||
#~ msgstr "urpmq --auto-select"
|
||||
|
||||
#~ 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"
|
575
sources/ptm/po/pt_BR.po
Normal file
@ -0,0 +1,575 @@
|
||||
# Copyright (C) 2014
|
||||
# This file is distributed under the same license as the PyTextMonitor package.
|
||||
#
|
||||
# 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-06-04 22:48+0400\n"
|
||||
"PO-Revision-Date: 2014-06-09 01:47+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Brazilian Portuguese <kde-russian@lists.kde.ru>\n"
|
||||
"Language: pt_BR\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/configdef.py:273
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: code/configdef.py:275
|
||||
msgid "Advanced"
|
||||
msgstr "Avançado"
|
||||
|
||||
#: code/configdef.py:277
|
||||
msgid "Tooltip"
|
||||
msgstr "Dica de contexto"
|
||||
|
||||
#: code/configdef.py:279
|
||||
msgid "Appearance"
|
||||
msgstr "Aparência"
|
||||
|
||||
#: code/configdef.py:281
|
||||
msgid "DataEngine"
|
||||
msgstr "Engine de dados"
|
||||
|
||||
#: code/main.py:117
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Abrir ksysguard"
|
||||
|
||||
#: code/main.py:119
|
||||
msgid "Show README"
|
||||
msgstr "Mostrar README"
|
||||
|
||||
#: code/main.py:121
|
||||
msgid "Update text"
|
||||
msgstr "Atualizar texto"
|
||||
|
||||
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
|
||||
msgid "Form"
|
||||
msgstr "Forma"
|
||||
|
||||
#: rc.cpp:6
|
||||
msgid "Vertical layout"
|
||||
msgstr "Layout vertical"
|
||||
|
||||
#: rc.cpp:9
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Ativar popup no clique do mouse"
|
||||
|
||||
#: rc.cpp:12
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Adicionar esticamento à esquerda/topo do layout"
|
||||
|
||||
#: rc.cpp:15
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Adicionar esticamento à direita/inferior do layout"
|
||||
|
||||
#: rc.cpp:18
|
||||
msgid "Custom time format"
|
||||
msgstr "Formato de hora personalizado"
|
||||
|
||||
#: rc.cpp:21
|
||||
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 - dia da semana completo\n"
|
||||
"$ddd - dia da semana curto\n"
|
||||
"$dd - dia\n"
|
||||
"$d - dia com zero\n"
|
||||
"$MMMM - mês completo\n"
|
||||
"$MMM - mês curto\n"
|
||||
"$MM - mês\n"
|
||||
"$M - mês com zero\n"
|
||||
"$hh - horas (somente 24)\n"
|
||||
"$h - horas sem zeros (somente 24)\n"
|
||||
"$mm - minutos\n"
|
||||
"$m - minutos sem zeros\n"
|
||||
"$ss - segundos\n"
|
||||
"$s segundos sem zeros"
|
||||
|
||||
#: rc.cpp:39
|
||||
msgid "Custom uptime format"
|
||||
msgstr "Tempo em atividade com formato personalizado"
|
||||
|
||||
#: rc.cpp:42
|
||||
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 - tempo em atividade em dias\n"
|
||||
"$d - tempo em atividade em dias sem zeros\n"
|
||||
"$hh - tempo em atividade em horas\n"
|
||||
"$h - tempo em atividade em horas sem zeros\n"
|
||||
"$mm - tempo em atividade em minutos\n"
|
||||
"$m - tempo em atividade em minuto sem zeros"
|
||||
|
||||
#: rc.cpp:50
|
||||
msgid "Temperature units"
|
||||
msgstr "Unidades de temperatura"
|
||||
|
||||
#: rc.cpp:53
|
||||
msgid "Temperature devices"
|
||||
msgstr "Dispositivos de temperatura"
|
||||
|
||||
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
|
||||
msgid "Add"
|
||||
msgstr "Adicionar"
|
||||
|
||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
"Editável\n"
|
||||
"del - remover item"
|
||||
|
||||
#: rc.cpp:63
|
||||
msgid "Mount points"
|
||||
msgstr "Pontos de montagem"
|
||||
|
||||
#: rc.cpp:73
|
||||
msgid "HDD devices (speed)"
|
||||
msgstr "Dispositivos HDD (velocidade) "
|
||||
|
||||
#: rc.cpp:83
|
||||
msgid "HDD devices (temp)"
|
||||
msgstr "Dispositivos HDD (temperatura)"
|
||||
|
||||
#: rc.cpp:93
|
||||
msgid "Network directory"
|
||||
msgstr "Diretório de rede"
|
||||
|
||||
#: rc.cpp:96
|
||||
msgid "\"/sys/class/net\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" por padrão"
|
||||
|
||||
#: rc.cpp:99
|
||||
msgid "Disable auto select device and set specified device"
|
||||
msgstr ""
|
||||
"Desativar auto seleção de dispositivos e escolher um dispositivo específico"
|
||||
|
||||
#: rc.cpp:102
|
||||
msgid "Set network device"
|
||||
msgstr "Escolher dispositivo de rede"
|
||||
|
||||
#: rc.cpp:105
|
||||
msgid "Battery device"
|
||||
msgstr "Dispositivo do carregador"
|
||||
|
||||
#: rc.cpp:108
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" por padrão"
|
||||
|
||||
#: rc.cpp:111
|
||||
msgid "AC online tag"
|
||||
msgstr "Rótulo com carregador conectado"
|
||||
|
||||
#: rc.cpp:114
|
||||
msgid "Line, which returns when AC is online"
|
||||
msgstr "Linha, que aparece quando o carregador está conectado"
|
||||
|
||||
#: rc.cpp:117
|
||||
msgid "AC offline tag"
|
||||
msgstr "Rótulo com carregador desconectado"
|
||||
|
||||
#: rc.cpp:120
|
||||
msgid "Line, which returns when AC is offline"
|
||||
msgstr "Linha, que aparece quando o carregador está offline"
|
||||
|
||||
#: rc.cpp:123
|
||||
msgid "AC device"
|
||||
msgstr "Dispositivo do carregador"
|
||||
|
||||
#: rc.cpp:126
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" por padrão"
|
||||
|
||||
#: rc.cpp:132
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalo de tempo"
|
||||
|
||||
#: rc.cpp:135
|
||||
msgid "Font"
|
||||
msgstr "Tamanho da fonte"
|
||||
|
||||
#: rc.cpp:138
|
||||
msgid "Font size"
|
||||
msgstr "Tamanho da fonte"
|
||||
|
||||
#: rc.cpp:141
|
||||
msgid "Font color"
|
||||
msgstr "Cor da fonte"
|
||||
|
||||
#: rc.cpp:144
|
||||
msgid "Font style"
|
||||
msgstr "Estilo da fonte"
|
||||
|
||||
#: rc.cpp:147
|
||||
msgid "Font weight"
|
||||
msgstr "Peso da fonte"
|
||||
|
||||
#: rc.cpp:153
|
||||
msgid "Custom command"
|
||||
msgstr "Comando personalizado"
|
||||
|
||||
#: rc.cpp:156
|
||||
msgid "Custom command to run"
|
||||
msgstr "Comando personalizado para usar"
|
||||
|
||||
#: rc.cpp:166
|
||||
msgid "GPU device"
|
||||
msgstr "Dispositivo GPU"
|
||||
|
||||
#: rc.cpp:169 rc.cpp:311
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: rc.cpp:172
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "comando hddtemp "
|
||||
|
||||
#: rc.cpp:175
|
||||
msgid "MPD address"
|
||||
msgstr "Endereço do MPD"
|
||||
|
||||
#: rc.cpp:178
|
||||
msgid "MPD port"
|
||||
msgstr "Porta do MPD"
|
||||
|
||||
#: rc.cpp:181 rc.cpp:369
|
||||
msgid "Package manager"
|
||||
msgstr "Gerenciador de pacotes"
|
||||
|
||||
#: rc.cpp:184
|
||||
msgid "Number of null lines"
|
||||
msgstr "Número de valores para dicas de contexto"
|
||||
|
||||
#: rc.cpp:194 rc.cpp:351
|
||||
msgid "Music player"
|
||||
msgstr "Reprodutor de áudio"
|
||||
|
||||
#: rc.cpp:200
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
msgstr ""
|
||||
"Os rótulos de CPU, frequência de GPU, memória, swap e rede suportam dica de "
|
||||
"contexto gráfica. Para ativá-los, basta selecionar a caixa necessária."
|
||||
|
||||
#: rc.cpp:203
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Número de valores para dicas de contexto"
|
||||
|
||||
#: rc.cpp:206
|
||||
msgid "CPU clock color"
|
||||
msgstr "Cor da frequência da GPU"
|
||||
|
||||
#: rc.cpp:209
|
||||
msgid "Swap color"
|
||||
msgstr "Cor do swap"
|
||||
|
||||
#: rc.cpp:212
|
||||
msgid "CPU color"
|
||||
msgstr "Cor da frequência da GPU"
|
||||
|
||||
#: rc.cpp:215
|
||||
msgid "Download speed color"
|
||||
msgstr "Cor da velocidade de download"
|
||||
|
||||
#: rc.cpp:218
|
||||
msgid "Memory color"
|
||||
msgstr "Cor da memória"
|
||||
|
||||
#: rc.cpp:221
|
||||
msgid "Upload speed color"
|
||||
msgstr "Cor da velocidade de upload"
|
||||
|
||||
#: rc.cpp:227
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"pytextmonitor/\">project homepage</a>"
|
||||
msgstr ""
|
||||
"Informações detalhadas podem ser encontradas na <a "
|
||||
"href=\"http://arcanis.name/projects/pytextmonitor/\">página do projeto</a>"
|
||||
|
||||
#: rc.cpp:230
|
||||
msgid "Time"
|
||||
msgstr "Hora"
|
||||
|
||||
#: rc.cpp:233
|
||||
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 no formato padrão\n"
|
||||
"$isotime - hora no formato ISO\n"
|
||||
"$shorttime - hora em formato curto \n"
|
||||
"$longtime - hora em formato completo\n"
|
||||
"$custom - hora em formato personalizado"
|
||||
|
||||
#: rc.cpp:240
|
||||
msgid "Uptime"
|
||||
msgstr "Tempo em atividade"
|
||||
|
||||
#: rc.cpp:243
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
"$uptime - tempo em atividade do sistema\n"
|
||||
"$custom - formato personalizado "
|
||||
|
||||
#: rc.cpp:247
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
#: rc.cpp:251
|
||||
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 da CPU, %\n"
|
||||
"$cpu0 - carga total para o núcleo 0 da CPU, %\n"
|
||||
"...\n"
|
||||
"$cpu9 - carga total para o núcleo 9 da CPU, %\n"
|
||||
"...\n"
|
||||
"$cpuN - carga total para o núcleo N da CPU, %"
|
||||
|
||||
#: rc.cpp:259
|
||||
msgid "CPU Clock"
|
||||
msgstr "Frequência da CPU "
|
||||
|
||||
#: rc.cpp:262
|
||||
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 - frequência média da CPU, MHz\n"
|
||||
"$cpucl0 - frequência da CPU para o núcleo 0, MHz\n"
|
||||
"...\n"
|
||||
"$cpucl9 - frequência da CPU para o núcleo 9, MHz\n"
|
||||
"...\n"
|
||||
"$cpuclN - frequência da CPU para o núcleo N, MHz"
|
||||
|
||||
#: rc.cpp:270
|
||||
msgid "Temperature"
|
||||
msgstr "Temperatura "
|
||||
|
||||
#: rc.cpp:273
|
||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||
msgstr ""
|
||||
"$hddtempN - temperatura física no dispositivo N (começando por 0). Exemplo: "
|
||||
"$hddtemp0"
|
||||
|
||||
#: rc.cpp:276
|
||||
msgid "GPU"
|
||||
msgstr "GPU"
|
||||
|
||||
#: rc.cpp:280
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr "$gpu - uso da GPU, %"
|
||||
|
||||
#: rc.cpp:283
|
||||
msgid "GPU Temp"
|
||||
msgstr "Temperatura da GPU"
|
||||
|
||||
#: rc.cpp:286
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr "$gputemp - temperatura física da GPU"
|
||||
|
||||
#: rc.cpp:289
|
||||
msgid "Memory"
|
||||
msgstr "Memória"
|
||||
|
||||
#: rc.cpp:293
|
||||
msgid ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB\n"
|
||||
"$memgb - RAM usage, GB\n"
|
||||
"$memtotmb - total RAM, MB\n"
|
||||
"$memtotgb - total RAM, GB"
|
||||
msgstr ""
|
||||
"$mem - uso de RAM, %\n"
|
||||
"$memmb - uso de RAM, MB\n"
|
||||
"$memgb - uso de RAM, GB\n"
|
||||
"$memtotmb - RAM total, MB\n"
|
||||
"$memtotgb - RAM total, GB"
|
||||
|
||||
#: rc.cpp:300
|
||||
msgid "Swap"
|
||||
msgstr "Swap"
|
||||
|
||||
#: rc.cpp:304
|
||||
msgid ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB\n"
|
||||
"$swapgb - swap usage, GB\n"
|
||||
"$swaptotmb - total swap, MB\n"
|
||||
"$swaptotgb - total swap, GB"
|
||||
msgstr ""
|
||||
"$swap - uso de swap, %\n"
|
||||
"$swapmb - uso de swap, MB\n"
|
||||
"$swapgb - uso de swap, GB\n"
|
||||
"$swaptotmb - swap total, MB\n"
|
||||
"$swaptotgb - swap total, GB"
|
||||
|
||||
#: rc.cpp:315
|
||||
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\n"
|
||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
||||
msgstr ""
|
||||
"$hddN - uso do ponto de montagem N (começando por 0), %. Exemplo: $hdd0\n"
|
||||
"$hddmbN - uso do ponto de montagem N (começando por 0), MB. Exemplo: $hddmb0\n"
|
||||
"$hddgbN - uso do ponto de montagem N (começando por 0), GB. Exemplo: "
|
||||
"$hddgbN0\n"
|
||||
"$hddtotmbN - tamanho total do ponto de montagem N (começando por 0), MB. "
|
||||
"Exemplo: $hddtotmbN\n"
|
||||
"$hddtotgbN - tamanho total do ponto de montagem N (começando por 0), GB. "
|
||||
"Exemplo: $hddtogbN"
|
||||
|
||||
#: rc.cpp:322
|
||||
msgid "HDD speed"
|
||||
msgstr "Velocidade do HDD"
|
||||
|
||||
#: rc.cpp:325
|
||||
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 - velocidade de leitura do HDD (começando por 0), KB/s. Exemplo: "
|
||||
"$hddr0\n"
|
||||
"$hddwN - velocidade de escrita do HDD (começando por 0), Kb/s. Exemplo: $hddw0"
|
||||
|
||||
#: rc.cpp:329
|
||||
msgid "HDD temp"
|
||||
msgstr "Temperatura do HDD "
|
||||
|
||||
#: rc.cpp:332
|
||||
msgid ""
|
||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||
msgstr ""
|
||||
"$hddtempN - temperatura física no dispositivo N (começando por 0). Exemplo: "
|
||||
"$hddtemp0"
|
||||
|
||||
#: rc.cpp:335
|
||||
msgid "Network"
|
||||
msgstr "Rede"
|
||||
|
||||
#: rc.cpp:338
|
||||
msgid ""
|
||||
"$down - download speed, KB/s\n"
|
||||
"$up - upload speed, KB/s\n"
|
||||
"$netdev - current network device"
|
||||
msgstr ""
|
||||
"$down - velocidade de download, KB/s\n"
|
||||
"$up - velocidade de upload, KB/s\n"
|
||||
"$netdev - dispositivo de rede atual"
|
||||
|
||||
#: rc.cpp:343
|
||||
msgid "Battery"
|
||||
msgstr "Bateria"
|
||||
|
||||
#: rc.cpp:347
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
"bateria - carga da bateria, %\n"
|
||||
"$ac - status do carregador"
|
||||
|
||||
#: rc.cpp:354
|
||||
msgid ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
"$progress - song progress\n"
|
||||
"$time - song duration\n"
|
||||
"$title - song title"
|
||||
msgstr ""
|
||||
"$album - album da música\n"
|
||||
"$artist - artista da música\n"
|
||||
"$progress - progresso da música\n"
|
||||
"$time - duração da música\n"
|
||||
"$title - título da música"
|
||||
|
||||
#: rc.cpp:361
|
||||
msgid "Processes"
|
||||
msgstr "Processos "
|
||||
|
||||
#: rc.cpp:364
|
||||
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 processos rodando\n"
|
||||
"$pstotal - número total de processos rodando\n"
|
||||
"$ps - lista dos processos rodando separados por vírgula"
|
||||
|
||||
#: rc.cpp:372
|
||||
msgid ""
|
||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||
"For example $pkgcount0"
|
||||
msgstr ""
|
||||
"$pkgcountN - número de pacotes disponíveis para atualizar, comando N. Por "
|
||||
"exemplo $pkgcount0"
|
||||
|
||||
#: rc.cpp:375
|
||||
msgid "Custom"
|
||||
msgstr "Personalizado"
|
||||
|
||||
#: rc.cpp:378
|
||||
msgid ""
|
||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
msgstr ""
|
||||
"$customN - leia a saída de um comando personalizado N (a partir de N). "
|
||||
"Exemplo: `$custom0`"
|
||||
|
||||
#: rc.cpp:379
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "under"
|
||||
|
||||
#: rc.cpp:380
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "dreanazous@gmail.com"
|
||||
|
||||
|
@ -1,14 +1,13 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
# Copyright (C) 2014
|
||||
# This file is distributed under the same license as the PyTextMonitor package.
|
||||
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||
"POT-Creation-Date: 2014-03-31 00:58+0400\n"
|
||||
"POT-Creation-Date: 2014-06-04 22:48+0400\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -17,266 +16,429 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:32
|
||||
#. i18n: ectx: property (windowTitle), widget (QWidget, ConfigWindow)
|
||||
#: rc.cpp:3
|
||||
#: code/configdef.py:273
|
||||
msgid "Widget"
|
||||
msgstr ""
|
||||
|
||||
#: code/configdef.py:275
|
||||
msgid "Advanced"
|
||||
msgstr ""
|
||||
|
||||
#: code/configdef.py:277
|
||||
msgid "Tooltip"
|
||||
msgstr ""
|
||||
|
||||
#: code/configdef.py:279
|
||||
msgid "Appearance"
|
||||
msgstr ""
|
||||
|
||||
#: code/configdef.py:281
|
||||
msgid "DataEngine"
|
||||
msgstr ""
|
||||
|
||||
#: code/main.py:117
|
||||
msgid "Run ksysguard"
|
||||
msgstr ""
|
||||
|
||||
#: code/main.py:119
|
||||
msgid "Show README"
|
||||
msgstr ""
|
||||
|
||||
#: code/main.py:121
|
||||
msgid "Update text"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:42
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, settings)
|
||||
#: rc.cpp:6
|
||||
msgid "Widget settings"
|
||||
msgid "Vertical layout"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:48
|
||||
#. i18n: ectx: property (text), widget (QLabel, label)
|
||||
#: rc.cpp:9
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:12
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:15
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:18
|
||||
msgid "Custom time format"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:21
|
||||
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 ""
|
||||
|
||||
#: rc.cpp:39
|
||||
msgid "Custom uptime format"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:42
|
||||
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 ""
|
||||
|
||||
#: rc.cpp:50
|
||||
msgid "Temperature units"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:53
|
||||
msgid "Temperature devices"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:63
|
||||
msgid "Mount points"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:73
|
||||
msgid "HDD devices (speed)"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:83
|
||||
msgid "HDD devices (temp)"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:93
|
||||
msgid "Network directory"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:96
|
||||
msgid "\"/sys/class/net\" by default"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:99
|
||||
msgid "Disable auto select device and set specified device"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:102
|
||||
msgid "Set network device"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:105
|
||||
msgid "Battery device"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:108
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:111
|
||||
msgid "AC online tag"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:114
|
||||
msgid "Line, which returns when AC is online"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:117
|
||||
msgid "AC offline tag"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:120
|
||||
msgid "Line, which returns when AC is offline"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:123
|
||||
msgid "AC device"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:126
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:132
|
||||
msgid "Time interval"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:135
|
||||
msgid "Font"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:138
|
||||
msgid "Font size"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:141
|
||||
msgid "Font color"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:144
|
||||
msgid "Font style"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:147
|
||||
msgid "Font weight"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:153
|
||||
msgid "Custom command"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:156
|
||||
msgid "Custom command to run"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:166
|
||||
msgid "GPU device"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:169 rc.cpp:311
|
||||
msgid "HDD"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:172
|
||||
msgid "hddtemp cmd"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:175
|
||||
msgid "MPD address"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:178
|
||||
msgid "MPD port"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:181 rc.cpp:369
|
||||
msgid "Package manager"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:184
|
||||
msgid "Number of null lines"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:194 rc.cpp:351
|
||||
msgid "Music player"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:200
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:203
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:206
|
||||
msgid "CPU clock color"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:209
|
||||
msgid "Swap color"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:212
|
||||
msgid "CPU color"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:215
|
||||
msgid "Download speed color"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:218
|
||||
msgid "Memory color"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:221
|
||||
msgid "Upload speed color"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:227
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"pytextmonitor/\">project homepage</a>"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:66
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
|
||||
#: rc.cpp:12
|
||||
#: rc.cpp:230
|
||||
msgid "Time"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:85
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
|
||||
#: rc.cpp:15
|
||||
#: rc.cpp:233
|
||||
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: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o "
|
||||
"zero; \n"
|
||||
"\t$MMMM - long month; $MMM - short month; $MM - month; $M - month w\\o "
|
||||
"zero; \n"
|
||||
"\t$yyyy - year; $yy short year; \n"
|
||||
"\t$hh - hours (24 only); $h - hours w\\o zero (24 only); \n"
|
||||
"\t$mm - minutes; $m - minutes w\\o zero;\n"
|
||||
"\t$ss - seconds; $s - seconds w\\o zero"
|
||||
"$custom - custom time format"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:130
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
|
||||
#: rc.cpp:27
|
||||
#: rc.cpp:240
|
||||
msgid "Uptime"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:141
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
|
||||
#: rc.cpp:30
|
||||
#: rc.cpp:243
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:189
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
|
||||
#: rc.cpp:34
|
||||
#: rc.cpp:247
|
||||
msgid "CPU"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:200
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
|
||||
#: rc.cpp:38
|
||||
#, no-c-format
|
||||
#: rc.cpp:251
|
||||
msgid ""
|
||||
"$cpu - total load CPU, %\n"
|
||||
"$ccpu - load CPU for each core, %"
|
||||
"$cpu0 - load CPU for core 0, %\n"
|
||||
"...\n"
|
||||
"$cpu9 - load CPU for core 9, %\n"
|
||||
"...\n"
|
||||
"$cpuN - load CPU for core N, %"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:248
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
|
||||
#: rc.cpp:42
|
||||
#: rc.cpp:259
|
||||
msgid "CPU Clock"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:259
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
|
||||
#: rc.cpp:45
|
||||
#: rc.cpp:262
|
||||
msgid ""
|
||||
"$cpucl - average CPU clock, MHz\n"
|
||||
"$ccpucl - CPU clock for each core, MHz"
|
||||
"$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 ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:307
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
|
||||
#: rc.cpp:49
|
||||
#: rc.cpp:270
|
||||
msgid "Temperature"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:330
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
|
||||
#: rc.cpp:52
|
||||
msgid "$temp - physical temperature on CPU"
|
||||
#: rc.cpp:273
|
||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:378
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
|
||||
#: rc.cpp:55
|
||||
#: rc.cpp:276
|
||||
msgid "GPU"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:388
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
|
||||
#: rc.cpp:59
|
||||
#, no-c-format
|
||||
#: rc.cpp:280
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:436
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
|
||||
#: rc.cpp:62
|
||||
#: rc.cpp:283
|
||||
msgid "GPU Temp"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:446
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
|
||||
#: rc.cpp:65
|
||||
#: rc.cpp:286
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:494
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
|
||||
#: rc.cpp:68
|
||||
#: rc.cpp:289
|
||||
msgid "Memory"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:505
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
|
||||
#: rc.cpp:72
|
||||
#, no-c-format
|
||||
#: rc.cpp:293
|
||||
msgid ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB"
|
||||
"$memmb - RAM usage, MB\n"
|
||||
"$memgb - RAM usage, GB\n"
|
||||
"$memtotmb - total RAM, MB\n"
|
||||
"$memtotgb - total RAM, GB"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:553
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
|
||||
#: rc.cpp:76
|
||||
#: rc.cpp:300
|
||||
msgid "Swap"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:564
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
|
||||
#: rc.cpp:80
|
||||
#, no-c-format
|
||||
#: rc.cpp:304
|
||||
msgid ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB"
|
||||
"$swapmb - swap usage, MB\n"
|
||||
"$swapgb - swap usage, GB\n"
|
||||
"$swaptotmb - total swap, MB\n"
|
||||
"$swaptotgb - total swap, GB"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:612
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
|
||||
#: rc.cpp:84
|
||||
msgid "HDD"
|
||||
#: rc.cpp:315
|
||||
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\n"
|
||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:622
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
|
||||
#: rc.cpp:88
|
||||
#, no-c-format
|
||||
msgid "@@/;@@ - mount point usage, %"
|
||||
#: rc.cpp:322
|
||||
msgid "HDD speed"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:670
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
|
||||
#: rc.cpp:91
|
||||
msgid "HDD Temp"
|
||||
#: rc.cpp:325
|
||||
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 ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:680
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
|
||||
#: rc.cpp:94
|
||||
msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
|
||||
#: rc.cpp:329
|
||||
msgid "HDD temp"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:728
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
|
||||
#: rc.cpp:97
|
||||
#: rc.cpp:332
|
||||
msgid ""
|
||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:335
|
||||
msgid "Network"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:740
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
|
||||
#: rc.cpp:100
|
||||
#: rc.cpp:338
|
||||
msgid ""
|
||||
"$net - network speed, down/up, KB/s\n"
|
||||
"$netdev - current network device\n"
|
||||
"@@eth0@@ - disable auto select device and set specified device"
|
||||
"$down - download speed, KB/s\n"
|
||||
"$up - upload speed, KB/s\n"
|
||||
"$netdev - current network device"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:788
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
|
||||
#: rc.cpp:105
|
||||
#: rc.cpp:343
|
||||
msgid "Battery"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:799
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
|
||||
#: rc.cpp:109
|
||||
#, no-c-format
|
||||
#: rc.cpp:347
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:863
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
|
||||
#: rc.cpp:113
|
||||
msgid "Battery device"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:870
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
|
||||
#: rc.cpp:116
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:906
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
|
||||
#: rc.cpp:119
|
||||
msgid "AC device"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:913
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
|
||||
#: rc.cpp:122
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:933
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
|
||||
#: rc.cpp:125
|
||||
msgid "Music player"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:950
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
|
||||
#: rc.cpp:128
|
||||
msgid "amarok"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:955
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
|
||||
#: rc.cpp:131
|
||||
msgid "mpd"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:960
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
|
||||
#: rc.cpp:134
|
||||
msgid "qmmp"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:972
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
|
||||
#: rc.cpp:137
|
||||
#: rc.cpp:354
|
||||
msgid ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
@ -285,54 +447,38 @@ msgid ""
|
||||
"$title - song title"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1026
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, appearance)
|
||||
#: rc.cpp:144
|
||||
msgid "Appearance"
|
||||
#: rc.cpp:361
|
||||
msgid "Processes"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1040
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: rc.cpp:147
|
||||
msgid "Time interval"
|
||||
#: rc.cpp:364
|
||||
msgid ""
|
||||
"$pscount - number of running processes\n"
|
||||
"$pstotal - total number of running processes\n"
|
||||
"$ps - list of running processes comma separated"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1095
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
||||
#: rc.cpp:150
|
||||
msgid "Font"
|
||||
#: rc.cpp:372
|
||||
msgid ""
|
||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||
"For example $pkgcount0"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1135
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
||||
#: rc.cpp:153
|
||||
msgid "Font size"
|
||||
#: rc.cpp:375
|
||||
msgid "Custom"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1190
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_color)
|
||||
#: rc.cpp:156
|
||||
msgid "Font color"
|
||||
#: rc.cpp:378
|
||||
msgid ""
|
||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1230
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_style)
|
||||
#: rc.cpp:159
|
||||
msgid "Font style"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1280
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_weight)
|
||||
#: rc.cpp:162
|
||||
msgid "Font weight"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:163
|
||||
#: rc.cpp:379
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:164
|
||||
#: rc.cpp:380
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr ""
|
||||
|
@ -1,13 +1,13 @@
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# Copyright (C) 2014
|
||||
# This file is distributed under the same license as the PyTextMonitor package.
|
||||
#
|
||||
# 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-03-31 00:58+0400\n"
|
||||
"PO-Revision-Date: 2014-03-31 01:22+0400\n"
|
||||
"POT-Creation-Date: 2014-06-04 22:48+0400\n"
|
||||
"PO-Revision-Date: 2014-06-04 22:49+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||
"Language: ru\n"
|
||||
@ -18,296 +18,499 @@ msgstr ""
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:32
|
||||
#. i18n: ectx: property (windowTitle), widget (QWidget, ConfigWindow)
|
||||
#: rc.cpp:3
|
||||
#: code/configdef.py:273
|
||||
msgid "Widget"
|
||||
msgstr "Виджет"
|
||||
|
||||
#: code/configdef.py:275
|
||||
msgid "Advanced"
|
||||
msgstr "Расширенные"
|
||||
|
||||
#: code/configdef.py:277
|
||||
msgid "Tooltip"
|
||||
msgstr "Тултип"
|
||||
|
||||
#: code/configdef.py:279
|
||||
msgid "Appearance"
|
||||
msgstr "Внешний вид"
|
||||
|
||||
#: code/configdef.py:281
|
||||
msgid "DataEngine"
|
||||
msgstr "DataEngine"
|
||||
|
||||
#: code/main.py:117
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Запутить ksysguard"
|
||||
|
||||
#: code/main.py:119
|
||||
msgid "Show README"
|
||||
msgstr "Показать README"
|
||||
|
||||
#: code/main.py:121
|
||||
msgid "Update text"
|
||||
msgstr "Обновить текст"
|
||||
|
||||
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
|
||||
msgid "Form"
|
||||
msgstr "Form"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:42
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, settings)
|
||||
#: rc.cpp:6
|
||||
msgid "Widget settings"
|
||||
msgstr "Настройки виджета"
|
||||
msgid "Vertical layout"
|
||||
msgstr "Вертикальная разметка"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:48
|
||||
#. i18n: ectx: property (text), widget (QLabel, label)
|
||||
#: rc.cpp:9
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Включить сообщения по клику мыши"
|
||||
|
||||
#: rc.cpp:12
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Добавить пустое место слева/вверху виджета"
|
||||
|
||||
#: rc.cpp:15
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Добавить пустое место справа/внизу виджета"
|
||||
|
||||
#: rc.cpp:18
|
||||
msgid "Custom time format"
|
||||
msgstr "Свой формат времени"
|
||||
|
||||
#: rc.cpp:21
|
||||
msgid ""
|
||||
"$dddd - long weekday\n"
|
||||
"$ddd - short weekday\n"
|
||||
"$dd - day\n"
|
||||
"$d - day w\\o zero\n"
|
||||
"$MMMM - long month\n"
|
||||
"$MMM - short month\n"
|
||||
"$MM - month\n"
|
||||
"$M - month w\\o zero\n"
|
||||
"$yyyy - year\n"
|
||||
"$yy - short year\n"
|
||||
"$hh - hours (24 only)\n"
|
||||
"$h - hours w\\o zero (24 only)\n"
|
||||
"$mm - minutes\n"
|
||||
"$m - minutes w\\o zero\n"
|
||||
"$ss - seconds\n"
|
||||
"$s - seconds w\\o zero"
|
||||
msgstr ""
|
||||
"$dddd - день недели (длинный)\n"
|
||||
"$ddd - день недели (короткий)\n"
|
||||
"$dd - день\n"
|
||||
"$d - день без 0\n"
|
||||
"$MMMM - месяц (длинный)\n"
|
||||
"$MMM - месяц (короткий)\n"
|
||||
"$MM - месяц\n"
|
||||
"$M - месяц без 0\n"
|
||||
"$yyyy - год\n"
|
||||
"$yy - год (короткий)\n"
|
||||
"$hh - часы (24)\n"
|
||||
"$h - часы без 0 (24)\n"
|
||||
"$mm - минуты\n"
|
||||
"$m - минуты без 0\n"
|
||||
"$ss - секунды\n"
|
||||
"$s - секунды без 0"
|
||||
|
||||
#: rc.cpp:39
|
||||
msgid "Custom uptime format"
|
||||
msgstr "Свой формат аптайма"
|
||||
|
||||
#: rc.cpp:42
|
||||
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 - дни аптайма\n"
|
||||
"$d - дни аптайма без нулей\n"
|
||||
"$hh - часы аптайма\n"
|
||||
"$h - часы аптайма без нулей\n"
|
||||
"$mm - минуты аптайма\n"
|
||||
"$m - минуты аптайма без нулей"
|
||||
|
||||
#: rc.cpp:50
|
||||
msgid "Temperature units"
|
||||
msgstr "Температурные единицы"
|
||||
|
||||
#: rc.cpp:53
|
||||
msgid "Temperature devices"
|
||||
msgstr "Температурные устройства"
|
||||
|
||||
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
|
||||
msgid "Add"
|
||||
msgstr "Добавить"
|
||||
|
||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
"Редактируемо\n"
|
||||
"del - удалить строку"
|
||||
|
||||
#: rc.cpp:63
|
||||
msgid "Mount points"
|
||||
msgstr "Точки монтирования"
|
||||
|
||||
#: rc.cpp:73
|
||||
msgid "HDD devices (speed)"
|
||||
msgstr "HDD (скорость)"
|
||||
|
||||
#: rc.cpp:83
|
||||
msgid "HDD devices (temp)"
|
||||
msgstr "HDD (температура)"
|
||||
|
||||
#: rc.cpp:93
|
||||
msgid "Network directory"
|
||||
msgstr "Путь к интерфейсам"
|
||||
|
||||
#: rc.cpp:96
|
||||
msgid "\"/sys/class/net\" by default"
|
||||
msgstr "\"/sys/class/net\" по умолчанию"
|
||||
|
||||
#: rc.cpp:99
|
||||
msgid "Disable auto select device and set specified device"
|
||||
msgstr "Отключить автовыбор устройства и использовать указанное"
|
||||
|
||||
#: rc.cpp:102
|
||||
msgid "Set network device"
|
||||
msgstr "Выберете сетевое устройство"
|
||||
|
||||
#: rc.cpp:105
|
||||
msgid "Battery device"
|
||||
msgstr "Устройство батареи"
|
||||
|
||||
#: rc.cpp:108
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" по умолчанию"
|
||||
|
||||
#: rc.cpp:111
|
||||
msgid "AC online tag"
|
||||
msgstr "AC подключен"
|
||||
|
||||
#: rc.cpp:114
|
||||
msgid "Line, which returns when AC is online"
|
||||
msgstr "Строка, возвращаемая при подключенном адаптере питания"
|
||||
|
||||
#: rc.cpp:117
|
||||
msgid "AC offline tag"
|
||||
msgstr "AC отключен"
|
||||
|
||||
#: rc.cpp:120
|
||||
msgid "Line, which returns when AC is offline"
|
||||
msgstr "Строка, возвращаемая при отключенном адаптере питания"
|
||||
|
||||
#: rc.cpp:123
|
||||
msgid "AC device"
|
||||
msgstr "Устройство AC"
|
||||
|
||||
#: rc.cpp:126
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" по умолчанию"
|
||||
|
||||
#: rc.cpp:132
|
||||
msgid "Time interval"
|
||||
msgstr "Интервал обновления"
|
||||
|
||||
#: rc.cpp:135
|
||||
msgid "Font"
|
||||
msgstr "Шрифт"
|
||||
|
||||
#: rc.cpp:138
|
||||
msgid "Font size"
|
||||
msgstr "Размер шрифта"
|
||||
|
||||
#: rc.cpp:141
|
||||
msgid "Font color"
|
||||
msgstr "Цвет шрифта"
|
||||
|
||||
#: rc.cpp:144
|
||||
msgid "Font style"
|
||||
msgstr "Стиль шрифта"
|
||||
|
||||
#: rc.cpp:147
|
||||
msgid "Font weight"
|
||||
msgstr "Ширина шрифта"
|
||||
|
||||
#: rc.cpp:153
|
||||
msgid "Custom command"
|
||||
msgstr "Своя команда"
|
||||
|
||||
#: rc.cpp:156
|
||||
msgid "Custom command to run"
|
||||
msgstr "Своя команда для запуска"
|
||||
|
||||
#: rc.cpp:166
|
||||
msgid "GPU device"
|
||||
msgstr "Устройство GPU"
|
||||
|
||||
#: rc.cpp:169 rc.cpp:311
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: rc.cpp:172
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "Команда hddtemp"
|
||||
|
||||
#: rc.cpp:175
|
||||
msgid "MPD address"
|
||||
msgstr "Адрес сервера MPD"
|
||||
|
||||
#: rc.cpp:178
|
||||
msgid "MPD port"
|
||||
msgstr "Порт сервера MPD"
|
||||
|
||||
#: rc.cpp:181 rc.cpp:369
|
||||
msgid "Package manager"
|
||||
msgstr "Пакетный менеджер"
|
||||
|
||||
#: rc.cpp:184
|
||||
msgid "Number of null lines"
|
||||
msgstr "Число пустых линий"
|
||||
|
||||
#: rc.cpp:194 rc.cpp:351
|
||||
msgid "Music player"
|
||||
msgstr "Музыкальный плеер"
|
||||
|
||||
#: rc.cpp:200
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
msgstr ""
|
||||
"Поля \"CPU\", \"Частота CPU\", \"Память\", \"Swap\", \"Сеть\" поддерживают "
|
||||
"графический тултип. Чтобы включить его, просто сделайте требуемые чекбоксы "
|
||||
"полностью чекнутыми."
|
||||
|
||||
#: rc.cpp:203
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Число хранящихся значений"
|
||||
|
||||
#: rc.cpp:206
|
||||
msgid "CPU clock color"
|
||||
msgstr "Цвет частоты CPU"
|
||||
|
||||
#: rc.cpp:209
|
||||
msgid "Swap color"
|
||||
msgstr "Цвет swap"
|
||||
|
||||
#: rc.cpp:212
|
||||
msgid "CPU color"
|
||||
msgstr "Цвет CPU"
|
||||
|
||||
#: rc.cpp:215
|
||||
msgid "Download speed color"
|
||||
msgstr "Цвет скорости загрузки"
|
||||
|
||||
#: rc.cpp:218
|
||||
msgid "Memory color"
|
||||
msgstr "Цвет памяти"
|
||||
|
||||
#: rc.cpp:221
|
||||
msgid "Upload speed color"
|
||||
msgstr "Цвет скорости отдачи"
|
||||
|
||||
#: rc.cpp:227
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"pytextmonitor/\">project homepage</a>"
|
||||
msgstr ""
|
||||
"Подробная информация может быть найдена на <a "
|
||||
"href=\"http://arcanis.name/ru/projects/"
|
||||
"pytextmonitor/\">домашней странице проекта</a>"
|
||||
"Подробная информация может быть найдена на <a href=\"http://arcanis.name/ru/"
|
||||
"projects/pytextmonitor/\">домашней странице проекта</a>"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:66
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
|
||||
#: rc.cpp:12
|
||||
#: rc.cpp:230
|
||||
msgid "Time"
|
||||
msgstr "Время"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:85
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_time)
|
||||
#: rc.cpp:15
|
||||
#: rc.cpp:233
|
||||
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: $dddd - long weekday; $ddd - short weekday; $dd - day; $d day w\\o "
|
||||
"zero; \n"
|
||||
"\t$MMMM - long month; $MMM - short month; $MM - month; $M - month w\\o "
|
||||
"zero; \n"
|
||||
"\t$yyyy - year; $yy short year; \n"
|
||||
"\t$hh - hours (24 only); $h - hours w\\o zero (24 only); \n"
|
||||
"\t$mm - minutes; $m - minutes w\\o zero;\n"
|
||||
"\t$ss - seconds; $s - seconds w\\o zero"
|
||||
"$custom - custom time format"
|
||||
msgstr ""
|
||||
"$time - время в стандартном формате\n"
|
||||
"$isotime - время ISO формате\n"
|
||||
"$isotime - время в ISO формате\n"
|
||||
"$shorttime - время в коротком формате\n"
|
||||
"$longtime - время в длинном формате\n"
|
||||
"$custom: $dddd - день недели (длинный); $ddd - день недели (короткий); $dd - "
|
||||
"день; $d - день без 0; \n"
|
||||
"\t$MMMM - месяц (длинный); $MMM - месяц (короткий); $MM - месяц; $M - месяц "
|
||||
"без 0; \n"
|
||||
"\t$yyyy - год; $yy - год (короткий); \n"
|
||||
"\t$hh - часы (24); $h - часы без 0 (24); \n"
|
||||
"\t$mm - минуты; $m - минуты без 0;\n"
|
||||
"\t$ss - секунды; $s - секунды без 0"
|
||||
"$custom - свой формат времени"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:130
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
|
||||
#: rc.cpp:27
|
||||
#: rc.cpp:240
|
||||
msgid "Uptime"
|
||||
msgstr "Время работы"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:141
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
|
||||
#: rc.cpp:30
|
||||
#: rc.cpp:243
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom: $ds - uptime days; $hs - uptime hours; $ms - uptime minutes"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
"$uptime - время работы\n"
|
||||
"$custom: $ds - дни работы; $hs - часы; $ms - минуты"
|
||||
"$custom - свой формат"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:189
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
|
||||
#: rc.cpp:34
|
||||
#: rc.cpp:247
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:200
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
|
||||
#: rc.cpp:38
|
||||
#, no-c-format
|
||||
#: rc.cpp:251
|
||||
msgid ""
|
||||
"$cpu - total load CPU, %\n"
|
||||
"$ccpu - load CPU for each core, %"
|
||||
"$cpu0 - load CPU for core 0, %\n"
|
||||
"...\n"
|
||||
"$cpu9 - load CPU for core 9, %\n"
|
||||
"...\n"
|
||||
"$cpuN - load CPU for core N, %"
|
||||
msgstr ""
|
||||
"$cpu - общая загрузка CPU, %\n"
|
||||
"$ccpu - загрузка CPU для каждого ядра, %"
|
||||
"$cpu0 - загрузка CPU для ядра 0, %\n"
|
||||
"...\n"
|
||||
"$cpu9 - загрузка CPU для ядра 9, %\n"
|
||||
"...\n"
|
||||
"$cpuN - загрузка CPU для ядра N, %"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:248
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
|
||||
#: rc.cpp:42
|
||||
#: rc.cpp:259
|
||||
msgid "CPU Clock"
|
||||
msgstr "Частота CPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:259
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
|
||||
#: rc.cpp:45
|
||||
#: rc.cpp:262
|
||||
msgid ""
|
||||
"$cpucl - average CPU clock, MHz\n"
|
||||
"$ccpucl - CPU clock for each core, MHz"
|
||||
"$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 - средняя частота CPU, MHz\n"
|
||||
"$ccpucl - частота CPU для каждого ядра, MHz"
|
||||
"$cpucl0 - частота CPU для ядра 0, MHz\n"
|
||||
"...\n"
|
||||
"$cpucl9 - частота CPU для ядра 9, MHz\n"
|
||||
"...\n"
|
||||
"$cpuclN - частота CPU для ядра N, MHz"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:307
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
|
||||
#: rc.cpp:49
|
||||
#: rc.cpp:270
|
||||
msgid "Temperature"
|
||||
msgstr "Температура"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:330
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
|
||||
#: rc.cpp:52
|
||||
msgid "$temp - physical temperature on CPU"
|
||||
msgstr "$temp - физическая температура на CPU"
|
||||
#: rc.cpp:273
|
||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||
msgstr "$tempN - физическая температура на устройстве N (от 0). Пример: $temp0"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:378
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
|
||||
#: rc.cpp:55
|
||||
#: rc.cpp:276
|
||||
msgid "GPU"
|
||||
msgstr "GPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:388
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
|
||||
#: rc.cpp:59
|
||||
#, no-c-format
|
||||
#: rc.cpp:280
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr "$gpu - использование GPU, %"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:436
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
|
||||
#: rc.cpp:62
|
||||
#: rc.cpp:283
|
||||
msgid "GPU Temp"
|
||||
msgstr "Температура GPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:446
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
|
||||
#: rc.cpp:65
|
||||
#: rc.cpp:286
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr "$gputemp - физическая температура на GPU"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:494
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
|
||||
#: rc.cpp:68
|
||||
#: rc.cpp:289
|
||||
msgid "Memory"
|
||||
msgstr "Память"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:505
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
|
||||
#: rc.cpp:72
|
||||
#, no-c-format
|
||||
#: rc.cpp:293
|
||||
msgid ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB"
|
||||
"$memmb - RAM usage, MB\n"
|
||||
"$memgb - RAM usage, GB\n"
|
||||
"$memtotmb - total RAM, MB\n"
|
||||
"$memtotgb - total RAM, GB"
|
||||
msgstr ""
|
||||
"$mem - использование RAM, %\n"
|
||||
"$memmb - использование RAM, MB"
|
||||
"$memmb - использование RAM, MB\n"
|
||||
"$memgb - использование RAM, GB\n"
|
||||
"$memtotmb - RAM, MB\n"
|
||||
"$memtotgb - RAM, GB"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:553
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
|
||||
#: rc.cpp:76
|
||||
#: rc.cpp:300
|
||||
msgid "Swap"
|
||||
msgstr "Swap"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:564
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
|
||||
#: rc.cpp:80
|
||||
#, no-c-format
|
||||
#: rc.cpp:304
|
||||
msgid ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB"
|
||||
"$swapmb - swap usage, MB\n"
|
||||
"$swapgb - swap usage, GB\n"
|
||||
"$swaptotmb - total swap, MB\n"
|
||||
"$swaptotgb - total swap, GB"
|
||||
msgstr ""
|
||||
"$swap - использование swap, %\n"
|
||||
"$swapmb - использование swap, MB"
|
||||
"$swapmb - использование swap, MB\n"
|
||||
"$swapgb - использование swap, GB\n"
|
||||
"$swaptotmb - swap, MB\n"
|
||||
"$swaptotgb - swap, GB"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:612
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
|
||||
#: rc.cpp:84
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
#: rc.cpp:315
|
||||
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\n"
|
||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
||||
msgstr ""
|
||||
"$hddN - использование точки монтирования N (от 0), %. Пример: $hdd0\n"
|
||||
"$hddmbN - использование точки монтирования N (от 0), MB. Пример: $hddmb0\n"
|
||||
"$hddgbN - использование точки монтирования N (от 0), GB. Пример: $hddgb0\n"
|
||||
"$hddtotmbN - размер точки монтирования N (от 0), MB. Пример: $hddtotmb0\n"
|
||||
"$hddtotgbN - размер точки монтирования N (от 0), GB. Пример: $hddtotgb0"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:622
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
|
||||
#: rc.cpp:88
|
||||
#, no-c-format
|
||||
msgid "@@/;@@ - mount point usage, %"
|
||||
msgstr "@@/;@@ - использование точки монтирования, %"
|
||||
#: rc.cpp:322
|
||||
msgid "HDD speed"
|
||||
msgstr "Скорость HDD"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:670
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
|
||||
#: rc.cpp:91
|
||||
msgid "HDD Temp"
|
||||
#: rc.cpp:325
|
||||
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:329
|
||||
msgid "HDD temp"
|
||||
msgstr "Температура HDD"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:680
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
|
||||
#: rc.cpp:94
|
||||
msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
|
||||
msgstr "@@/dev/sda@@ - физическая температура /dev/sda"
|
||||
#: rc.cpp:332
|
||||
msgid ""
|
||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||
msgstr "$hddtempN - температура на устройстве N (от 0). Пример: $hddtemp0"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:728
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
|
||||
#: rc.cpp:97
|
||||
#: rc.cpp:335
|
||||
msgid "Network"
|
||||
msgstr "Сеть"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:740
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
|
||||
#: rc.cpp:100
|
||||
#: rc.cpp:338
|
||||
msgid ""
|
||||
"$net - network speed, down/up, KB/s\n"
|
||||
"$netdev - current network device\n"
|
||||
"@@eth0@@ - disable auto select device and set specified device"
|
||||
"$down - download speed, KB/s\n"
|
||||
"$up - upload speed, KB/s\n"
|
||||
"$netdev - current network device"
|
||||
msgstr ""
|
||||
"$net - скорость передачи данных, down/up, KB/s\n"
|
||||
"$netdev - используемое устройство\n"
|
||||
"@@eth0@@ - отключить автовыбор устройства и установить указанное"
|
||||
"$down - скорость скачки, KB/s\n"
|
||||
"$up - скорость загрузки, KB/s\n"
|
||||
"$netdev - текущее устройство"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:788
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
|
||||
#: rc.cpp:105
|
||||
#: rc.cpp:343
|
||||
msgid "Battery"
|
||||
msgstr "Батарея"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:799
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
|
||||
#: rc.cpp:109
|
||||
#, no-c-format
|
||||
#: rc.cpp:347
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
"$bat - заряд батареи, %\n"
|
||||
"$ac - статус адаптора питания"
|
||||
"$ac - статус адаптера питания"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:863
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
|
||||
#: rc.cpp:113
|
||||
msgid "Battery device"
|
||||
msgstr "Устройство батареи"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:870
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
|
||||
#: rc.cpp:116
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" по умолчанию"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:906
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
|
||||
#: rc.cpp:119
|
||||
msgid "AC device"
|
||||
msgstr "Устройство AC"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:913
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
|
||||
#: rc.cpp:122
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" по умолчанию"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:933
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
|
||||
#: rc.cpp:125
|
||||
msgid "Music player"
|
||||
msgstr "Музыкальный плеер"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:950
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
|
||||
#: rc.cpp:128
|
||||
msgid "amarok"
|
||||
msgstr "amarok"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:955
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
|
||||
#: rc.cpp:131
|
||||
msgid "mpd"
|
||||
msgstr "mpd"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:960
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_player)
|
||||
#: rc.cpp:134
|
||||
msgid "qmmp"
|
||||
msgstr "qmmp"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:972
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
|
||||
#: rc.cpp:137
|
||||
#: rc.cpp:354
|
||||
msgid ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
@ -321,56 +524,116 @@ msgstr ""
|
||||
"$time - продолжительность\n"
|
||||
"$title - название"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1026
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, appearance)
|
||||
#: rc.cpp:144
|
||||
msgid "Appearance"
|
||||
msgstr "Внешний вид"
|
||||
#: rc.cpp:361
|
||||
msgid "Processes"
|
||||
msgstr "Процессы"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1040
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: rc.cpp:147
|
||||
msgid "Time interval"
|
||||
msgstr "Интервал обновления"
|
||||
#: rc.cpp:364
|
||||
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 - список запущенных процессов, разделенных запятыми"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1095
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
||||
#: rc.cpp:150
|
||||
msgid "Font"
|
||||
msgstr "Шрифт"
|
||||
#: rc.cpp:372
|
||||
msgid ""
|
||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||
"For example $pkgcount0"
|
||||
msgstr ""
|
||||
"$pkgcountN - число пакетов, которые доступны для обновления, для команды N. "
|
||||
"Например, $pkgcount0"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1135
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
||||
#: rc.cpp:153
|
||||
msgid "Font size"
|
||||
msgstr "Размер шрифта"
|
||||
#: rc.cpp:375
|
||||
msgid "Custom"
|
||||
msgstr "Своя команда"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1190
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_color)
|
||||
#: rc.cpp:156
|
||||
msgid "Font color"
|
||||
msgstr "Цвет шрифта"
|
||||
#: rc.cpp:378
|
||||
msgid ""
|
||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
msgstr "$customN - получить информацию из своей команды N. Например $custom0"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1230
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_style)
|
||||
#: rc.cpp:159
|
||||
msgid "Font style"
|
||||
msgstr "Стиль шрифта"
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1280
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_weight)
|
||||
#: rc.cpp:162
|
||||
msgid "Font weight"
|
||||
msgstr "Ширина шрифта"
|
||||
|
||||
#: rc.cpp:163
|
||||
#: rc.cpp:379
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: rc.cpp:164
|
||||
#: rc.cpp:380
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
||||
|
||||
#~ msgid "Widget settings"
|
||||
#~ msgstr "Настройки виджета"
|
||||
|
||||
#~ msgid "pacman -Qu"
|
||||
#~ msgstr "pacman -Qu"
|
||||
|
||||
#~ msgid "apt-show-versions -u -b"
|
||||
#~ msgstr "apt-show-versions -u -b"
|
||||
|
||||
#~ msgid "aptitude search '~U'"
|
||||
#~ msgstr "aptitude search '~U'"
|
||||
|
||||
#~ msgid "yum list updates"
|
||||
#~ msgstr "yum list updates"
|
||||
|
||||
#~ msgid "pkg_version -I -l '<'"
|
||||
#~ msgstr "pkg_version -I -l '<'"
|
||||
|
||||
#~ msgid "urpmq --auto-select"
|
||||
#~ msgstr "urpmq --auto-select"
|
||||
|
||||
#~ 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 ""
|
||||
#~ "Command to run, example:\n"
|
||||
#~ "wget -qO- http://ifconfig.me/ip - get external IP"
|
||||
#~ msgstr ""
|
||||
#~ "Команда для запуска, например:\n"
|
||||
#~ "wget -qO- http://ifconfig.me/ip - получить внешний IP"
|
||||
|
||||
#~ msgid "@@/;@@ - mount point usage, %"
|
||||
#~ msgstr "@@/;@@ - использование точки монтирования, %"
|
||||
|
||||
#~ msgid "@@/dev/sda@@ - physical temperature on /dev/sda"
|
||||
#~ msgstr "@@/dev/sda@@ - физическая температура /dev/sda"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "$net - network speed, down/up, KB/s\n"
|
||||
#~ "$netdev - current network device\n"
|
||||
#~ "@@eth0@@ - disable auto select device and set specified device"
|
||||
#~ msgstr ""
|
||||
#~ "$net - скорость передачи данных, down/up, KB/s\n"
|
||||
#~ "$netdev - используемое устройство\n"
|
||||
#~ "@@eth0@@ - отключить автовыбор устройства и установить указанное"
|
||||
|
569
sources/ptm/po/uk.po
Normal file
@ -0,0 +1,569 @@
|
||||
# Copyright (C) 2014
|
||||
# This file is distributed under the same license as the PyTextMonitor package.
|
||||
#
|
||||
# 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-31 14:04+0400\n"
|
||||
"PO-Revision-Date: 2014-06-06 01:23+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Ukrainian <kde-russian@lists.kde.ru>\n"
|
||||
"Language: ua\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/configdef.py:273
|
||||
msgid "Widget"
|
||||
msgstr "Віджет"
|
||||
|
||||
#: code/configdef.py:275
|
||||
msgid "Advanced"
|
||||
msgstr "Розширені"
|
||||
|
||||
#: code/configdef.py:277
|
||||
msgid "Tooltip"
|
||||
msgstr "Тултіп"
|
||||
|
||||
#: code/configdef.py:279
|
||||
msgid "Appearance"
|
||||
msgstr "Зовнішній вигляд"
|
||||
|
||||
#: code/configdef.py:281
|
||||
msgid "DataEngine"
|
||||
msgstr "DataEngine"
|
||||
|
||||
#: code/main.py:117
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Запустити ksysguard"
|
||||
|
||||
#: code/main.py:119
|
||||
msgid "Show README"
|
||||
msgstr "Показати README"
|
||||
|
||||
#: code/main.py:121
|
||||
msgid "Update text"
|
||||
msgstr "Оновити текст"
|
||||
|
||||
#: rc.cpp:3 rc.cpp:129 rc.cpp:150 rc.cpp:197 rc.cpp:224
|
||||
msgid "Form"
|
||||
msgstr "Form"
|
||||
|
||||
#: rc.cpp:6
|
||||
msgid "Vertical layout"
|
||||
msgstr "Вертикальна розмітка"
|
||||
|
||||
#: rc.cpp:9
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Включити спливаючі підказки при натисканні клавіші миші"
|
||||
|
||||
#: rc.cpp:12
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Додати порожнє місце ліворуч/вгорі віджету"
|
||||
|
||||
#: rc.cpp:15
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Додати порожнє місце праворуч/внизу віджету"
|
||||
|
||||
#: rc.cpp:18
|
||||
msgid "Custom time format"
|
||||
msgstr "Свій формат часу"
|
||||
|
||||
#: rc.cpp:21
|
||||
msgid ""
|
||||
"$dddd - long weekday\n"
|
||||
"$ddd - short weekday\n"
|
||||
"$dd - day\n"
|
||||
"$d - day w\\o zero\n"
|
||||
"$MMMM - long month\n"
|
||||
"$MMM - short month\n"
|
||||
"$MM - month\n"
|
||||
"$M - month w\\o zero\n"
|
||||
"$yyyy - year\n"
|
||||
"$yy - short year\n"
|
||||
"$hh - hours (24 only)\n"
|
||||
"$h - hours w\\o zero (24 only)\n"
|
||||
"$mm - minutes\n"
|
||||
"$m - minutes w\\o zero\n"
|
||||
"$ss - seconds\n"
|
||||
"$s - seconds w\\o zero"
|
||||
msgstr ""
|
||||
"$dddd - день тижня (довгий)\n"
|
||||
"$ddd - день тижня (короткий)\n"
|
||||
"$dd - день\n"
|
||||
"$d - день без нулів\n"
|
||||
"$MMMM - місяць (довгий)\n"
|
||||
"$MMM - місяць (короткий)\n"
|
||||
"$MM - місяць\n"
|
||||
"$M - місяць без нулів\n"
|
||||
"$yyyy - рік\n"
|
||||
"$yy - рук (короткий)\n"
|
||||
"$hh - години (24)\n"
|
||||
"$h - години без нулів (24)\n"
|
||||
"$mm - хвилини\n"
|
||||
"$m - хвилини без нулів\n"
|
||||
"$ss - секунди\n"
|
||||
"$s - секунди без нулів"
|
||||
|
||||
#: rc.cpp:39
|
||||
msgid "Custom uptime format"
|
||||
msgstr "Свій формат аптайму (uptime)"
|
||||
|
||||
#: rc.cpp:42
|
||||
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 - дні аптайму\n"
|
||||
"$d - дні аптайму без нулів\n"
|
||||
"$hh - години аптайму\n"
|
||||
"$h - години аптайму без нулів\n"
|
||||
"$mm - хвилини аптайму\n"
|
||||
"$m - хвилини аптайму без нулів"
|
||||
|
||||
#: rc.cpp:50
|
||||
msgid "Temperature units"
|
||||
msgstr "Одиниці виміру температури"
|
||||
|
||||
#: rc.cpp:53
|
||||
msgid "Temperature devices"
|
||||
msgstr "Температурні пристрої"
|
||||
|
||||
#: rc.cpp:56 rc.cpp:66 rc.cpp:76 rc.cpp:86 rc.cpp:159 rc.cpp:187
|
||||
msgid "Add"
|
||||
msgstr "Добавити"
|
||||
|
||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
"Можна редагувати\n"
|
||||
"del - видалити рядок"
|
||||
|
||||
#: rc.cpp:63
|
||||
msgid "Mount points"
|
||||
msgstr "Точки монтування"
|
||||
|
||||
#: rc.cpp:73
|
||||
msgid "HDD devices (speed)"
|
||||
msgstr "HDD (швидкість)"
|
||||
|
||||
#: rc.cpp:83
|
||||
msgid "HDD devices (temp)"
|
||||
msgstr "HDD (температура)"
|
||||
|
||||
#: rc.cpp:93
|
||||
msgid "Network directory"
|
||||
msgstr "Шлях до інтерфейсів"
|
||||
|
||||
#: rc.cpp:96
|
||||
msgid "\"/sys/class/net\" by default"
|
||||
msgstr "\"/sys/class/net\" за замовчуванням"
|
||||
|
||||
#: rc.cpp:99
|
||||
msgid "Disable auto select device and set specified device"
|
||||
msgstr "Відключити автоматичний вибір пристрою та використовувати вказаний"
|
||||
|
||||
#: rc.cpp:102
|
||||
msgid "Set network device"
|
||||
msgstr "Оберіть мережевий пристрій"
|
||||
|
||||
#: rc.cpp:105
|
||||
msgid "Battery device"
|
||||
msgstr "Пристрій батареї"
|
||||
|
||||
#: rc.cpp:108
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" за замовчуванням"
|
||||
|
||||
#: rc.cpp:111
|
||||
msgid "AC online tag"
|
||||
msgstr "AC підключений"
|
||||
|
||||
#: rc.cpp:114
|
||||
msgid "Line, which returns when AC is online"
|
||||
msgstr "Рядок, що повертається при підключеному адаптері живлення"
|
||||
|
||||
#: rc.cpp:117
|
||||
msgid "AC offline tag"
|
||||
msgstr "AC відключений"
|
||||
|
||||
#: rc.cpp:120
|
||||
msgid "Line, which returns when AC is offline"
|
||||
msgstr "Рядок, що повертається при відключеному адаптері живлення"
|
||||
|
||||
#: rc.cpp:123
|
||||
msgid "AC device"
|
||||
msgstr "AC пристрій"
|
||||
|
||||
#: rc.cpp:126
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" за замовчуванням"
|
||||
|
||||
#: rc.cpp:132
|
||||
msgid "Time interval"
|
||||
msgstr "Інтервал оновлення"
|
||||
|
||||
#: rc.cpp:135
|
||||
msgid "Font"
|
||||
msgstr "Шрифт"
|
||||
|
||||
#: rc.cpp:138
|
||||
msgid "Font size"
|
||||
msgstr "Розмір шрифту"
|
||||
|
||||
#: rc.cpp:141
|
||||
msgid "Font color"
|
||||
msgstr "Колір шрифту"
|
||||
|
||||
#: rc.cpp:144
|
||||
msgid "Font style"
|
||||
msgstr "Стиль шрифту"
|
||||
|
||||
#: rc.cpp:147
|
||||
msgid "Font weight"
|
||||
msgstr "Ширина шрифту"
|
||||
|
||||
#: rc.cpp:153
|
||||
msgid "Custom command"
|
||||
msgstr "Своя команда"
|
||||
|
||||
#: rc.cpp:156
|
||||
msgid "Custom command to run"
|
||||
msgstr "Виконання своєї команди"
|
||||
|
||||
#: rc.cpp:166
|
||||
msgid "GPU device"
|
||||
msgstr "Пристій GPU"
|
||||
|
||||
#: rc.cpp:169 rc.cpp:311
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: rc.cpp:172
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "Команда hddtemp"
|
||||
|
||||
#: rc.cpp:175
|
||||
msgid "MPD address"
|
||||
msgstr "Адреса сервера MPD"
|
||||
|
||||
#: rc.cpp:178
|
||||
msgid "MPD port"
|
||||
msgstr "Порт сервера MPD"
|
||||
|
||||
#: rc.cpp:181 rc.cpp:369
|
||||
msgid "Package manager"
|
||||
msgstr "Пакетний менеджер"
|
||||
|
||||
#: rc.cpp:184
|
||||
msgid "Number of null lines"
|
||||
msgstr "Кількість пустих рядків"
|
||||
|
||||
#: rc.cpp:194 rc.cpp:351
|
||||
msgid "Music player"
|
||||
msgstr "Музичний плеєр"
|
||||
|
||||
#: rc.cpp:200
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
msgstr ""
|
||||
"Поля \"CPU\", \"Частота CPU\", \"Пам’ятьґЄ, \"Swap\" та \"Мережа\" "
|
||||
"підтримують графічний тултіп. "
|
||||
"Щоб їх задіяти, просто зробіть необхідні чекбокси повністю чекнутими."
|
||||
|
||||
#: rc.cpp:203
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Кількість значень для тултіпа"
|
||||
|
||||
#: rc.cpp:206
|
||||
msgid "CPU clock color"
|
||||
msgstr "Колір частоти CPU"
|
||||
|
||||
#: rc.cpp:209
|
||||
msgid "Swap color"
|
||||
msgstr "Колір swap"
|
||||
|
||||
#: rc.cpp:212
|
||||
msgid "CPU color"
|
||||
msgstr "Колір CPU"
|
||||
|
||||
#: rc.cpp:215
|
||||
msgid "Download speed color"
|
||||
msgstr "Колір швидкості скачування"
|
||||
|
||||
#: rc.cpp:218
|
||||
msgid "Memory color"
|
||||
msgstr "Колір пам’яті"
|
||||
|
||||
#: rc.cpp:221
|
||||
msgid "Upload speed color"
|
||||
msgstr "Колір швидкості віддачі"
|
||||
|
||||
#: rc.cpp:227
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"pytextmonitor/\">project homepage</a>"
|
||||
msgstr ""
|
||||
"Детальна інформація може бути знайдена на <a href=\"http://arcanis.name/"
|
||||
"projects/pytextmonitor/\">домашній сторінці проекту</a>"
|
||||
|
||||
#: rc.cpp:230
|
||||
msgid "Time"
|
||||
msgstr "Час"
|
||||
|
||||
#: rc.cpp:233
|
||||
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 - час у стандартному форматі\n"
|
||||
"$isotime - час у форматі ISO\n"
|
||||
"$shorttime - час в короткому форматі\n"
|
||||
"$longtime - час у довгому форматі\n"
|
||||
"$custom - свій формат часу"
|
||||
|
||||
#: rc.cpp:240
|
||||
msgid "Uptime"
|
||||
msgstr "Час роботи"
|
||||
|
||||
#: rc.cpp:243
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
"$uptime - час роботи\n"
|
||||
"$custom - свій формат"
|
||||
|
||||
#: rc.cpp:247
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
#: rc.cpp:251
|
||||
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 - загальне завантаження CPU, %\n"
|
||||
"$cpu0 - завантаження CPU для ядра 0, %\n"
|
||||
"...\n"
|
||||
"$cpu9 - завантаження CPU для ядра 9, %\n"
|
||||
"...\n"
|
||||
"$cpuN - завантаження CPU для ядра N, %"
|
||||
|
||||
#: rc.cpp:259
|
||||
msgid "CPU Clock"
|
||||
msgstr "Частота CPU"
|
||||
|
||||
#: rc.cpp:262
|
||||
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 - середня частота CPU, MHz\n"
|
||||
"$cpucl0 - частота CPU для ядра 0, MHz\n"
|
||||
"...\n"
|
||||
"$cpucl9 - частота CPU для ядра 9, MHz\n"
|
||||
"...\n"
|
||||
"$cpuclN - частота CPU для ядра N, MHz"
|
||||
|
||||
#: rc.cpp:270
|
||||
msgid "Temperature"
|
||||
msgstr "Температура"
|
||||
|
||||
#: rc.cpp:273
|
||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||
msgstr "$tempN - фізична температура на пристрої N (від 0). Приклад: $temp0"
|
||||
|
||||
#: rc.cpp:276
|
||||
msgid "GPU"
|
||||
msgstr "GPU"
|
||||
|
||||
#: rc.cpp:280
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr "$gpu - використання gpu, %"
|
||||
|
||||
#: rc.cpp:283
|
||||
msgid "GPU Temp"
|
||||
msgstr "Температура GPU"
|
||||
|
||||
#: rc.cpp:286
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr "$gputemp - фізична температура на GPU"
|
||||
|
||||
#: rc.cpp:289
|
||||
msgid "Memory"
|
||||
msgstr "Пам’ять"
|
||||
|
||||
#: rc.cpp:293
|
||||
msgid ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB\n"
|
||||
"$memgb - RAM usage, GB\n"
|
||||
"$memtotmb - total RAM, MB\n"
|
||||
"$memtotgb - total RAM, GB"
|
||||
msgstr ""
|
||||
"$mem - використання RAM, %\n"
|
||||
"$memmb - використання RAM, MB\n"
|
||||
"$memgb - використання RAM, GB"
|
||||
|
||||
#: rc.cpp:300
|
||||
msgid "Swap"
|
||||
msgstr "Swap"
|
||||
|
||||
#: rc.cpp:304
|
||||
msgid ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB\n"
|
||||
"$swapgb - swap usage, GB\n"
|
||||
"$swaptotmb - total swap, MB\n"
|
||||
"$swaptotgb - total swap, GB"
|
||||
msgstr ""
|
||||
"$swap - використання swap, %\n"
|
||||
"$swapmb - використання swap, MB\n"
|
||||
"$swapgb - використання swap, GB"
|
||||
"$swaptotmb - swap, MB\n"
|
||||
"$swaptotgb - swap, GB"
|
||||
|
||||
#: rc.cpp:315
|
||||
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\n"
|
||||
"$hddtotmbN - total size of mount point N (from 0), MB. Example: $hddtotmb0\n"
|
||||
"$hddtotgbN - total size of mount point N (from 0), GB. Example: $hddtotgb0"
|
||||
msgstr ""
|
||||
"$hddN - використання точки монтування N (від 0), %. Приклад: $hdd0\n"
|
||||
"$hddmbN - використання точки монтування N (від 0), MB. Приклад: $hddmb0\n"
|
||||
"$hddgbN - використання точки монтування N (від 0), GB. Приклад: $hddgb0\n"
|
||||
"$hddtotmbN - розмір точки монтування N (від 0), MB. Приклад: $hddtotmb0\n"
|
||||
"$hddtotgbN - розмір точки монтування N (від 0), GB. Приклад: $hddtotgb0"
|
||||
|
||||
#: rc.cpp:322
|
||||
msgid "HDD speed"
|
||||
msgstr "Швидкість HDD"
|
||||
|
||||
#: rc.cpp:325
|
||||
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:329
|
||||
msgid "HDD temp"
|
||||
msgstr "Температура HDD"
|
||||
|
||||
#: rc.cpp:332
|
||||
msgid ""
|
||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||
msgstr ""
|
||||
"$hddtempN - фізична температура на пристрої N (від 0). Приклад: $hddtemp"
|
||||
|
||||
#: rc.cpp:335
|
||||
msgid "Network"
|
||||
msgstr "Мережа"
|
||||
|
||||
#: rc.cpp:338
|
||||
msgid ""
|
||||
"$down - download speed, KB/s\n"
|
||||
"$up - upload speed, KB/s\n"
|
||||
"$netdev - current network device"
|
||||
msgstr ""
|
||||
"$down - швидкість скачування, KB/s\n"
|
||||
"$up - швидкість віддачі, KB/s\n"
|
||||
"$netdev - поточний мережевий пристрій"
|
||||
|
||||
#: rc.cpp:343
|
||||
msgid "Battery"
|
||||
msgstr "Батарея"
|
||||
|
||||
#: rc.cpp:347
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
"$bat - заряд батареї, %\n"
|
||||
"$ac - статус адаптера живлення"
|
||||
|
||||
#: rc.cpp:354
|
||||
msgid ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
"$progress - song progress\n"
|
||||
"$time - song duration\n"
|
||||
"$title - song title"
|
||||
msgstr ""
|
||||
"$album - альбом\n"
|
||||
"$artist - виконавець\n"
|
||||
"$progress - прогрес\n"
|
||||
"$time - тривалість\n"
|
||||
"$title - назва"
|
||||
|
||||
#: rc.cpp:361
|
||||
msgid "Processes"
|
||||
msgstr "Процеси"
|
||||
|
||||
#: rc.cpp:364
|
||||
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:372
|
||||
msgid ""
|
||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||
"For example $pkgcount0"
|
||||
msgstr ""
|
||||
"$pkgcountN - кількість пакетів, що доступні для оновлення, для команди N. "
|
||||
"Наприклад: $pkgcount0"
|
||||
|
||||
#: rc.cpp:375
|
||||
msgid "Custom"
|
||||
msgstr "Своя команда"
|
||||
|
||||
#: rc.cpp:378
|
||||
msgid ""
|
||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
msgstr ""
|
||||
"$customN - отримати інформацію зі своєї команди N. Наприклад `$custom0`"
|
||||
|
||||
#: rc.cpp:379
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Slobodyan Victor"
|
||||
|
||||
#: rc.cpp:380
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "sarumyan@i.ua"
|
||||
|
||||
#~ msgid "Widget settings"
|
||||
#~ msgstr "Налаштування віджету"
|
5
sources/readme/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
# set project name
|
||||
set (SUBPROJECT pytextmonitor)
|
||||
|
||||
file (GLOB SUBPROJECT_MD *.html)
|
||||
install (FILES ${SUBPROJECT_MD} DESTINATION share/${SUBPROJECT}/)
|
273
sources/readme/en.html
Normal file
@ -0,0 +1,273 @@
|
||||
<meta charset="utf-8">
|
||||
<h1>pytextmonitor</h1>
|
||||
|
||||
<h2>Information</h2>
|
||||
|
||||
<p>PyTextMonitor is a minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm.</p>
|
||||
|
||||
<p><strong>NOTE</strong> <a href="https://github.com/arcan1s/pytextmonitor/issues/14">LOOKING FOR TRANSLATORS!</a></p>
|
||||
|
||||
<h2>Configuration</h2>
|
||||
|
||||
<p>For edited output you must open Settings window and setup output format in lines:</p>
|
||||
|
||||
<ul>
|
||||
<li>tag <code>$time</code> - time in default format. For example, <em>fri Nov 6 04:48:01 2013</em></li>
|
||||
<li>tag <code>$isotime</code> - time in iso format</li>
|
||||
<li>tag <code>$shorttime</code> - time in short locale format</li>
|
||||
<li>tag <code>$longtime</code> - time in long locale format</li>
|
||||
<li>tag <code>$custom</code> - custom time format</li>
|
||||
<li>tag <code>$uptime</code> - uptime, <em>---d--h--m</em></li>
|
||||
<li>tag <code>$custom</code> - custom uptime format</li>
|
||||
<li>tag <code>$cpu</code> - total load cpu, <em>%</em></li>
|
||||
<li>tag <code>$cpuN</code> - load CPU for core N, <em>%</em></li>
|
||||
<li>tag <code>$cpucl</code> - average cpu clock, <em>MHz</em></li>
|
||||
<li>tag <code>$cpuclN</code> - cpu clock for core N, <em>MHz</em></li>
|
||||
<li>tag <code>$tempN</code> - temperature for device N. For example, <code>$temp0</code></li>
|
||||
<li>tag <code>$gpu</code> - GPU usage, <em>%</em>. <code>aticonfig</code> or <code>nvidia-smi</code> must be installed</li>
|
||||
<li>tag <code>$gputemp</code> - GPU temperature. <code>aticonfig</code> or <code>nvidia-smi</code> must be installed</li>
|
||||
<li>tag <code>$mem</code> - usage memory, <em>%</em></li>
|
||||
<li>tag <code>$memmb</code> - usage memory, <em>MB</em></li>
|
||||
<li>tag <code>$memgb</code> - usage memory, <em>GB</em></li>
|
||||
<li>tag <code>$memtotmb</code> - total RAM, <em>MB</em></li>
|
||||
<li>tag <code>$memtotgb</code> - total RAM, <em>GB</em></li>
|
||||
<li>tag <code>$swap</code> - swap, <em>%</em></li>
|
||||
<li>tag <code>$swapmb</code> - swap, <em>MB</em></li>
|
||||
<li>tag <code>$swapgb</code> - swap, <em>GB</em></li>
|
||||
<li>tag <code>$swaptotmb</code> - total swap, <em>MB</em></li>
|
||||
<li>tag <code>$swaptotgb</code> - total swap, <em>GB</em></li>
|
||||
<li>tag <code>$hddN</code> - usage for mount point N, <em>%</em>. For example, <code>$hdd0</code></li>
|
||||
<li>tag <code>$hddmbN</code> - usage for mount point N, <em>MB</em>. For example, <code>$hddmb0</code></li>
|
||||
<li>tag <code>$hddgbN</code> - usage for mount point N, <em>GB</em>. For example, <code>$hddgb0</code></li>
|
||||
<li>tag <code>$hddtotmbN</code> - total size of mount point N, <em>MB</em>. For example, <code>$hddtotmb0</code></li>
|
||||
<li>tag <code>$hddtotgbN</code> - total size of mount point N, <em>GB</em>. For example, <code>$hddtotgb0</code></li>
|
||||
<li>tag <code>$hddrN</code> - read speed of disk N, <em>KB/s</em>. For example, <code>$hddr0</code></li>
|
||||
<li>tag <code>$hddwN</code> - write speed of disk N, <em>KB/s</em>. For example, <code>$hddw0</code></li>
|
||||
<li>tag <code>$hddtempN</code> - temperature for HDD N. For example, <code>$hddtemp0</code></li>
|
||||
<li>tag <code>$down</code> - download speed, <em>KB/s</em></li>
|
||||
<li>tag <code>$up</code> - upload speed, <em>KB/s</em></li>
|
||||
<li>tag <code>$netdev</code> - current network device</li>
|
||||
<li>tag <code>$bat</code> - battery charge, <em>%</em></li>
|
||||
<li>tag <code>$ac</code> - status AC device. Return (*) if AC device is online or <em>( )</em> if offline</li>
|
||||
<li>tag <code>$album</code> - current song album. One of supported music players must be installed</li>
|
||||
<li>tag <code>$artist</code> - current song artist. One of supported music players must be installed</li>
|
||||
<li>tag <code>$progress</code> - current song progress. One of supported music players must be installed</li>
|
||||
<li>tag <code>$time</code> - current song duration. One of supported music players must be installed</li>
|
||||
<li>tag <code>$title</code> - current song title. One of supported music players must be installed</li>
|
||||
<li>tag <code>$pscount</code> - number of running processes</li>
|
||||
<li>tag <code>$pstotal</code> - total number of processes</li>
|
||||
<li>tag <code>$ps</code> - list of running processes</li>
|
||||
<li>tag <code>$pkgcountN</code> - number of packages, which available to upgrade for command N. For example, <code>$pkgcount0</code></li>
|
||||
<li>tag <code>$customN</code> - returns output for custom command N. For example, <code>$custom0</code></li>
|
||||
</ul>
|
||||
|
||||
<p>Label order will changed if you change slider position. HTML tags in label work normally.</p>
|
||||
|
||||
<p><strong>NOTE</strong> you don't may set to show <code>$cpu</code> tag in swap label for example. <strong><code>$cpu</code> will work only in cpu label</strong>.</p>
|
||||
|
||||
<h2>Tips & tricks</h2>
|
||||
|
||||
<p>You may use different colors for labels. Just put label text into html code. See <a href="https://github.com/arcan1s/pytextmonitor/issues/9">issue</a> for more details.</p>
|
||||
|
||||
<p>Numbering of elements of temperature, HDD usage, HDD speed, HDD temperature refers to elements order from second tab (<em>Advanced settings</em>). You should add item to the required listWidget first. And the first element in the listWidget will be <code>$tag0</code>. See <a href="https://github.com/arcan1s/pytextmonitor/issues/17">issue</a> for more details.</p>
|
||||
|
||||
<h2>Advanced settings</h2>
|
||||
|
||||
<p><strong>Vertical layout</strong></p>
|
||||
|
||||
<p>Use vertical layout instead of horizontal one.</p>
|
||||
|
||||
<p><strong>Enable popup</strong></p>
|
||||
|
||||
<p>Uncheck box if you do not use popup messages.</p>
|
||||
|
||||
<p><strong>Add stretch</strong></p>
|
||||
|
||||
<p>Add stretch (spacer) to the selected side of the widget.</p>
|
||||
|
||||
<p><strong>Custom time</strong></p>
|
||||
|
||||
<ul>
|
||||
<li>tag <code>$dddd</code> - weekday in long format</li>
|
||||
<li>tag <code>$ddd</code> - weekday in short format</li>
|
||||
<li>tag <code>$dd</code> - day</li>
|
||||
<li>tag <code>$d</code> - day without zero</li>
|
||||
<li>tag <code>$MMMM</code> - month in long format</li>
|
||||
<li>tag <code>$MMM</code> - month in short format</li>
|
||||
<li>tag <code>$MM</code> - month</li>
|
||||
<li>tag <code>$M</code> - month without zero</li>
|
||||
<li>tag <code>$yyyy</code> - year</li>
|
||||
<li>tag <code>$yy</code> - year in short format</li>
|
||||
<li>tag <code>$hh</code> - hours</li>
|
||||
<li>tag <code>$h</code> - hours without zero</li>
|
||||
<li>tag <code>$mm</code> - minutes</li>
|
||||
<li>tag <code>$m</code> - minutes without zero</li>
|
||||
<li>tag <code>$ss</code> - seconds</li>
|
||||
<li>tag <code>$s</code> - seconds without zero</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Custom uptime</strong></p>
|
||||
|
||||
<ul>
|
||||
<li>tag <code>$dd</code> - uptime days</li>
|
||||
<li>tag <code>$d</code> - uptime days without zero</li>
|
||||
<li>tag <code>$hh</code> - uptime hours</li>
|
||||
<li>tag <code>$h</code> - uptime hours without zero</li>
|
||||
<li>tag <code>$mm</code> - uptime minutes</li>
|
||||
<li>tag <code>$m</code> - uptime minutes without zero</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Temperature units</strong></p>
|
||||
|
||||
<p>Select units for temperature. Available units are Celsius, Farenheit and Kelvin.</p>
|
||||
|
||||
<p><strong>Temperature devices</strong></p>
|
||||
|
||||
<p>List of devices, which will be observed in temp label (combo box items come from <code>sensors</code>). List widget is editable, delete key will remove current item.</p>
|
||||
|
||||
<p><strong>Mount points</strong></p>
|
||||
|
||||
<p>List of mount points, which will be observed in hdd label (combo box items come from <code>mount</code>). List widget is editable, delete key will remove current item.</p>
|
||||
|
||||
<p><strong>HDD (speed)</strong></p>
|
||||
|
||||
<p>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.</p>
|
||||
|
||||
<p><strong>HDD (temperature)</strong></p>
|
||||
|
||||
<p>List of hard disk devices, which will be observed in hddtemp label (combo box items come from <code>find</code>). List widget is editable, delete key will remove current item.</p>
|
||||
|
||||
<p><strong>Network directory</strong></p>
|
||||
|
||||
<p>Path to directory, which contains network devices information. Default is <code>/sys/class/net</code>. Required for auto select network device.</p>
|
||||
|
||||
<p><strong>Network device</strong></p>
|
||||
|
||||
<p>Use specified device as active. Combo box items come from <strong>network directory</strong>. Will disable auto select network device.</p>
|
||||
|
||||
<p><strong>Battery device</strong></p>
|
||||
|
||||
<p>File with battery information. File (<code>/sys/class/power_supply/BAT0/capacity</code> by default) should contain only battery charge in percent.</p>
|
||||
|
||||
<p><strong>AC online tag</strong></p>
|
||||
|
||||
<p>Line which will be shown when AC is online.</p>
|
||||
|
||||
<p><strong>AC offline tag</strong></p>
|
||||
|
||||
<p>Line which will be shown when AC is offline.</p>
|
||||
|
||||
<p><strong>AC device</strong></p>
|
||||
|
||||
<p>File with AC information. File (<code>/sys/class/power_supply/AC/online</code> by default) must contain <code>1</code> if AC is online.</p>
|
||||
|
||||
<h2>Tooltip settings</h2>
|
||||
|
||||
<p>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.</p>
|
||||
|
||||
<h2>DataEngine settings</h2>
|
||||
|
||||
<p><strong>Custom command</strong></p>
|
||||
|
||||
<p><em>NOTE</em> This can cause the computer freeze.</p>
|
||||
|
||||
<p>Commands, which will be run for custom label.</p>
|
||||
|
||||
<p><strong>GPU device</strong></p>
|
||||
|
||||
<p>Select one of supported GPU devices. <code>auto</code> will enable auto selection, <code>disable</code> will disable definition of GPU states. Default is <code>auto</code>.</p>
|
||||
|
||||
<p><strong>HDD</strong></p>
|
||||
|
||||
<p>Select one of HDDs for HDD temperature monitor. <code>all</code> will enable monitor for all devices, <code>disable</code> will disable definition of HDD temperature. Default is <code>all</code>.</p>
|
||||
|
||||
<p><strong>hddtemp cmd</strong></p>
|
||||
|
||||
<p>Type a command which will be run for hddtemp DataEngine. Default is <code>sudo hddtemp</code>.</p>
|
||||
|
||||
<p><strong>MPD address</strong></p>
|
||||
|
||||
<p>Address of MPD server. Default is <code>localhost</code>.</p>
|
||||
|
||||
<p><strong>MPD port</strong></p>
|
||||
|
||||
<p>Port of MPD server. Default is <code>6600</code>.</p>
|
||||
|
||||
<p><strong>Package manager</strong></p>
|
||||
|
||||
<p>List of commands, which will be run. Number of null lines is a number of unneeded lines. Defaults:</p>
|
||||
|
||||
<ul>
|
||||
<li><em>Arch</em>: <code>PKGCMD=pacman -Qu</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Debian</em>: <code>PKGCMD=apt-show-versions -u -b</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Ubuntu</em>: <code>PKGCMD=aptitude search '~U'</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Fedora</em>: <code>PKGCMD=yum list updates</code>, <code>PKGNULL=3</code></li>
|
||||
<li><em>FreeBSD</em>: <code>PKGCMD=pkg_version -I -l '<'</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Mandriva</em>: <code>PKGCMD=urpmq --auto-select</code>, <code>PKGNULL=0</code></li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Music player</strong></p>
|
||||
|
||||
<p>Select one of supported music playes for player label.</p>
|
||||
|
||||
<h2>DataEngine configuration</h2>
|
||||
|
||||
<p>You may edit DataEngine configuration. It is <code>/usr/share/config/extsysmon.conf</code> or <code>$HOME/share/config/extsysmon.conf</code> depending on the type of installation. Uncomment needed line and edit it.</p>
|
||||
|
||||
<h1>Instruction</h1>
|
||||
|
||||
<h2>Dependencies</h2>
|
||||
|
||||
<ul>
|
||||
<li>kdebase-workspace</li>
|
||||
<li>kdebindings-python2</li>
|
||||
<li>lm_sensors (<em>for definition temperature device</em>)</li>
|
||||
</ul>
|
||||
|
||||
<h2>Optional dependencies</h2>
|
||||
|
||||
<ul>
|
||||
<li>sysstat (<em>for notification</em>)</li>
|
||||
<li>proprietary video driver</li>
|
||||
<li>hddtemp (make sure that it may be run with <code>sudo</code> without password. Just add following line to <code>/etc/sudoers</code>: <code>$USERNAME ALL=NOPASSWD: /usr/bin/hddtemp</code>)</li>
|
||||
<li>music player (amarok, clementine, mpd or qmmp)</li>
|
||||
</ul>
|
||||
|
||||
<h2>Make dependencies</h2>
|
||||
|
||||
<ul>
|
||||
<li>automoc4</li>
|
||||
<li>cmake</li>
|
||||
</ul>
|
||||
|
||||
<h2>Installation</h2>
|
||||
|
||||
<ul>
|
||||
<li>download sources</li>
|
||||
<li><p>install</p>
|
||||
|
||||
<pre><code>mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --localprefix` ../
|
||||
make && make install
|
||||
</code></pre>
|
||||
|
||||
<p>Also you may install it to <code>/</code>:</p>
|
||||
|
||||
<pre><code>mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
||||
make && sudo make install
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
|
||||
<h1>Additional information</h1>
|
||||
|
||||
<h2>TODO (wish list)</h2>
|
||||
|
||||
<h2>Links</h2>
|
||||
|
||||
<ul>
|
||||
<li><a href="http://arcanis.name/projects/pytextmonitor/">Homepage</a></li>
|
||||
<li>Plasmoid on <a href="http://kde-look.org/content/show.php/Py+Text+Monitor?content=157124">kde-look</a></li>
|
||||
<li>DataEngine on <a href="http://kde-look.org/content/show.php/Extended+Systemmonitor+DataEngine?content=158773">kde-look</a></li>
|
||||
<li>Archlinux <a href="https://aur.archlinux.org/packages/kdeplasma-applets-pytextmonitor/">AUR</a> package</li>
|
||||
</ul>
|
254
sources/readme/es.html
Normal file
@ -0,0 +1,254 @@
|
||||
<meta charset="utf-8">
|
||||
<h1>pytextmonitor</h1>
|
||||
|
||||
<h2>Información</h2>
|
||||
|
||||
<p>PyTextMonitor es un plasmoide minimalista escrito en Python2. Luce como los componentes visuales de awesome-wm.</p>
|
||||
|
||||
<p><strong>NOTA</strong> <a href="https://github.com/arcan1s/pytextmonitor/issues/14">¡Se buscan traductores!</a></p>
|
||||
|
||||
<h2>Configuración</h2>
|
||||
|
||||
<p>Para editar la visualización debes abrir la ventana de Ajustes y establecer el formato de visualización en líneas:</p>
|
||||
|
||||
<ul>
|
||||
<li>etiqueta <code>$time</code> - hora en formato por defecto. Por ejemplo, <em>vie 06 Nov 04:48:01 2013</em></li>
|
||||
<li>etiqueta <code>$isotime</code> - hora en formato ISO</li>
|
||||
<li>etiqueta <code>$shorttime</code> - hora en formato local corto</li>
|
||||
<li>etiqueta <code>$longtime</code> - hora en formato local largo</li>
|
||||
<li>etiqueta <code>$custom</code> - formato de hora personalizado</li>
|
||||
<li>etiqueta <code>$uptime</code> - tiempo de actividad del sistema, <em>---d--h--m</em></li>
|
||||
<li>etiqueta <code>$custom</code> - formato personalizado del tiempo de actividad del sistema</li>
|
||||
<li>etiqueta <code>$cpu</code> - carga total de la CPU, <em>%</em></li>
|
||||
<li>etiqueta <code>$cpuN</code> - carga de la CPU para el núcleo N, <em>%</em></li>
|
||||
<li>etiqueta <code>$cpucl</code> - frecuencia promedio de la CPU, <em>MHz</em></li>
|
||||
<li>etiqueta <code>$cpuclN</code> - frecuencia de la CPU para el núcleo N, <em>MHz</em></li>
|
||||
<li>etiqueta <code>$tempN</code> - temperatura para el dispositivo N. Por ejemplo, <code>$temp0</code></li>
|
||||
<li>etiqueta <code>$gpu</code> - uso de la GPU, <em>%</em>. Debe estar instalado <code>aticonfig</code> o <code>nvidia-smi</code></li>
|
||||
<li>etiqueta <code>$gputemp</code> - temperatura de la GPU. Debe estar instalado <code>aticonfig</code> o <code>nvidia-smi</code></li>
|
||||
<li>etiqueta <code>$mem</code> - uso de la memoria, <em>%</em></li>
|
||||
<li>etiqueta <code>$memmb</code> - uso de la memoria, <em>MB</em></li>
|
||||
<li>etiqueta <code>$memgb</code> - uso de la memoria, <em>GB</em></li>
|
||||
<li>etiqueta <code>$memtotmb</code> - uso total de memoria, <em>MB</em></li>
|
||||
<li>etiqueta <code>$memtotgb</code> - uso total de memoria, <em>GB</em></li>
|
||||
<li>etiqueta <code>$swap</code> - swap, <em>%</em></li>
|
||||
<li>etiqueta <code>$swapmb</code> - swap, <em>MB</em></li>
|
||||
<li>etiqueta <code>$swapgb</code> - swap, <em>GB</em></li>
|
||||
<li>etiqueta <code>$swaptotmb</code> - uso total de swap, <em>MB</em></li>
|
||||
<li>etiqueta <code>$swaptotgb</code> - uso total de swap, <em>GB</em></li>
|
||||
<li>etiqueta <code>$hddN</code> - uso para el punto de montaje N, <em>%</em>. Por ejemplo, <code>$hdd0</code></li>
|
||||
<li>etiqueta <code>$hddmbN</code> - uso para el punto de montaje N, <em>MB</em>. Por ejemplo, <code>$hddmb0</code></li>
|
||||
<li>etiqueta <code>$hddgbN</code> - uso para el punto de montaje N, <em>GB</em>. Por ejemplo, <code>$hddgb0</code></li>
|
||||
<li>etiqueta <code>$hddtotmbN</code> - tamaño completo del punto de montaje N, <em>MB</em>. Por ejemplo, <code>$hddtotmb0</code></li>
|
||||
<li>etiqueta <code>$hddtotgbN</code> - tamaño completo del punto de montaje N, <em>GB</em>. Por ejemplo, <code>$hddtotgb0</code></li>
|
||||
<li>etiqueta <code>$hddrN</code> - leer la velocidad del disco N, <em>KB/s</em>. Por ejemplo, <code>$hddr0</code></li>
|
||||
<li>etiqueta <code>$hddwN</code> - velocidad de escritura del disco N, <em>KB/s</em>. Por ejemplo: <code>$hddw0</code></li>
|
||||
<li>etiqueta <code>$hddtempN</code> - temperatura para el disco duro N. Por ejemplo, <code>$hddtemp0</code></li>
|
||||
</ul>
|
||||
|
||||
<p><strong>NOTA</strong> no puedes establecer la etiqueta <code>$cpu</code> para que se muestre en la información de la swap, por citar un ejemplo. <strong><code>$cpu</code> solo funcionará en la etiqueta de la CPU</strong>.</p>
|
||||
|
||||
<h2>Trucos</h2>
|
||||
|
||||
<p>Es posible usar diferentes colores para las etiquetas. Solo tienes que ponerles el texto en formato HTML. Para más detalles, ver <a href="https://github.com/arcan1s/pytextmonitor/issues/9">el tema</a> relacionado.</p>
|
||||
|
||||
<p>La enumeración de los elementos de temperatura, uso del disco duro, velocidad del disco duro y la temperatura del disco duro, se refiere al orden de los elementos de la segunda pestaña (<em>Ajustes avanzados</em>). Primeramente deberías añadir el elemento a la lista requerida. El primer elemento de la lista será $tag0. Para más información, ver <a href="https://github.com/arcan1s/pytextmonitor/issues/17">el tema</a> relacionado.</p>
|
||||
|
||||
<h2>Ajustes avanzados</h2>
|
||||
|
||||
<p><strong>Orientación vertical</strong></p>
|
||||
|
||||
<p>Usar la orientación vertical en lugar de la horizontal.</p>
|
||||
|
||||
<p><strong>Habilitar ventanas emergentes</strong></p>
|
||||
|
||||
<p>Desmarcar esta caja si no deseas usar ventanas emergentes.</p>
|
||||
|
||||
<p><strong>Añadir extensión</strong></p>
|
||||
|
||||
<p>Añadir extensión (espaciador) al lado seleccionado del widget.</p>
|
||||
|
||||
<p><strong>Hora personalizada</strong></p>
|
||||
|
||||
<ul>
|
||||
<li>etiqueta <code>$dddd</code> - día de la semana en foramto largo</li>
|
||||
<li>etiqueta <code>$ddd</code> - día de la semana en formato corto</li>
|
||||
<li>etiqueta <code>$dd</code> - día</li>
|
||||
<li>etiqueta <code>$d</code> - día sin ceros</li>
|
||||
<li>etiqueta <code>$MMMM</code> - mes en formato largo</li>
|
||||
<li>etiqueta <code>$MMM</code> - mes en formato corto</li>
|
||||
<li>etiqueta <code>$MM</code> - mes</li>
|
||||
<li>etiqueta <code>$M</code> - mes sin ceros</li>
|
||||
<li>etiqueta <code>$yyyy</code> - año</li>
|
||||
<li>etiqueta <code>$yy</code> - año en formato corto</li>
|
||||
<li>etiqueta <code>$hh</code> - horas</li>
|
||||
<li>etiqueta <code>$h</code> - horas sin ceros</li>
|
||||
<li>etiqueta <code>$mm</code> - minutos</li>
|
||||
<li>etiqueta <code>$m</code> - minutos sin ceros</li>
|
||||
<li>etiqueta <code>$ss</code> - segundos</li>
|
||||
<li>etiqueta <code>$s</code> - segundos sin ceros</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Tiempo de ejecución del sistema personalizado</strong></p>
|
||||
|
||||
<ul>
|
||||
<li>etiqueta <code>$dd</code> - días</li>
|
||||
<li>etiqueta <code>$d</code> - días sin ceros</li>
|
||||
<li>etiqueta <code>$hh</code> - horas</li>
|
||||
<li>etiqueta <code>$h</code> - horas sin ceros</li>
|
||||
<li>etiqueta <code>$mm</code> - minutos</li>
|
||||
<li>etiqueta <code>$m</code> - minutos sin ceros</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Unidades de temperatura</strong></p>
|
||||
|
||||
<p>Elija las unidades de temperatura. Las unidades disponibles son: Celsius, Farenheit y Kelvin.</p>
|
||||
|
||||
<p><strong>Dispositivos de temperatura</strong></p>
|
||||
|
||||
<p>El listado de dispositivos, será observado en la etiqueta de temperatura (los elementos de la lista desplegable provienen de <code>sensors</code>). El listado es editable, la tecla Suprimir borrará el elemento activo.</p>
|
||||
|
||||
<p><strong>Puntos de montaje</strong></p>
|
||||
|
||||
<p>El listado de puntos de montaje, será observado en la etiqueta de disco duro (los elementos de la lista desplegable provienen de <code>mount</code>). El listado es editable, la tecla Suprimir borrará el elemento activo.</p>
|
||||
|
||||
<p><strong>Disco duro (velocidad)</strong></p>
|
||||
|
||||
<p>Listado de dispositivos de disco duro, será observado en la etiqueta hddspeed (los elementos de la lista desplegable provienen de DataEngine).</p>
|
||||
|
||||
<p><strong>Disco duro (temperatura)</strong></p>
|
||||
|
||||
<p>El listado de dispositivos de disco duro, será observado desde la etiqueta disco duro (los elementos de la lista desplegable provienen de <code>find</code>). El listado es editable, la tecla Suprimir borrará el elemento activo.</p>
|
||||
|
||||
<p><strong>Directorio de red</strong></p>
|
||||
|
||||
<p>Ruta hacia el directorio que contiene información de los dispositivos de red. Por defecto es <code>/sys/class/net</code>. Se requiere para la selección automática del dispositivo de red.</p>
|
||||
|
||||
<p><strong>Dispositivo de red</strong></p>
|
||||
|
||||
<p>Usar el dispositivo especificado como activo. Los elementos de la lista desplegable provienen del <strong>directorio de red</strong>. Esto inhabilitará la selección automática del dispositivo de red.</p>
|
||||
|
||||
<p><strong>Dispositivo de batería</strong></p>
|
||||
|
||||
<p>El archivo que contiene información de la batería. El archivo (<code>/sys/class/power_supply/BAT0/capacity</code> por defecto) solo debería contener la carga de la batería en por ciento.</p>
|
||||
|
||||
<p><strong>Etiqueta alimentación conectada</strong></p>
|
||||
|
||||
<p>Línea que será mostrada cuando la alimentación esté conectada.</p>
|
||||
|
||||
<p><strong>Etiqueta alimentación conectada</strong></p>
|
||||
|
||||
<p>Línea que será mostrada cuando la alimentación esté desconectada.</p>
|
||||
|
||||
<p><strong>Dispositivo de alimentación</strong></p>
|
||||
|
||||
<p>El archivo con información de la alimentación. El archivo (<code>/sys/class/power_supply/AC/online</code> por defecto) debe contener <code>1</code> si la alimentación está conectada.</p>
|
||||
|
||||
<h2>Ajustes de las ventanas emergentes</h2>
|
||||
|
||||
<p>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.</p>
|
||||
|
||||
<h2>Ajustes de DataEngine</h2>
|
||||
|
||||
<p><strong>Comando personalizado</strong></p>
|
||||
|
||||
<p><em>NOTA</em> Esto puede causar congelamiento de la computadora.</p>
|
||||
|
||||
<p><strong>Dispositivo GPU</strong></p>
|
||||
|
||||
<p>Elegir uno de los dispositivos GPU soportados. <code>auto</code> habilitará la selección automática, <code>disable</code> inhabilitará la definición de los estados de la GPU. El valor por defecto es <code>auto</code>.</p>
|
||||
|
||||
<p><strong>Disco duro</strong></p>
|
||||
|
||||
<p>Elegir uno de los discos duros para el monitor de temperatura del disco. <code>all</code> habilitará el monitor para todos los dispositivos, <code>disable</code> inhabilitará la definición de la temperatura del disco. El valor por defecto es <code>all</code>.</p>
|
||||
|
||||
<p><strong>Comando hddtemp</strong></p>
|
||||
|
||||
<p>Escriba el comando que será ejecutado por el DataEngine hddtemp. El valor por defecto es <code>sudo hddtemp</code>.</p>
|
||||
|
||||
<p><strong>Dirección MPD</strong></p>
|
||||
|
||||
<p>Dirección del servidor MPD. El valor por defecto es <code>localhost</code>.</p>
|
||||
|
||||
<p><strong>Puerto MPD</strong></p>
|
||||
|
||||
<p>Puerto del servidor MPD. El valor por defecto es <code>6600</code>.</p>
|
||||
|
||||
<p><strong>Gestor de paquetes</strong></p>
|
||||
|
||||
<p>Listado de comandos que serán ejecutados. La cantidad de líneas nulas es el número de líneas innecesarias. Predeterminados:</p>
|
||||
|
||||
<ul>
|
||||
<li><em>Arch</em>: <code>PKGCMD=pacman -Qu</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Debian</em>: <code>PKGCMD=apt-show-versions -u -b</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Ubuntu</em>: <code>PKGCMD=aptitude search '~U'</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Fedora</em>: <code>PKGCMD=yum list updates</code>, <code>PKGNULL=3</code></li>
|
||||
<li><em>FreeBSD</em>: <code>PKGCMD=pkg_version -I -l '<'</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Mandriva</em>: <code>PKGCMD=urpmq --auto-select</code>, <code>PKGNULL=0</code></li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Reproductor de música</strong></p>
|
||||
|
||||
<p>Selecciona uno de los reproductores de música soportados para la etiqueta del reproductor.</p>
|
||||
|
||||
<h2>Configuración de DataEngine</h2>
|
||||
|
||||
<p>Se puede editar la configuración de DataEngine. Se encuentra en <code>/usr/share/config/extsysmon.conf</code> o <code>$HOME/share/config/extsysmon.conf</code> en dependencia del tipo de instalación. Quitar el comentario de la línea requerida y editarlo.</p>
|
||||
|
||||
<h1>Instrucción</h1>
|
||||
|
||||
<h2>Dependencias</h2>
|
||||
|
||||
<ul>
|
||||
<li>kdebase-workspace</li>
|
||||
<li>kdebindings-python2</li>
|
||||
<li>lm_sensors (<em>para definir el dispositivo de temperatura</em>)</li>
|
||||
</ul>
|
||||
|
||||
<h2>Dependencias opcionales</h2>
|
||||
|
||||
<ul>
|
||||
<li>sysstat (<em>para las notificaciones</em>)</li>
|
||||
<li>controlador propietario de video</li>
|
||||
<li>hddtemp (asegúrate de que puede ser ejecutado con <code>sudo</code> y sin contraseña. Solo hay que agregar la siguiente línea al archivo <code>/etc/sudoers</code>: <code>$USERNAME ALL=NOPASSWD: /usr/bin/hddtemp</code>)</li>
|
||||
<li>reproductor de música (amarok, clementine, mpd o qmmp)</li>
|
||||
</ul>
|
||||
|
||||
<h2>Dependencias de construcción</h2>
|
||||
|
||||
<ul>
|
||||
<li>automoc4</li>
|
||||
<li>cmake</li>
|
||||
</ul>
|
||||
|
||||
<h2>Instalación</h2>
|
||||
|
||||
<ul>
|
||||
<li>descargar fuentes</li>
|
||||
<li><p>instalar</p>
|
||||
|
||||
<pre><code>mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --localprefix` ../
|
||||
make && make install
|
||||
</code></pre>
|
||||
|
||||
<p>También es posible instalarlo en <code>/</code>:</p>
|
||||
|
||||
<pre><code>mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
||||
make && sudo make install
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
|
||||
<h1>Información adicional</h1>
|
||||
|
||||
<h2>TODO (funcionalidades solicitadas)</h2>
|
||||
|
||||
<h2>Enlaces</h2>
|
||||
|
||||
<ul>
|
||||
<li><a href="http://arcanis.name/projects/pytextmonitor/">Sitio oficial</a></li>
|
||||
<li>Plasmoide en <a href="http://kde-look.org/content/show.php/Py+Text+Monitor?content=157124">kde-look</a></li>
|
||||
<li>DataEngine en <a href="http://kde-look.org/content/show.php/Extended+Systemmonitor+DataEngine?content=158773">kde-look</a></li>
|
||||
<li>Archlinux <a href="https://aur.archlinux.org/packages/kdeplasma-applets-pytextmonitor/">AUR</a> package</li>
|
||||
</ul>
|
273
sources/readme/pt_BR.html
Normal file
@ -0,0 +1,273 @@
|
||||
<meta charset="utf-8">
|
||||
<h1>pytextmonitor</h1>
|
||||
|
||||
<h2>Informação</h2>
|
||||
|
||||
<p>PyTextMonitor é um script Plasmoid escrito em Python2. Assemelha-se com widgets no awesome-wm.</p>
|
||||
|
||||
<p><strong>NOTA</strong> <a href="https://github.com/arcan1s/pytextmonitou/issues/14">PROCURA_SE TRADUTORES!</a></p>
|
||||
|
||||
<h2>Configuração</h2>
|
||||
|
||||
<p>Para editar o output, você deve abrir a janela de Configurações e configurar o formato de output na linhas:</p>
|
||||
|
||||
<ul>
|
||||
<li>tag <code>$time</code> - hora no formato padrão. Por exemplo, <em>sex Nov 6 04:48:01 2013</em></li>
|
||||
<li>tag <code>$isotime</code> - hora no formato ISO.</li>
|
||||
<li>tag <code>$shouttime</code> - hora em formato curto</li>
|
||||
<li>tag <code>$longtime</code> - hora em formato longo</li>
|
||||
<li>tag <code>$custom</code> - formato personalizado de houa</li>
|
||||
<li>tag <code>$uptime</code> - tempo em atividade, <em>---d--h--m</em></li>
|
||||
<li>tag <code>$custom</code> - formato personalizado de tempo em atividade</li>
|
||||
<li>tag <code>$cpu</code> - carga total da CPU, <em>%</em></li>
|
||||
<li>tag <code>$cpuN</code> - carga total da CPU no núcleo N, <em>%</em></li>
|
||||
<li>tag <code>$cpucl</code> - frequência média da CPU, <em>MHz</em></li>
|
||||
<li>tag <code>$cpuclN</code> - frequência do núcleo N da CPU, <em>MHz</em></li>
|
||||
<li>tag <code>$tempN</code> - temperatura do dispositivo N. Por exemplo, <code>$temp0</code></li>
|
||||
<li>tag <code>$gpu</code> - uso da GPU, <em>%</em>. <code>aticonfig</code> ou <code>nvidia-smi</code> devem estar instalados</li>
|
||||
<li>tag <code>$gputemp</code> - temperatura da GPU. <code>aticonfig</code> ou <code>nvidia-smi</code> devem estar instalados</li>
|
||||
<li>tag <code>$mem</code> - uso de memória, <em>%</em></li>
|
||||
<li>tag <code>$memmb</code> - uso de memória, <em>MB</em></li>
|
||||
<li>tag <code>$memgb</code> - uso de memória, <em>GB</em></li>
|
||||
<li>tag <code>$memtotmb</code> - RAM total, <em>MB</em></li>
|
||||
<li>tag <code>$memtotgb</code> - RAM total, <em>GB</em></li>
|
||||
<li>tag <code>$swap</code> - swap, <em>%</em></li>
|
||||
<li>tag <code>$swapmb</code> - swap, <em>MB</em></li>
|
||||
<li>tag <code>$swapgb</code> - swap, <em>GB</em></li>
|
||||
<li>tag <code>$swaptotmb</code> - swap total, <em>MB</em></li>
|
||||
<li>tag <code>$swaptotgb</code> - swap total, <em>GB</em></li>
|
||||
<li>tag <code>$hddN</code> - uso do ponto de montagem N, <em>%</em>. Pou exemplo, <code>$hdd0</code></li>
|
||||
<li>tag <code>$hddmbN</code> - uso do ponto de montagem, <em>MB</em>. Por exemplo, <code>$hddmb0</code></li>
|
||||
<li>tag <code>$hddgbN</code> - uso do ponto de montagem, <em>GB</em>. Por exemplo, <code>$hddgb0</code></li>
|
||||
<li>tag <code>$hddtotmbN</code> - tamanho total do ponto de montagem N, <em>MB</em>. Por exemplo, <code>$hddtotmb0</code></li>
|
||||
<li>tag <code>$hddtotgbN</code> - tamanho total do ponto de montagem N,, <em>GB</em>. Por exemplo, <code>$hddtotgb0</code></li>
|
||||
<li>tag <code>$hddrN</code> - velocidade de leitura do disco N, <em>KB/s</em>. Por exemplo, <code>$hddr0</code></li>
|
||||
<li>tag <code>$hddwN</code> - velocidade de escrita do disco N, <em>KB/s</em>. Por exemplo, <code>$hddw0</code></li>
|
||||
<li>tag <code>$hddtempN</code> - temperatura do HDD N. Por exemplo, <code>$hddtemp0</code></li>
|
||||
<li>tag <code>$down</code> - velocidade de download, <em>KB/s</em></li>
|
||||
<li>tag <code>$up</code> - velocidade de upload, <em>KB/s</em></li>
|
||||
<li>tag <code>$netdev</code> - dispositivo atual de rede</li>
|
||||
<li>tag <code>$bat</code> - carga da bateria, <em>%</em></li>
|
||||
<li>tag <code>$ac</code> - status do dispositivo carregador. Retorna (*) se o carregador estiver plugado ou <em>( )</em> se estiver desplugado</li>
|
||||
<li>tag <code>$album</code> - álbum da música atual . Um dos reprodutores de músicas suportados deve estar instalado</li>
|
||||
<li>tag <code>$artist</code> - artista da música atual. Um dos reprodutores de músicas suportados deve estar instalado</li>
|
||||
<li>tag <code>$progress</code> - progresso da música atual. Um dos reprodutores de músicas suportados deve estar instalado</li>
|
||||
<li>tag <code>$time</code> - tempo da música atual. Um dos reprodutores de músicas suportados deve estar instalado</li>
|
||||
<li>tag <code>$title</code> - título da música atual. Um dos reprodutores de músicas suportados deve estar instalado</li>
|
||||
<li>tag <code>$pscount</code> - número de processos rodando</li>
|
||||
<li>tag <code>$pstotal</code> - número total de processos</li>
|
||||
<li>tag <code>$ps</code> - lista de processos rodando</li>
|
||||
<li>tag <code>$pkgcountN</code> - número de pacotes disponíveis para atualizar pelo comando N available to upgrade. Por exemplo, <code>$pkgcount0</code></li>
|
||||
<li>tag <code>$customN</code> - retorna o output do comando N. Por exemplo, <code>$custom0</code></li>
|
||||
</ul>
|
||||
|
||||
<p>A ordem dos rótulos mudará se você mudar a posição do slider. Tags HTML funcionarão normalmente.</p>
|
||||
|
||||
<p><strong>NOTA</strong> você não deve usar a tag <code>$cpu</code> no rótulo de swap, por exemplo. <strong><code>$cpu</code> somente funcionará no rótulo da cpu</strong>.</p>
|
||||
|
||||
<h2>Dicas & truques</h2>
|
||||
|
||||
<p>Você pode usar cores diferentes para os rótulos. Só coloque o texto do rótulo em código HTML. Veja este <a href="https://github.com/arcan1s/pytextmonitor/issues/9">issue</a> para mais detalhes.</p>
|
||||
|
||||
<p>A numeração dos elementos de temperatura, uso de HDD, velocidade do HDD, temperatura do HDD refere à ordem dos elementos da segunda aba (<em>Configurações Avançadas</em>). Você deve adicionar o item para a lista requerida listWidget primeiro. E o primeiro elemento na listWidget será <code>$tag0</code>. Veja este <a href="https://github.com/arcan1s/pytextmonitor/issues/17">issue</a> para mais detalhes.</p>
|
||||
|
||||
<h2>Configurações Avançadas</h2>
|
||||
|
||||
<p><strong>Layout vertical</strong></p>
|
||||
|
||||
<p>Use o layout vertical ao invés do horizontal.</p>
|
||||
|
||||
<p><strong>Habilitar popup</strong></p>
|
||||
|
||||
<p>Desmarque esta caixa se não quiser usar mensagens popup</p>
|
||||
|
||||
<p><strong>Adicionar esticamento</strong></p>
|
||||
|
||||
<p>Adicionar esticamento (espaço) para o lado selecionado do widget.</p>
|
||||
|
||||
<p><strong>Hora customizada</strong></p>
|
||||
|
||||
<ul>
|
||||
<li>tag <code>$dddd</code> - dia da semana em formato completo</li>
|
||||
<li>tag <code>$ddd</code> - dia da semana em format curto</li>
|
||||
<li>tag <code>$dd</code> - dia</li>
|
||||
<li>tag <code>$d</code> - dia sem zeros</li>
|
||||
<li>tag <code>$MMMM</code> - mês em formato completo</li>
|
||||
<li>tag <code>$MMM</code> - mês em formato curto</li>
|
||||
<li>tag <code>$MM</code> - mês</li>
|
||||
<li>tag <code>$M</code> - mês sem zeros</li>
|
||||
<li>tag <code>$yyyy</code> - ano</li>
|
||||
<li>tag <code>$yy</code> - ano em formato curto</li>
|
||||
<li>tag <code>$hh</code> - horas</li>
|
||||
<li>tag <code>$h</code> - horas sem zeros</li>
|
||||
<li>tag <code>$mm</code> - minutos</li>
|
||||
<li>tag <code>$m</code> - minutos sem zeros</li>
|
||||
<li>tag <code>$ss</code> - segundos</li>
|
||||
<li>tag <code>$s</code> - segundos sem zeros</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Tempo em Atividade personalizado</strong></p>
|
||||
|
||||
<ul>
|
||||
<li>tag <code>$dd</code> - tempo em atividade em dias</li>
|
||||
<li>tag <code>$d</code> - tempo em atividade em dias sem zeros</li>
|
||||
<li>tag <code>$hh</code> - tempo em atividade em horas</li>
|
||||
<li>tag <code>$h</code> - tempo em atividade em horas sem zeros</li>
|
||||
<li>tag <code>$mm</code> - tempo em atividade em minutos</li>
|
||||
<li>tag <code>$m</code> - tempo em atividade em minutos sem zeros</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Unidades de Temperatura</strong></p>
|
||||
|
||||
<p>Seleciona as unidades de temperatura. Unidades disponíveis são Celsius, Farenheit e Kelvin.</p>
|
||||
|
||||
<p><strong>Dispositivos de Temperatura</strong></p>
|
||||
|
||||
<p>Lista de dispositovos, a serem observados no rótulo de temperatura (os itens de seleção vêm do <code>sensors</code>). A lista de widgets é editável, a tecla delete removerá o item selecionado.</p>
|
||||
|
||||
<p><strong>Pontos de Montagem</strong></p>
|
||||
|
||||
<p>Lista de pontos de montagem, a serem observados no rótulo de hdd (os itens de seleção vêm do <code>mount</code>). A lista de widgets é editável, a tecla delete removerá o item selecionado.</p>
|
||||
|
||||
<p><strong>HDD (velocidade)</strong></p>
|
||||
|
||||
<p>Lista de dispositivos HDD, a serem observados no rótulo de hddspeed (os itens de seleção vêm do DataEngine). A lista de widgets é editável, a tecla delete removerá o item selecionado.</p>
|
||||
|
||||
<p><strong>HDD (temperatura)</strong></p>
|
||||
|
||||
<p>Lista de dispositivos HDD, a serem observados no rótulo de hddtemp (os itens de seleção vêm do <code>find</code>). A lista de widgets é editável, a tecla delete removerá o item selecionado.</p>
|
||||
|
||||
<p><strong>Diretório de rede</strong></p>
|
||||
|
||||
<p>Caminho para o diretório, que contém a informação dos dispositivos de rede. O padrão é <code>/sys/class/net</code>. Requerido para seleção automática de dispositivo de rede.</p>
|
||||
|
||||
<p><strong>Dispositivo de rede</strong></p>
|
||||
|
||||
<p>Usa o dispositivo especificado como ativo. Os itens de seleção vêm do <strong>diretório de rede</strong>. Desativará a seleção automática do dispositivo de rede.</p>
|
||||
|
||||
<p><strong>Dispositivo de bateria</strong></p>
|
||||
|
||||
<p>Arquivo com informações da bateria. O arquivo (<code>/sys/class/power_supply/BAT0/capacity</code> por padrão) deve conter somente a carga da bateria em porcentagem.</p>
|
||||
|
||||
<p><strong>Tag do carregador plugado</strong></p>
|
||||
|
||||
<p>Linha a ser mostrada quando o carregador está plugado.</p>
|
||||
|
||||
<p><strong>Tag do carregador desplugado</strong></p>
|
||||
|
||||
<p>Linha a ser mostrada quando o carregador está desplugado.</p>
|
||||
|
||||
<p><strong>Dispositivo carregador</strong></p>
|
||||
|
||||
<p>Arquivo com informações do carregador. O arquivo (<code>/sys/class/power_supply/AC/online</code> por padrão) deve conter <code>1</code> se o carregador estiver plugado.</p>
|
||||
|
||||
<h2>Configurações da dica de contexto</h2>
|
||||
|
||||
<p>Desde a versão 1.7.0, os rótulos de CPU, frequência da CPU, memória, swap e rede suportam dica de contexto gráfica. Para ativar, certifique-se de ter marcado as caixas necessárias. O número de valores armazenados pode ser configurado nesta aba. Cores de gráficos também são configuráveis.</p>
|
||||
|
||||
<h2>Configurações de DataEngine</h2>
|
||||
|
||||
<p><strong>Comando personalizado</strong></p>
|
||||
|
||||
<p><em>NOTA</em> Isso pode travar o seu computador.</p>
|
||||
|
||||
<p>Comandos que serão executados para o rótulo personalizado.</p>
|
||||
|
||||
<p><strong>Dispositivo GPU</strong></p>
|
||||
|
||||
<p>Seleciona um dos dispositivos GPU sportador. <code>auto</code> ativará a seleção automática, <code>disable</code> desativará a definição dos estados de GPU. O padrão é <code>auto</code>.</p>
|
||||
|
||||
<p><strong>HDD</strong></p>
|
||||
|
||||
<p>Seleciona um dos HDDs para o monitor de temperatura do HDD. <code>all</code> ativará o monitoramento de todos dispositivos, <code>disable</code> desativará o monitoramento para todos dispositivos. O padrão é <code>all</code>.</p>
|
||||
|
||||
<p><strong>hddtemp cmd</strong></p>
|
||||
|
||||
<p>Digite um comando que será executado para o hddtemp DataEngine. O padrão é <code>sudo hddtemp</code>.</p>
|
||||
|
||||
<p><strong>Endereço MPD</strong></p>
|
||||
|
||||
<p>Endereço do servidor MPD. O padrão é <code>localhost</code>.</p>
|
||||
|
||||
<p><strong>Porta MPD</strong></p>
|
||||
|
||||
<p>Porta do servidor MPD. O padrão é <code>6600</code>.</p>
|
||||
|
||||
<p><strong>Gerenciador de pacotes</strong></p>
|
||||
|
||||
<p>Lista de comandos a serem executador. O número de linhas nulas é o número de linhas desnecessárias. Por padrão:</p>
|
||||
|
||||
<ul>
|
||||
<li><em>Arch</em>: <code>PKGCMD=pacman -Qu</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Debian</em>: <code>PKGCMD=apt-show-versions -u -b</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Ubuntu</em>: <code>PKGCMD=aptitude search '~U'</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Fedora</em>: <code>PKGCMD=yum list updates</code>, <code>PKGNULL=3</code></li>
|
||||
<li><em>FreeBSD</em>: <code>PKGCMD=pkg_version -I -l '<'</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Mandriva</em>: <code>PKGCMD=urpmq --auto-select</code>, <code>PKGNULL=0</code></li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Reprodutor de música</strong></p>
|
||||
|
||||
<p>Selecione um dos reprodutores de música suportados para o rótulo de música.</p>
|
||||
|
||||
<h2>Configuração do DataEngine</h2>
|
||||
|
||||
<p>Você pode editar a configuração do DataEngine. Ela está em <code>/usr/share/config/extsysmon.conf</code> ou <code>$HOME/share/config/extsysmon.conf</code> dependendo do tipo de instalação. Remova os comentários das linhas necessárias e edite-as.</p>
|
||||
|
||||
<h1>Instruções</h1>
|
||||
|
||||
<h2>Dependências</h2>
|
||||
|
||||
<ul>
|
||||
<li>kdebase-workspace</li>
|
||||
<li>kdebindings-python2</li>
|
||||
<li>lm_sensors (<em>para definir a temperatura dos dispositivos</em>)</li>
|
||||
</ul>
|
||||
|
||||
<h2>Dependências opcionais</h2>
|
||||
|
||||
<ul>
|
||||
<li>sysstat (<em>para notificações</em>)</li>
|
||||
<li>driver de vídeo proprietário</li>
|
||||
<li>hddtemp (certifique-se de que pode ser executado com <code>sudo</code> sem senha. Para isso, adicione a seguinte linha ao arquivo <code>/etc/sudoers</code>: <code>$USERNAME ALL=NOPASSWD: /usr/bin/hddtemp</code>)</li>
|
||||
<li>music player (amarok, clementine, mpd or qmmp)</li>
|
||||
</ul>
|
||||
|
||||
<h2>Dependências para compilar</h2>
|
||||
|
||||
<ul>
|
||||
<li>automoc4</li>
|
||||
<li>cmake</li>
|
||||
</ul>
|
||||
|
||||
<h2>Instalação</h2>
|
||||
|
||||
<ul>
|
||||
<li>baixe o código-fonte</li>
|
||||
<li><p>instale</p>
|
||||
|
||||
<pre><code>mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --localprefix` ../
|
||||
make && make install
|
||||
</code></pre>
|
||||
|
||||
<p>Caso queira instalar na <code>/</code>:</p>
|
||||
|
||||
<pre><code>mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
||||
make && sudo make install
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
|
||||
<h1>Informações adicionais</h1>
|
||||
|
||||
<h2>TODO (lista de desejos)</h2>
|
||||
|
||||
<h2>Links</h2>
|
||||
|
||||
<ul>
|
||||
<li><a href="http://arcanis.name/projects/pytextmonitor/">Homepage</a></li>
|
||||
<li>Plasmoid na <a href="http://kde-look.org/content/show.php/Py+Text+Monitor?content=157124">kde-look</a></li>
|
||||
<li>DataEngine na <a href="http://kde-look.org/content/show.php/Extended+Systemmonitor+DataEngine?content=158773">kde-look</a></li>
|
||||
<li>Pacote para ArchLinux no <a href="https://aur.archlinux.org/packages/kdeplasma-applets-pytextmonitor/">AUR</a></li>
|
||||
</ul>
|
273
sources/readme/ru.html
Normal file
@ -0,0 +1,273 @@
|
||||
<meta charset="utf-8">
|
||||
<h1>pytextmonitor</h1>
|
||||
|
||||
<h2>Информация</h2>
|
||||
|
||||
<p>PyTextMonitor - минималистичный плазмоид, написанный на Python2. Он выглядит как виджеты в Awesome WM.</p>
|
||||
|
||||
<p><strong>ВНИМАНИЕ</strong> <a href="https://github.com/arcan1s/pytextmonitor/issues/14">НУЖНЫ ПЕРЕВОДЧИКИ!</a></p>
|
||||
|
||||
<h2>Настройка</h2>
|
||||
|
||||
<p>Для редактирования внешнего вида, откройте окно настроек и установите требуемый формат в поля:</p>
|
||||
|
||||
<ul>
|
||||
<li>тег <code>$time</code> - время в стандартном формате. Например, <em>fri Nov 6 04:48:01 2013</em></li>
|
||||
<li>тег <code>$isotime</code> - время в ISO формате</li>
|
||||
<li>тег <code>$shorttime</code> - время в коротком формате</li>
|
||||
<li>тег <code>$longtime</code> - время в длинном формате</li>
|
||||
<li>тег <code>$custom</code> - свой формат времени</li>
|
||||
<li>тег <code>$uptime</code> - время работы, <em>---d--h--m</em></li>
|
||||
<li>тег <code>$custom</code> - свой формат аптайма</li>
|
||||
<li>тег <code>$cpu</code> - общая загрузка CPU, <em>%</em></li>
|
||||
<li>тег <code>$cpuN</code> - загрузка CPU для ядра N, <em>%</em></li>
|
||||
<li>тег <code>$cpucl</code> - средняя частота CPU, <em>MHz</em></li>
|
||||
<li>тег <code>$cpuclN</code> - частота CPU для ядра N, *MHz</li>
|
||||
<li>тег <code>$tempN</code> - температура для устройства N. Например, <code>$temp0</code></li>
|
||||
<li>тег <code>$gpu</code> - использование GPU, <em>%</em>. <code>aticonfig</code> или <code>nvidia-smi</code> должны быть установлены</li>
|
||||
<li>тег <code>$gputemp</code> - температура GPU. <code>aticonfig</code> или <code>nvidia-smi</code> должны быть установлены</li>
|
||||
<li>тег <code>$mem</code> - использование RAM, <em>%</em></li>
|
||||
<li>тег <code>$memmb</code> - использование RAM, <em>MB</em></li>
|
||||
<li>тег <code>$memgb</code> - использование RAM, <em>GB</em></li>
|
||||
<li>тег <code>$memtotmb</code> - RAM, <em>MB</em></li>
|
||||
<li>тег <code>$memtotgb</code> - RAM, <em>GB</em></li>
|
||||
<li>тег <code>$swap</code> - swap, <em>%</em></li>
|
||||
<li>тег <code>$swapmb</code> - swap, <em>MB</em></li>
|
||||
<li>тег <code>$swapgb</code> - swap, <em>GB</em></li>
|
||||
<li>тег <code>$swaptotmb</code> - размер swap, <em>MB</em></li>
|
||||
<li>тег <code>$swaptotgb</code> - размер swap, <em>GB</em></li>
|
||||
<li>тег <code>$hddN</code> - использование точки монтирования N, <em>%</em>. Например, <code>$hdd0</code></li>
|
||||
<li>тег <code>$hddmbN</code> - использование точки монтирования N, <em>MB</em>. Например, <code>$hddmb0</code></li>
|
||||
<li>тег <code>$hddgbN</code> - использование точки монтирования N, <em>GB</em>. Например, <code>$hddgb0</code></li>
|
||||
<li>тег <code>$hddtotmbN</code> - размер точки монтирования N, <em>MB</em>. Например, <code>$hddtotmb0</code></li>
|
||||
<li>тег <code>$hddtotgbN</code> - размер точки монтирования N, <em>GB</em>. Например, <code>$hddtotgb0</code></li>
|
||||
<li>тег <code>$hddrN</code> - скорость записи на диск N, <em>KB/s</em>. Например, <code>$hddr0</code></li>
|
||||
<li>тег <code>$hddwN</code> - скорость чтения с диска N, <em>KB/s</em>. Например, <code>$hddw0</code></li>
|
||||
<li>тег <code>$hddtempN</code> - температура HDD N. Например, <code>$hddtemp0</code></li>
|
||||
<li>тег <code>$down</code> - скорость загрузки, <em>KB/s</em></li>
|
||||
<li>тег <code>$up</code> - скорость отдачи, <em>KB/s</em></li>
|
||||
<li>тег <code>$netdev</code> - текущий сетевой интерфейс</li>
|
||||
<li>тег <code>$bat</code> - заряд батареи, <em>%</em></li>
|
||||
<li>тег <code>$ac</code> - статус адаптера питания. Возвращает (*), если AC подключен или <em>( )</em>, если нет</li>
|
||||
<li>тег <code>$album</code> - альбом. Один из поддерживаемых плееров должен быть установлен</li>
|
||||
<li>тег <code>$artist</code> - исполнитель. Один из поддерживаемых плееров должен быть установлен</li>
|
||||
<li>тег <code>$progress</code> - прогресс. Один из поддерживаемых плееров должен быть установлен</li>
|
||||
<li>тег <code>$time</code> - длительность. Один из поддерживаемых плееров должен быть установлен</li>
|
||||
<li>тег <code>$title</code> - название. Один из поддерживаемых плееров должен быть установлен</li>
|
||||
<li>тег <code>$pscount</code> - число запущенных процессов</li>
|
||||
<li>тег <code>$pstotal</code> - общее число процессов</li>
|
||||
<li>тег <code>$ps</code> - список процессов</li>
|
||||
<li>тег <code>$pkgcountN</code> - число пакетов, которые могут быть обновлены, для команды N. Например, <code>$pkgcount0</code></li>
|
||||
<li>тег <code>$customN</code> - возвращает результат своей команды N. Например, <code>$custom0</code></li>
|
||||
</ul>
|
||||
|
||||
<p>Порядок полей изменится, если вы измените позицию слайдеров. HTML теги в полях работают корректно.</p>
|
||||
|
||||
<p><strong>ЗАМЕЧАНИЕ</strong> вы не можете установить тег <code>$cpu</code>, например, в поле swap. <strong><code>$cpu</code> будет работать только в поле CPU</strong>.</p>
|
||||
|
||||
<h2>Советы и хитрости</h2>
|
||||
|
||||
<p>Вы можете использовать различные цвета в полях. Просто вставьте нужный текст в html код. Смотри <a href="https://github.com/arcan1s/pytextmonitor/issues/9">вопрос</a> для более подробной информации.</p>
|
||||
|
||||
<p>Нумерация элементов в полях "Температура", "Использование HDD", "Скорость HDD", "Температура HDD" ссылается на порядок элементов во второй вкладке (<em>Расширенные настройки</em>). Вы должны сначала добавить требуемые элементы в нужный listWidget. И первый элемент в listWdiget будет связан c <code>$tag0</code>. Смотри <a href="https://github.com/arcan1s/pytextmonitor/issues/17">вопрос</a> для более подробной информации.</p>
|
||||
|
||||
<h2>Расширенные настройки</h2>
|
||||
|
||||
<p><strong>Вертикальная разметка</strong></p>
|
||||
|
||||
<p>Использовать вертикальную разметку вместо горизонтальной.</p>
|
||||
|
||||
<p><strong>Включить всплывающие сообщения</strong></p>
|
||||
|
||||
<p>Нажмите на чекбокс, если вы не используете всплывающие сообщения.</p>
|
||||
|
||||
<p><strong>Добавить пустое пространство</strong></p>
|
||||
|
||||
<p>Добавить пустое пространство в указанное место виджета.</p>
|
||||
|
||||
<p><strong>Свой формат времени</strong></p>
|
||||
|
||||
<ul>
|
||||
<li>тег <code>$dddd</code> - день недели в длинном формате</li>
|
||||
<li>тег <code>$ddd</code> - день недели в коротком формате</li>
|
||||
<li>тег <code>$dd</code> - день</li>
|
||||
<li>тег <code>$d</code> - день без нуля</li>
|
||||
<li>тег <code>$MMMM</code> - месяц в длинном формате</li>
|
||||
<li>тег <code>$MMM</code> - месяц в коротком формате</li>
|
||||
<li>тег <code>$MM</code> - месяц</li>
|
||||
<li>тег <code>$M</code> - месяц без нуля</li>
|
||||
<li>тег <code>$yyyy</code> - год</li>
|
||||
<li>тег <code>$yy</code> - год в коротком формате</li>
|
||||
<li>тег <code>$hh</code> - часы</li>
|
||||
<li>тег <code>$h</code> - часы без нуля</li>
|
||||
<li>тег <code>$mm</code> - минуты</li>
|
||||
<li>тег <code>$m</code> - минуты без нуля</li>
|
||||
<li>тег <code>$ss</code> - секунды</li>
|
||||
<li>тег <code>$s</code> - секунды без нуля</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Свой формат аптайма</strong></p>
|
||||
|
||||
<ul>
|
||||
<li>тег <code>$dd</code> - дни аптайма</li>
|
||||
<li>тег <code>$d</code> - дни аптайма без нуля</li>
|
||||
<li>тег <code>$hh</code> - часы аптайма</li>
|
||||
<li>тег <code>$h</code> - часы аптайма без нуля</li>
|
||||
<li>тег <code>$mm</code> - минуты аптайма</li>
|
||||
<li>тег <code>$m</code> - минуты аптайма без нуля</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Температурные единицы</strong></p>
|
||||
|
||||
<p>Выберите единицы температуры. Доступные единицы следующие: Цельсий, Фаренгейт и Кельвин.</p>
|
||||
|
||||
<p><strong>Датчики температуры</strong></p>
|
||||
|
||||
<p>Список датчиков, которые будут наблюдаться в поле temo (содержимое комбо бокса берется из <code>sensors</code>). Виджет редактируем, клавиша delete удалит текущую строку.</p>
|
||||
|
||||
<p><strong>Точки монтирования</strong></p>
|
||||
|
||||
<p>Список точек монтирования, которые будут наблюдаться в поле hdd (содержимое комбо бокса берется из <code>mount</code>). Виджет редактируем, клавиша delete удалит текущую строку.</p>
|
||||
|
||||
<p><strong>HDD (скорость)</strong></p>
|
||||
|
||||
<p>Список HDD, которые будут наблюдаться в поле hddspeed (содержимое комбо бокса берется из DataEngine). Виджет редактируем, клавиша delete удалит текущую строку.</p>
|
||||
|
||||
<p><strong>HDD (температура)</strong></p>
|
||||
|
||||
<p>Список HDD, которые будут наблюдаться в поле hddtemp (содержимое комбо бокса берется из <code>find</code>). Виджет редактируем, клавиша delete удалит текущую строку.</p>
|
||||
|
||||
<p><strong>Директория с сетевыми интерфейсами</strong></p>
|
||||
|
||||
<p>Путь к директории, которая содержит информацию о сетевых интерфейсах. По умолчанию <code>/sys/class/net</code>. Требуется для определения сетевого устройства.</p>
|
||||
|
||||
<p><strong>Сетевое устройство</strong></p>
|
||||
|
||||
<p>Использовать указанный интерфейс, как активный. Содержимое комбо бокса берется из <strong>директории с сетевыми интерфейсами</strong>. Эта опция отключит автоопределение интерфейса.</p>
|
||||
|
||||
<p><strong>Устройство батареи</strong></p>
|
||||
|
||||
<p>Файл с информацией о батарее. Данный файл (<code>/sys/class/power_supply/BAT0/capacity</code> по умолчанию) должен содержать только заряд батареи в процентах.</p>
|
||||
|
||||
<p><strong>AC online тег</strong></p>
|
||||
|
||||
<p>Строка, которая будет показана, когда AC онлайн.</p>
|
||||
|
||||
<p><strong>AC offline тег</strong></p>
|
||||
|
||||
<p>Строка, которая будет показана, когда AC оффлайн.</p>
|
||||
|
||||
<p><strong>Устройство AC</strong></p>
|
||||
|
||||
<p>Файл с информацией об адаптере питания. Данный файл (<code>/sys/class/power_supply/AC/online</code> по умолчанию) должен содержать <code>1</code>, если адаптер подключен.</p>
|
||||
|
||||
<h2>Настройки тултипа</h2>
|
||||
|
||||
<p>Начиная с версии 1.7.0 поля "CPU", "Частота CPU", "Память", "Swap" и "Сеть" поддерживают графический тултип. Чтобы включить их, просто сделайте требуемые чекбоксы полностью чекнутыми. Число хранимых значений может быть выставленно в данной вкладке. Цвета графиков также настраиваются.</p>
|
||||
|
||||
<h2>Настройки DataEngine</h2>
|
||||
|
||||
<p><strong>Своя команда</strong></p>
|
||||
|
||||
<p><em>ЗАМЕЧАНИЕ</em> Может вызвать зависание компьютера.</p>
|
||||
|
||||
<p>Команды, которые будут запущены для соответствующего поля.</p>
|
||||
|
||||
<p><strong>Устройство GPU</strong></p>
|
||||
|
||||
<p>Выберите одно из поддерживаемых устройств GPU. <code>auto</code> включит автоматическое определение, <code>disable</code> отключит все мониторы GPU. По умолчанию <code>auto</code>.</p>
|
||||
|
||||
<p><strong>HDD</strong></p>
|
||||
|
||||
<p>Выберете один из HDD для монитора его температуры. <code>all</code> включит монитор для всех доступных устройств, <code>disable</code> отключит определение температуры HDD. По умолчанию <code>all</code>.</p>
|
||||
|
||||
<p><strong>Команда hddtemp</strong></p>
|
||||
|
||||
<p>Введите команду, которая будет запущена для hddtemp DataEngine. По умолчанию <code>sudo hddtemp</code>.</p>
|
||||
|
||||
<p><strong>Адрес MPD</strong></p>
|
||||
|
||||
<p>Адрес MPD сервера. По умолчанию <code>localhost</code>.</p>
|
||||
|
||||
<p><strong>Порт MPD</strong></p>
|
||||
|
||||
<p>Порт MPD сервера. По умолчанию <code>6600</code>.</p>
|
||||
|
||||
<p><strong>Package manager</strong></p>
|
||||
|
||||
<p>Список команд, которые будут запущены. Число пустых строк - число ненужных для подсчета строк. Стандартные настройки:</p>
|
||||
|
||||
<ul>
|
||||
<li><em>Arch</em>: <code>PKGCMD=pacman -Qu</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Debian</em>: <code>PKGCMD=apt-show-versions -u -b</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Ubuntu</em>: <code>PKGCMD=aptitude search '~U'</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Fedora</em>: <code>PKGCMD=yum list updates</code>, <code>PKGNULL=3</code></li>
|
||||
<li><em>FreeBSD</em>: <code>PKGCMD=pkg_version -I -l '<'</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Mandriva</em>: <code>PKGCMD=urpmq --auto-select</code>, <code>PKGNULL=0</code></li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Музыкальный плеер</strong></p>
|
||||
|
||||
<p>Выберите один из поддерживаемых музыкальных плееров.</p>
|
||||
|
||||
<h2>Настройка DataEngine</h2>
|
||||
|
||||
<p>Вы можете отредактировать настройки DataEngine вручную. Откройте файл <code>/usr/share/config/extsysmon.conf</code> или <code>$HOME/.kde4/share/config/extsysmon.conf</code>, в зависимости от типа установки. Раскомментируйте требуемые строки и отредактируйте их.</p>
|
||||
|
||||
<h1>Инструкция</h1>
|
||||
|
||||
<h2>Зависимости</h2>
|
||||
|
||||
<ul>
|
||||
<li>kdebase-workspace</li>
|
||||
<li>kdebindings-python2</li>
|
||||
<li>lm_sensors (<em>для определения датчиков температуры</em>)</li>
|
||||
</ul>
|
||||
|
||||
<h2>Опциональные зависимости</h2>
|
||||
|
||||
<ul>
|
||||
<li>sysstat (<em>для уведомлений</em>)</li>
|
||||
<li>проприетарный видеодрайвер</li>
|
||||
<li>hddtemp (убедитесь, что может быть запущен с <code>sudo</code> без пароля. Просто добавьте следующую строку в <code>/etc/sudoers</code>: <code>$USERNAME ALL=NOPASSWD: /usr/bin/hddtemp</code>)</li>
|
||||
<li>музыкальный плеер (amarok, clementine, mpd или qmmp)</li>
|
||||
</ul>
|
||||
|
||||
<h2>Зависимости сборки</h2>
|
||||
|
||||
<ul>
|
||||
<li>automoc4</li>
|
||||
<li>cmake</li>
|
||||
</ul>
|
||||
|
||||
<h2>Установка</h2>
|
||||
|
||||
<ul>
|
||||
<li>скачать исходный архив</li>
|
||||
<li><p>установить</p>
|
||||
|
||||
<pre><code>mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --localprefix` ../
|
||||
make && make install
|
||||
</code></pre>
|
||||
|
||||
<p>Для установки в <code>/</code>:</p>
|
||||
|
||||
<pre><code>mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
||||
make && sudo make install
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
|
||||
<h1>Дополнительная информация</h1>
|
||||
|
||||
<h2>TODO (wish list)</h2>
|
||||
|
||||
<h2>Ссылки</h2>
|
||||
|
||||
<ul>
|
||||
<li><a href="http://arcanis.name/projects/pytextmonitor/">Домашняя страница</a></li>
|
||||
<li>Виджет на <a href="http://kde-look.org/content/show.php/Py+Text+Monitor?content=157124">kde-look</a></li>
|
||||
<li>DataEngine на <a href="http://kde-look.org/content/show.php/Extended+Systemmonitor+DataEngine?content=158773">kde-look</a></li>
|
||||
<li>Пакет для Archlinux в <a href="https://aur.archlinux.org/packages/kdeplasma-applets-pytextmonitor/">AUR</a></li>
|
||||
</ul>
|
271
sources/readme/uk.html
Normal file
@ -0,0 +1,271 @@
|
||||
<meta charset="utf-8">
|
||||
<h1>pytextmonitor</h1>
|
||||
|
||||
<h2>Інформація</h2>
|
||||
|
||||
<p>PyTextMonitor - мінімалістичний плазмоїд, що написаний на Python2. Він виглядає як віджети в Awesome WM.</p>
|
||||
|
||||
<p><strong>УВАГА</strong> <a href="https://github.com/arcan1s/pytextmonitor/issues/14">ПОТРІБНІ ПЕРЕКЛАДАЧІ!</a></p>
|
||||
|
||||
<h2>Налаштування</h2>
|
||||
|
||||
<p>Для редагування зовнішного вигляду, відкрийте вікно налаштувань та встановіть потрібний формат в поля:</p>
|
||||
|
||||
<ul>
|
||||
<li>тег <code>$time</code> - час у стандартному форматі. Наприклад, <em>fri Nov 6 04:48:01 2013</em></li>
|
||||
<li>тег <code>$isotime</code> - час в ISO форматі</li>
|
||||
<li>тег <code>$shorttime</code> - час в короткому форматі</li>
|
||||
<li>тег <code>$longtime</code> - час у довгому форматі</li>
|
||||
<li>тег <code>$custom</code> - свій формат часу</li>
|
||||
<li>тег <code>$uptime</code> - час роботи, <em>---d--h--m</em></li>
|
||||
<li>тег <code>$custom</code> - свій формат аптайму</li>
|
||||
<li>тег <code>$cpu</code> - загальне завантаження CPU, <em>%</em></li>
|
||||
<li>тег <code>$cpuN</code> - завантаження CPU для ядра N, <em>%</em></li>
|
||||
<li>тег <code>$cpucl</code> - середня частота CPU, <em>MHz</em></li>
|
||||
<li>тег <code>$cpuclN</code> - частота CPU для ядра N, <em>MHz</em></li>
|
||||
<li>тег <code>$tempN</code> - температура для пристрою N. Наприклад, <code>$temp0</code></li>
|
||||
<li>тег <code>$gpu</code> - використання GPU, <em>%</em>. <code>aticonfig</code> або <code>nvidia-smi</code> мають бути встановлені</li>
|
||||
<li>тег <code>$gputemp</code> - температура GPU. <code>aticonfig</code> або <code>nvidia-smi</code> мають бути встановлені</li>
|
||||
<li>тег <code>$mem</code> - використання RAM, <em>%</em></li>
|
||||
<li>тег <code>$memmb</code> - використання RAM, <em>MB</em></li>
|
||||
<li>тег <code>$memgb</code> - використання RAM, <em>GB</em></li>
|
||||
<li>тег <code>$swap</code> - swap, <em>%</em></li>
|
||||
<li>тег <code>$swapmb</code> - swap, <em>MB</em></li>
|
||||
<li>тег <code>$swapgb</code> - swap, <em>GB</em></li>
|
||||
<li>тег <code>$swaptotmb</code> - розмір swap, <em>MB</em></li>
|
||||
<li>тег <code>$swaptotgb</code> - розмір swap, <em>GB</em></li>
|
||||
<li>тег <code>$hddN</code> - використання точки монтування N, <em>%</em>. Наприклад, <code>$hdd0</code></li>
|
||||
<li>тег <code>$hddmbN</code> - використання точки монтування N, <em>MB</em>. Наприклад, <code>$hddmb0</code></li>
|
||||
<li>тег <code>$hddgbN</code> - використання точки монтування N, <em>GB</em>. Наприклад, <code>$hddgb0</code></li>
|
||||
<li>тег <code>$hddtotmbN</code> - розмір точки монтування N, <em>MB</em>. Наприклад, <code>$hddtotmb0</code></li>
|
||||
<li>тег <code>$hddtotgbN</code> - розмір точки монтування N, <em>GB</em>. Наприклад, <code>$hddtotgb0</code></li>
|
||||
<li>тег <code>$hddrN</code> - швидкість запису на диск N, <em>KB/s</em>. Наприклад, <code>$hddr0</code></li>
|
||||
<li>тег <code>$hddwN</code> - швидкість читання з диска N, <em>KB/s</em>. Наприклад, <code>$hddw0</code></li>
|
||||
<li>тег <code>$hddtempN</code> - температура HDD N. Наприклад, <code>$hddtemp0</code></li>
|
||||
<li>тег <code>$down</code> - швидкість завантаження, <em>KB/s</em></li>
|
||||
<li>тег <code>$up</code> - швидкість віддачі, <em>KB/s</em></li>
|
||||
<li>тег <code>$netdev</code> - поточний мережний інтерфейс</li>
|
||||
<li>тег <code>$bat</code> - заряд батареї, <em>%</em></li>
|
||||
<li>тег <code>$ac</code> - статус адаптера живлення. Повертає <code>(*)</code>, якщо AC підключений або <code>( )</code>, якщо ні</li>
|
||||
<li>тег <code>$album</code> - альбом. Один з підтримуваних плеєрів повинен бути встановлений</li>
|
||||
<li>тег <code>$artist</code> - виконавець. Один з підтримуваних плеєрів повинен бути встановлений</li>
|
||||
<li>тег <code>$progress</code> - прогрес. Один з підтримуваних плеєрів повинен бути встановлений</li>
|
||||
<li>тег <code>$time</code> - тривалість. Один з підтримуваних плеєрів повинен бути встановлений</li>
|
||||
<li>тег <code>$title</code> - назва. Один з підтримуваних плеєрів повинен бути встановлений</li>
|
||||
<li>тег <code>$pscount</code> - кількість запущених процесів</li>
|
||||
<li>тег <code>$pstotal</code> - загальна кількість процесів</li>
|
||||
<li>тег <code>$ps</code> - перелік процесів</li>
|
||||
<li>тег <code>$pkgcountN</code> - кількість пакетів, що можуть бути оновлені, для команди N. Наприклад, <code>$pkgcount0</code></li>
|
||||
<li>тег <code>$customN</code> - повертає результат своєї команди N. Наприклад, <code>$custom0</code></li>
|
||||
</ul>
|
||||
|
||||
<p>Порядок полів зміниться, якщо ви зміните позицію слайдерів. HTML теги в полях працюють коректно.</p>
|
||||
|
||||
<p><strong>ЗАУВАЖЕННЯ</strong> ви не зможете встановити тег <code>$cpu</code>, наприклад, в полі swap. <strong><code>$cpu</code> буде працювати тільки в полі CPU</strong>.</p>
|
||||
|
||||
<h2>Поради та хитрощі</h2>
|
||||
|
||||
<p>Ви можете використовувати різні кольори в полях. Просто встановіть потрібний текст в html код. Дивись <a href="https://github.com/arcan1s/pytextmonitor/issues/9">питання</a> для більш детальної інформації.</p>
|
||||
|
||||
<p>Нумерація элементів в полях температура, використання HDD, швидкість HDD, температура HDD посилається на порядок елементів у другій вкладці (<em>Розширені налаштування</em>). Ви повинні спочатку додати потрібні елементи в потрібний listWidget. Тоді перший елемент в listWdiget буде пов’язаний з <code>$tag0</code>. Дивись <a href="https://github.com/arcan1s/pytextmonitor/issues/17">питання</a> для більш детальної інформації.</p>
|
||||
|
||||
<h2>Розширені налаштування</h2>
|
||||
|
||||
<p><strong>Вертикальна розмітка</strong></p>
|
||||
|
||||
<p>Використовувати вертикальну розмітку замість горизонтальної.</p>
|
||||
|
||||
<p><strong>Включити спливаючі повідомлення</strong></p>
|
||||
|
||||
<p>Натисніть на чекбокс, якщо ви не користуєтесь спливаючими повідомленнями.</p>
|
||||
|
||||
<p><strong>Додати порожній простір</strong></p>
|
||||
|
||||
<p>Додати порожній простір у вказане місце віджета.</p>
|
||||
|
||||
<p><strong>Свій формат часу</strong></p>
|
||||
|
||||
<ul>
|
||||
<li>тег <code>$dddd</code> - день тижня у довгому форматі</li>
|
||||
<li>тег <code>$ddd</code> - день тижня в короткому форматі</li>
|
||||
<li>тег <code>$dd</code> - день</li>
|
||||
<li>тег <code>$d</code> - день без нуля</li>
|
||||
<li>тег <code>$MMMM</code> - місяць у довгому форматі</li>
|
||||
<li>тег <code>$MMM</code> - місяць в короткому форматі</li>
|
||||
<li>тег <code>$MM</code> - місяць</li>
|
||||
<li>тег <code>$M</code> - місяця без нуля</li>
|
||||
<li>тег <code>$yyyy</code> - рік</li>
|
||||
<li>тег <code>$yy</code> - рік в короткому форматіе</li>
|
||||
<li>тег <code>$hh</code> - години</li>
|
||||
<li>тег <code>$h</code> - години без нуля</li>
|
||||
<li>тег <code>$mm</code> - хвилини</li>
|
||||
<li>тег <code>$m</code> - хвилини без нуля</li>
|
||||
<li>тег <code>$ss</code> - секунди</li>
|
||||
<li>тег <code>$s</code> - секунди без нуля</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Свій формат аптайму</strong></p>
|
||||
|
||||
<ul>
|
||||
<li>тег <code>$dd</code> - дні аптайму</li>
|
||||
<li>тег <code>$d</code> - дні аптайму без нуля</li>
|
||||
<li>тег <code>$hh</code> - години аптайму</li>
|
||||
<li>тег <code>$h</code> - години аптайму без нуля</li>
|
||||
<li>тег <code>$mm</code> - хвилини аптайму</li>
|
||||
<li>тег <code>$m</code> - хвилини аптайму без нуля</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Одиниці виміру температури</strong></p>
|
||||
|
||||
<p>Оберіть одиниці виміру температур. Доступні такі одиниці: Цельсій, Фаренгейт та Кельвін.</p>
|
||||
|
||||
<p><strong>Датчики температури</strong></p>
|
||||
|
||||
<p>Перелік датчиків, що будуть спостерігатись в полі temo (вміст комбо боксу береться із <code>sensors</code>). Віджет можна редагувати, клавіша delete видаляє поточний рядок.</p>
|
||||
|
||||
<p><strong>Точки монтування</strong></p>
|
||||
|
||||
<p>Перелік точок монтування, які будуть спостерігатися в полі hdd (вміст комбо боксу береться із <code>mount</code>). Віджет можна редагувати, клавіша delete видаляє поточний рядок.</p>
|
||||
|
||||
<p><strong>HDD (швидкість)</strong></p>
|
||||
|
||||
<p>Перелік HDD, які будуть спостерігатися в полі hddspeed (вміст комбо боксу береться із DataEngine). Віджет можна редагувати, клавіша delete видаляє поточний рядок.</p>
|
||||
|
||||
<p><strong>HDD (температура)</strong></p>
|
||||
|
||||
<p>Перелік HDD, які будуть спостерігатися в полі hddtemp (вміст комбо боксу береться iз <code>find</code>). Віджет можна редагувати, клавіша delete видаляє поточний рядок.</p>
|
||||
|
||||
<p><strong>Директорія з мережевими інтерфейсами</strong></p>
|
||||
|
||||
<p>Шлях до директорії, яка містить інформацію про мережеві інтерфейси. За замовчуванням <code>/sys/class/net</code>. Потрібно для визначення мережевого пристрою.</p>
|
||||
|
||||
<p><strong>Мережевий пристрій</strong></p>
|
||||
|
||||
<p>Використовувати вказаний інтерфейс, як активний. Вміст комбо боксу береться із <strong>директорії з мережевими інтерфейсами</strong>. Ця опція вимкне автовизначення інтерфейсу.</p>
|
||||
|
||||
<p><strong>Пристрій батареї</strong></p>
|
||||
|
||||
<p>Файл з інформацією про батарею. Даний файл (<code>/sys/class/power_supply/BAT0/capacity</code> за замовчуванням) повинен містити тільки заряд батареї в процентах.</p>
|
||||
|
||||
<p><strong>AC online тег</strong></p>
|
||||
|
||||
<p>Рядок, що буде показаний, коли AC онлайн.</p>
|
||||
|
||||
<p><strong>AC offline тег</strong></p>
|
||||
|
||||
<p>Рядок, що буде показаний, коли AC оффлайн.</p>
|
||||
|
||||
<p><strong>Пристрій AC</strong></p>
|
||||
|
||||
<p>Файл з інформациею про адаптер живлення. Даний файл (<code>/sys/class/power_supply/AC/online</code> за замовчуванням) повинен містити <code>1</code>, якщо адаптер підключений.</p>
|
||||
|
||||
<h2>Налаштування тултіпу</h2>
|
||||
|
||||
<p>Починаючи з версії 1.7.0 поля CPU, частота CPU, пам’ять, swap та мережа підтримують графічний тултіп. Щоб їх ввімкнути, просто зробіть необхідні чекбокси повністю чекнутими. Кількість зберігаємих значень може бути виставлена в даній вкладці. Кольори графіків також налаштовуються.</p>
|
||||
|
||||
<h2>Налаштування DataEngine</h2>
|
||||
|
||||
<p><strong>Своя команда</strong></p>
|
||||
|
||||
<p><em>ЗАУВАЖЕННЯ</em> Може призвести до зависання комп’ютера.</p>
|
||||
|
||||
<p>Команда, що буде запущена для відповідного поля.</p>
|
||||
|
||||
<p><strong>Пристрій GPU</strong></p>
|
||||
|
||||
<p>Оберіть один з підтримуваних пристроїв GPU. <code>auto</code> ввімкне автоматичне визначення. За замовчуванням <code>auto</code>.</p>
|
||||
|
||||
<p><strong>HDD</strong></p>
|
||||
|
||||
<p>Оберіть один з HDD для контролю його температури. <code>all</code> ввімкне контроль для всих доступних пристроїв. За замовчуванням <code>all</code>.</p>
|
||||
|
||||
<p><strong>Команда hddtemp</strong></p>
|
||||
|
||||
<p>Оберіть команду, яка буде запущена для hddtemp DataEngine. За замовчуванням <code>sudo hddtemp</code>.</p>
|
||||
|
||||
<p><strong>Адреса MPD</strong></p>
|
||||
|
||||
<p>Адреса MPD серверу. За замовчуванням <code>localhost</code>.</p>
|
||||
|
||||
<p><strong>Порт MPD</strong></p>
|
||||
|
||||
<p>Порт MPD серверу. За замовчуванням <code>6600</code>.</p>
|
||||
|
||||
<p><strong>Package manager</strong></p>
|
||||
|
||||
<p>Перелік команд, які будуть запущені. Кількість пустих рядків - кількість непотрібних для підрахунку рядків. Стандартні налаштування:</p>
|
||||
|
||||
<ul>
|
||||
<li><em>Arch</em>: <code>PKGCMD=pacman -Qu</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Debian</em>: <code>PKGCMD=apt-show-versions -u -b</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Ubuntu</em>: <code>PKGCMD=aptitude search '~U'</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Fedora</em>: <code>PKGCMD=yum list updates</code>, <code>PKGNULL=3</code></li>
|
||||
<li><em>FreeBSD</em>: <code>PKGCMD=pkg_version -I -l '<'</code>, <code>PKGNULL=0</code></li>
|
||||
<li><em>Mandriva</em>: <code>PKGCMD=urpmq --auto-select</code>, <code>PKGNULL=0</code></li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Музичний плеєр</strong></p>
|
||||
|
||||
<p>Виберіть один з підтримуваних музичних плеєрів.</p>
|
||||
|
||||
<h2>Налаштування DataEngine</h2>
|
||||
|
||||
<p>Ви можете відредагувати налаштування DataEngine вручну. Відкрийте файл <code>/usr/share/config/extsysmon.conf</code> або <code>$HOME/.kde4/share/config/extsysmon.conf</code>, в залежності від типу установки. Розкоментуйте потрібні рядки та відредагуйте їх.</p>
|
||||
|
||||
<h1>Інструкція</h1>
|
||||
|
||||
<h2>Залежності</h2>
|
||||
|
||||
<ul>
|
||||
<li>kdebase-workspace</li>
|
||||
<li>kdebindings-python2</li>
|
||||
<li>lm_sensors (<em>для визначення датчиків температури</em>)</li>
|
||||
</ul>
|
||||
|
||||
<h2>Опціональні залежності</h2>
|
||||
|
||||
<ul>
|
||||
<li>sysstat (<em>для сповіщень</em>)</li>
|
||||
<li>проприєтарний відеодрайвер</li>
|
||||
<li>hddtemp (переконайтесь, що може бути запущений з <code>sudo</code> без пароля. Просто добавте наступний рядок в <code>/etc/sudoers</code>: <code>$USERNAME ALL=NOPASSWD: /usr/bin/hddtemp</code>)</li>
|
||||
<li>музичний плеєр (amarok, clementine, mpd или qmmp)</li>
|
||||
</ul>
|
||||
|
||||
<h2>Залежності збирання</h2>
|
||||
|
||||
<ul>
|
||||
<li>automoc4</li>
|
||||
<li>cmake</li>
|
||||
</ul>
|
||||
|
||||
<h2>Установка</h2>
|
||||
|
||||
<ul>
|
||||
<li>скачати вихідний архів</li>
|
||||
<li><p>встановити</p>
|
||||
|
||||
<pre><code>mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --localprefix` ../
|
||||
make && make install
|
||||
</code></pre>
|
||||
|
||||
<p>Для установки в <code>/</code>:</p>
|
||||
|
||||
<pre><code>mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
||||
make && sudo make install
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
|
||||
<h1>Додаткова інформація</h1>
|
||||
|
||||
<h2>TODO (wish list)</h2>
|
||||
|
||||
<h2>Посилання</h2>
|
||||
|
||||
<ul>
|
||||
<li><a href="http://arcanis.name/projects/pytextmonitor/">Домашня сторінка</a></li>
|
||||
<li>Віджет на <a href="http://kde-look.org/content/show.php/Py+Text+Monitor?content=157124">kde-look</a></li>
|
||||
<li>DataEngine на <a href="http://kde-look.org/content/show.php/Extended+Systemmonitor+DataEngine?content=158773">kde-look</a></li>
|
||||
<li>Пакет для Archlinux в <a href="https://aur.archlinux.org/packages/kdeplasma-applets-pytextmonitor/">AUR</a></li>
|
||||
</ul>
|
15
update_files.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# create diff
|
||||
diff -ruN README.md.orig README.md > readme_diff.patch
|
||||
|
||||
# update english readme
|
||||
cp README.md md_readme/en.md
|
||||
|
||||
# create html pages
|
||||
for MARKDOWN in $(find md_readme -name '*.md'); do
|
||||
FILENAME=$(basename -- "${MARKDOWN}")
|
||||
FILENAME="${FILENAME%.*}"
|
||||
echo '<meta charset="utf-8">' > "sources/readme/${FILENAME}.html"
|
||||
markdown "${MARKDOWN}" >> "sources/readme/${FILENAME}.html"
|
||||
done
|