mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-06-30 15:35:58 +00:00
Compare commits
132 Commits
Author | SHA1 | Date | |
---|---|---|---|
334189b8a1 | |||
6c7d6a5443 | |||
e37f2a7190 | |||
baf21549d5 | |||
07c2abd5bc | |||
2ea73b2261 | |||
7c3b47693e | |||
0fe67ce323 | |||
bfb7d72faf | |||
662b952961 | |||
a81cbe3d9c | |||
0462bb186e | |||
9985fe6260 | |||
11a6f01ae3 | |||
43ee40a65d | |||
f9eb27964f | |||
bab9f58b35 | |||
608908fd02 | |||
178bbd0bc0 | |||
f8a02a48ac | |||
cf39fba9c2 | |||
6643852822 | |||
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 |
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,4 +1,7 @@
|
||||
sources/build
|
||||
sources/usr
|
||||
*src.tar.xz
|
||||
*src.tar.gz
|
||||
*src.tar.[gx]z
|
||||
*pkg.tar.[gx]z
|
||||
build
|
||||
src
|
||||
pkg
|
||||
|
5
AUTHORS
5
AUTHORS
@ -2,4 +2,7 @@ Current developers:
|
||||
Evgeniy Alekseev aka arcanis <esalexeev (at) gmail (dot) com>
|
||||
|
||||
Translators:
|
||||
@Mermouy (french translations)
|
||||
@Mermouy (French translation)
|
||||
Ernesto Avilés Vzqz (Spanish translation)
|
||||
@underr (Brazillian Portuguese translation)
|
||||
Виктор Слободян (Ukrainian translation)
|
||||
|
53
CHANGELOG
53
CHANGELOG
@ -1,3 +1,56 @@
|
||||
Ver.1.11.0:
|
||||
+ added ability to disable background image
|
||||
+ added desktop DataEngine
|
||||
+ added PTM desktop panel
|
||||
+ added desktop label (tags $name, $number, $total)
|
||||
|
||||
Ver.1.10.2:
|
||||
- fix error with tempUnits in hddtemp label
|
||||
|
||||
Ver.1.10.1:
|
||||
- fix error with number formats in ps label
|
||||
- fix first initialization of DataEngine
|
||||
- fix checking of qmmp
|
||||
|
||||
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
|
||||
|
53
CHANGELOG-RU
53
CHANGELOG-RU
@ -1,3 +1,56 @@
|
||||
Вер.1.11.0:
|
||||
+ добавлена возможность отключения фона
|
||||
+ добавлен desktop DataEngine
|
||||
+ добавлен виджет PTM desktop panel
|
||||
+ добавлено поле текущий рабочий стол (теги $name, $number, $total)
|
||||
|
||||
Вер.1.10.2:
|
||||
- фикс ошибки с tempUnits в поле hddtemp
|
||||
|
||||
Вер.1.10.1:
|
||||
- пофикшена ошибка с форматами чисел в поле ps
|
||||
- пофикшена инициализация значений в DataEngine
|
||||
- пофикшена проверка qmmp
|
||||
|
||||
Вер.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
|
||||
|
9
PKGBUILD
9
PKGBUILD
@ -2,14 +2,15 @@
|
||||
|
||||
pkgname=kdeplasma-applets-pytextmonitor
|
||||
_pkgname=pytextmonitor
|
||||
pkgver=1.8.0
|
||||
pkgver=1.11.0
|
||||
pkgrel=1
|
||||
pkgdesc="Minimalistic Plasmoid script written on Python2. It looks like widgets in Awesome WM"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://arcanis.name/projects/pytextmonitor"
|
||||
license=('GPLv3')
|
||||
license=('GPL3')
|
||||
depends=('kdebase-workspace' 'kdebindings-python2' 'lm_sensors')
|
||||
optdepends=("amarok: for music player monitor"
|
||||
"clementine: for music player monitor"
|
||||
"catalyst: for GPU monitor"
|
||||
"hddtemp: for HDD temperature monitor"
|
||||
"mpd: for music player monitor"
|
||||
@ -20,11 +21,11 @@ optdepends=("amarok: for music player monitor"
|
||||
makedepends=('automoc4' 'cmake')
|
||||
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
|
||||
install=${pkgname}.install
|
||||
md5sums=('9052985dc219e75ffbed88ce3ebf5a32')
|
||||
md5sums=('fac8af7e6b85925510b30917751696fa')
|
||||
backup=('usr/share/config/extsysmon.conf')
|
||||
|
||||
prepare() {
|
||||
[[ -d ${srcdir}/build ]] && rm -rf "${srcdir}/build"
|
||||
rm -rf "${srcdir}/build"
|
||||
mkdir "${srcdir}/build"
|
||||
}
|
||||
|
||||
|
127
README.md
127
README.md
@ -3,13 +3,16 @@ pytextmonitor
|
||||
|
||||
Information
|
||||
-----------
|
||||
|
||||
PyTextMonitor is a minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm.
|
||||
|
||||
**NOTE** LOOKING FOR TRANSLATORS!
|
||||
**NOTE** [LOOKING FOR TRANSLATORS!](https://github.com/arcan1s/pytextmonitor/issues/14)
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
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
|
||||
@ -27,10 +30,20 @@ For edited output you must open Settings window and setup output format in lines
|
||||
* 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*
|
||||
@ -46,14 +59,41 @@ For edited output you must open Settings window and setup output format in lines
|
||||
* 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 `$custom` - returns output for custom command
|
||||
* tag `$customN` - returns output for custom command N. For example, `$custom0`
|
||||
* tag `$name` - name of the current desktop
|
||||
* tag `$number` - number of the current desktop
|
||||
* tag `$total` - total number of desktops
|
||||
|
||||
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
|
||||
-----------------
|
||||
|
||||
**Enable background**
|
||||
|
||||
Uncheck to disable default background and set transparent one.
|
||||
|
||||
**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
|
||||
@ -82,6 +122,10 @@ Advanced settings
|
||||
* 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.
|
||||
@ -90,9 +134,13 @@ List of devices, which will be observed in temp label (combo box items come from
|
||||
|
||||
List of mount points, which will be observed in hdd label (combo box items come from `mount`). List widget is editable, delete key will remove current item.
|
||||
|
||||
**HDD**
|
||||
**HDD (speed)**
|
||||
|
||||
List of hard disk devices, which will be observed in hddtem label (combo box items come from `find`). List widget is editable, delete key will remove current item.
|
||||
List of hard disk devices, which will be observed in hddspeed label (combo box items come from DataEngine). List widget is editable, delete key will remove current item.
|
||||
|
||||
**HDD (temperature)**
|
||||
|
||||
List of hard disk devices, which will be observed in hddtemp label (combo box items come from `find`). List widget is editable, delete key will remove current item.
|
||||
|
||||
**Network directory**
|
||||
|
||||
@ -118,29 +166,35 @@ Line which will be shown when AC is offline.
|
||||
|
||||
File with AC information. File (`/sys/class/power_supply/AC/online` by default) must contain `1` if AC is online.
|
||||
|
||||
**Music player**
|
||||
|
||||
Select one of supported music playes for player label.
|
||||
|
||||
Tooltip settings
|
||||
----------------
|
||||
|
||||
Since version 1.7.0 CPU, CPU clock, memory, swap and network labels support graphical tooltip. To enable them just make the needed checkboxes a fully checked. The number of stored values can be set in the tab. Colors of graphs are configurable too.
|
||||
|
||||
DataEngine settings
|
||||
-------------------
|
||||
|
||||
**Custom command**
|
||||
|
||||
*NOTE* This can cause the computer freeze.
|
||||
|
||||
A command, which will be run for custom label.
|
||||
Commands, which will be run for custom label.
|
||||
|
||||
**Desktop cmd**
|
||||
|
||||
Type a command which will be run for desktop DataEngine. Default is `qdbus org.kde.kwin /KWin currentDesktop`.
|
||||
|
||||
**GPU device**
|
||||
|
||||
Select one of supported GPU devices. `auto` will enable auto selection. Default is `auto`.
|
||||
Select one of supported GPU devices. `auto` will enable auto selection, `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. Default is `all`.
|
||||
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**
|
||||
|
||||
@ -153,6 +207,7 @@ 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`
|
||||
@ -160,35 +215,72 @@ List of commands, which will be run. Number of null lines is a number of unneede
|
||||
* *FreeBSD*: `PKGCMD=pkg_version -I -l '<'`, `PKGNULL=0`
|
||||
* *Mandriva*: `PKGCMD=urpmq --auto-select`, `PKGNULL=0`
|
||||
|
||||
**Music player**
|
||||
|
||||
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.
|
||||
Select one of supported music playes for player label.
|
||||
|
||||
PTM desktop panel
|
||||
=================
|
||||
|
||||
Since version 1.11.0 PyTextMonitor provides a minimalistic panel for monitoring on desktops written on `C++`. And yes, it looks like the same panel in Awesome.
|
||||
|
||||
Desktop panel configuration
|
||||
---------------------------
|
||||
|
||||
**Enable background**
|
||||
|
||||
Uncheck to disable default background and set transparent one.
|
||||
|
||||
**Vertical layout**
|
||||
|
||||
Use vertical layout instead of horizontal one.
|
||||
|
||||
**Add stretch**
|
||||
|
||||
Add stretch (spacer) to the selected side of the widget.
|
||||
|
||||
**Mark**
|
||||
|
||||
Type symbol (or string) which will be shown if this desktop is active now.
|
||||
|
||||
**Pattern tags**
|
||||
|
||||
* tag `$mark` - show mark if this desktop is active
|
||||
* tag `$name` - name of the current desktop
|
||||
* tag `$number` - number of the current desktop
|
||||
* tag `$total` - total number of desktops
|
||||
|
||||
**Command**
|
||||
|
||||
Type command which will be run on left click on the selected desktop. Available variables are same as for pattern. Default is `dbus org.kde.kwin /KWin setCurrentDesktop $number`.
|
||||
|
||||
Instruction
|
||||
===========
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* kdebase-workspace
|
||||
* kdebindings-python2
|
||||
* lm_sensors (*for definition temperature device*)
|
||||
* sysstat (*for notification*)
|
||||
|
||||
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, mpd or qmmp)
|
||||
* music player (amarok, clementine, mpd or qmmp)
|
||||
|
||||
Make dependencies
|
||||
-----------------
|
||||
|
||||
* automoc4
|
||||
* cmake
|
||||
* kdebase-runtime
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
* download sources
|
||||
* install
|
||||
|
||||
@ -210,6 +302,7 @@ 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)
|
||||
|
@ -3,13 +3,16 @@ pytextmonitor
|
||||
|
||||
Information
|
||||
-----------
|
||||
|
||||
PyTextMonitor is a minimalistic Plasmoid script written on Python2. It looks like widgets in awesome-wm.
|
||||
|
||||
**NOTE** LOOKING FOR TRANSLATORS!
|
||||
**NOTE** [LOOKING FOR TRANSLATORS!](https://github.com/arcan1s/pytextmonitor/issues/14)
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
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
|
||||
@ -27,10 +30,20 @@ For edited output you must open Settings window and setup output format in lines
|
||||
* 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*
|
||||
@ -46,14 +59,34 @@ For edited output you must open Settings window and setup output format in lines
|
||||
* 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 `$custom` - returns output for custom command
|
||||
* 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
|
||||
@ -82,6 +115,10 @@ Advanced settings
|
||||
* 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.
|
||||
@ -90,9 +127,13 @@ List of devices, which will be observed in temp label (combo box items come from
|
||||
|
||||
List of mount points, which will be observed in hdd label (combo box items come from `mount`). List widget is editable, delete key will remove current item.
|
||||
|
||||
**HDD**
|
||||
**HDD (speed)**
|
||||
|
||||
List of hard disk devices, which will be observed in hddtem label (combo box items come from `find`). List widget is editable, delete key will remove current item.
|
||||
List of hard disk devices, which will be observed in hddspeed label (combo box items come from DataEngine). List widget is editable, delete key will remove current item.
|
||||
|
||||
**HDD (temperature)**
|
||||
|
||||
List of hard disk devices, which will be observed in hddtemp label (combo box items come from `find`). List widget is editable, delete key will remove current item.
|
||||
|
||||
**Network directory**
|
||||
|
||||
@ -118,29 +159,31 @@ Line which will be shown when AC is offline.
|
||||
|
||||
File with AC information. File (`/sys/class/power_supply/AC/online` by default) must contain `1` if AC is online.
|
||||
|
||||
**Music player**
|
||||
|
||||
Select one of supported music playes for player label.
|
||||
|
||||
Tooltip settings
|
||||
----------------
|
||||
|
||||
Since version 1.7.0 CPU, CPU clock, memory, swap and network labels support graphical tooltip. To enable them just make the needed checkboxes a fully checked. The number of stored values can be set in the tab. Colors of graphs are configurable too.
|
||||
|
||||
DataEngine settings
|
||||
-------------------
|
||||
|
||||
**Custom command**
|
||||
|
||||
*NOTE* This can cause the computer freeze.
|
||||
|
||||
A command, which will be run for custom label.
|
||||
Commands, which will be run for custom label.
|
||||
|
||||
**GPU device**
|
||||
|
||||
Select one of supported GPU devices. `auto` will enable auto selection. Default is `auto`.
|
||||
Select one of supported GPU devices. `auto` will enable auto selection, `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. Default is `all`.
|
||||
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**
|
||||
|
||||
@ -153,6 +196,7 @@ 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`
|
||||
@ -160,9 +204,13 @@ List of commands, which will be run. Number of null lines is a number of unneede
|
||||
* *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
|
||||
@ -170,25 +218,28 @@ Instruction
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
* kdebase-workspace
|
||||
* kdebindings-python2
|
||||
* lm_sensors (*for definition temperature device*)
|
||||
* sysstat (*for notification*)
|
||||
|
||||
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, mpd or qmmp)
|
||||
* music player (amarok, clementine, mpd or qmmp)
|
||||
|
||||
Make dependencies
|
||||
-----------------
|
||||
|
||||
* automoc4
|
||||
* cmake
|
||||
* kdebase-runtime
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
* download sources
|
||||
* install
|
||||
|
||||
@ -210,6 +261,7 @@ 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)
|
@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# update english readme
|
||||
cp README.md readme/en.md
|
||||
./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"
|
||||
@ -19,7 +19,7 @@ rm -rf "${ARCHIVE}"
|
||||
|
||||
# build widget
|
||||
ARCHIVE="pytextmonitor"
|
||||
FILES="AUTHORS CHANGELOG CHANGELOG-RU COPYING readme"
|
||||
FILES="AUTHORS CHANGELOG CHANGELOG-RU COPYING"
|
||||
IGNORELIST="build usr"
|
||||
# create archive
|
||||
[[ -e ${ARCHIVE}-${VERSION}-src.tar.xz ]] && rm -f "${ARCHIVE}-${VERSION}-src.tar.xz"
|
||||
|
@ -7,16 +7,10 @@ EOF
|
||||
|
||||
post_install() {
|
||||
func_update
|
||||
cat << EOF
|
||||
Make sure that \`hddtemp\` can be run with sudo without password
|
||||
EOF
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
func_update
|
||||
cat << EOF
|
||||
Make sure that \`hddtemp\` can be run with sudo without password
|
||||
EOF
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
|
309
md_readme/en.md
Normal file
309
md_readme/en.md
Normal file
@ -0,0 +1,309 @@
|
||||
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`
|
||||
* tag `$name` - name of the current desktop
|
||||
* tag `$number` - number of the current desktop
|
||||
* tag `$total` - total number of desktops
|
||||
|
||||
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
|
||||
-----------------
|
||||
|
||||
**Enable background**
|
||||
|
||||
Uncheck to disable default background and set transparent one.
|
||||
|
||||
**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.
|
||||
|
||||
**Desktop cmd**
|
||||
|
||||
Type a command which will be run for desktop DataEngine. Default is `qdbus org.kde.kwin /KWin currentDesktop`.
|
||||
|
||||
**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.
|
||||
|
||||
PTM desktop panel
|
||||
=================
|
||||
|
||||
Since version 1.11.0 PyTextMonitor provides a minimalistic panel for monitoring on desktops written on `C++`. And yes, it looks like the same panel in Awesome.
|
||||
|
||||
Desktop panel configuration
|
||||
---------------------------
|
||||
|
||||
**Enable background**
|
||||
|
||||
Uncheck to disable default background and set transparent one.
|
||||
|
||||
**Vertical layout**
|
||||
|
||||
Use vertical layout instead of horizontal one.
|
||||
|
||||
**Add stretch**
|
||||
|
||||
Add stretch (spacer) to the selected side of the widget.
|
||||
|
||||
**Mark**
|
||||
|
||||
Type symbol (or string) which will be shown if this desktop is active now.
|
||||
|
||||
**Pattern tags**
|
||||
|
||||
* tag `$mark` - show mark if this desktop is active
|
||||
* tag `$name` - name of the current desktop
|
||||
* tag `$number` - number of the current desktop
|
||||
* tag `$total` - total number of desktops
|
||||
|
||||
**Command**
|
||||
|
||||
Type command which will be run on left click on the selected desktop. Available variables are same as for pattern. Default is `dbus org.kde.kwin /KWin setCurrentDesktop $number`.
|
||||
|
||||
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
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
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/)
|
@ -3,11 +3,16 @@ pytextmonitor
|
||||
|
||||
Информация
|
||||
----------
|
||||
PyTextMonitor - минималистичный плазмоид, написанный на Python2. Он выглядит, как виджеты в Awesome WM.
|
||||
|
||||
PyTextMonitor - минималистичный плазмоид, написанный на Python2. Он выглядит как виджеты в Awesome WM.
|
||||
|
||||
**ВНИМАНИЕ** [НУЖНЫ ПЕРЕВОДЧИКИ!](https://github.com/arcan1s/pytextmonitor/issues/14)
|
||||
|
||||
Настройка
|
||||
---------
|
||||
Для редактирования внешнего виде, откройте окно настроек и установите требуемый формат в поля:
|
||||
|
||||
Для редактирования внешнего вида, откройте окно настроек и установите требуемый формат в поля:
|
||||
|
||||
* тег `$time` - время в стандартном формате. Например, *fri Nov 6 04:48:01 2013*
|
||||
* тег `$isotime` - время в ISO формате
|
||||
* тег `$shorttime` - время в коротком формате
|
||||
@ -25,16 +30,26 @@ PyTextMonitor - минималистичный плазмоид, написан
|
||||
* тег `$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 подключен или *( )*, если нет
|
||||
* тег `$ac` - статус адаптера питания. Возвращает (\*), если AC подключен или *( )*, если нет
|
||||
* тег `$album` - альбом. Один из поддерживаемых плееров должен быть установлен
|
||||
* тег `$artist` - исполнитель. Один из поддерживаемых плееров должен быть установлен
|
||||
* тег `$progress` - прогресс. Один из поддерживаемых плееров должен быть установлен
|
||||
@ -44,14 +59,41 @@ PyTextMonitor - минималистичный плазмоид, написан
|
||||
* тег `$pstotal` - общее число процессов
|
||||
* тег `$ps` - список процессов
|
||||
* тег `$pkgcountN` - число пакетов, которые могут быть обновлены, для команды N. Например, `$pkgcount0`
|
||||
* тег `$custom` - возвращает результат своей команды
|
||||
* тег `$customN` - возвращает результат своей команды N. Например, `$custom0`
|
||||
* тег `$name` - имя текущего рабочего стола
|
||||
* тег `$number` - номер текущего рабочего стола
|
||||
* тег `$total` - общее число рабочих столов
|
||||
|
||||
Порядок полей изменится, если вы измените позицию слайдеров. 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` - день недели в длинном формате
|
||||
@ -80,6 +122,10 @@ PyTextMonitor - минималистичный плазмоид, написан
|
||||
* тег `$mm` - минуты аптайма
|
||||
* тег `$m` - минуты аптайма без нуля
|
||||
|
||||
**Температурные единицы**
|
||||
|
||||
Выберите единицы температуры. Доступные единицы следующие: Цельсий, Фаренгейт и Кельвин.
|
||||
|
||||
**Датчики температуры**
|
||||
|
||||
Список датчиков, которые будут наблюдаться в поле temo (содержимое комбо бокса берется из `sensors`). Виджет редактируем, клавиша delete удалит текущую строку.
|
||||
@ -88,7 +134,11 @@ PyTextMonitor - минималистичный плазмоид, написан
|
||||
|
||||
Список точек монтирования, которые будут наблюдаться в поле hdd (содержимое комбо бокса берется из `mount`). Виджет редактируем, клавиша delete удалит текущую строку.
|
||||
|
||||
**HDD**
|
||||
**HDD (скорость)**
|
||||
|
||||
Список HDD, которые будут наблюдаться в поле hddspeed (содержимое комбо бокса берется из DataEngine). Виджет редактируем, клавиша delete удалит текущую строку.
|
||||
|
||||
**HDD (температура)**
|
||||
|
||||
Список HDD, которые будут наблюдаться в поле hddtemp (содержимое комбо бокса берется из `find`). Виджет редактируем, клавиша delete удалит текущую строку.
|
||||
|
||||
@ -98,7 +148,7 @@ PyTextMonitor - минималистичный плазмоид, написан
|
||||
|
||||
**Сетевое устройство**
|
||||
|
||||
Использовать указанный интерфейс, как активный. Содержимое комбо бокса берется из **директории с сетевыми интерфейсами**. Эта опция отключит авто определение интерфейса.
|
||||
Использовать указанный интерфейс, как активный. Содержимое комбо бокса берется из **директории с сетевыми интерфейсами**. Эта опция отключит автоопределение интерфейса.
|
||||
|
||||
**Устройство батареи**
|
||||
|
||||
@ -114,31 +164,37 @@ PyTextMonitor - минималистичный плазмоид, написан
|
||||
|
||||
**Устройство AC**
|
||||
|
||||
Файл с информацией об адапторе питания. Данный файл (`/sys/class/power_supply/AC/online` по умолчанию) должен содержать `1`, если адаптор подключен.
|
||||
|
||||
**Музыкальные плеер**
|
||||
|
||||
Выберете один из поддерживаемых музыкальных плееров.
|
||||
Файл с информацией об адаптере питания. Данный файл (`/sys/class/power_supply/AC/online` по умолчанию) должен содержать `1`, если адаптер подключен.
|
||||
|
||||
Настройки тултипа
|
||||
-----------------
|
||||
Начиная с версии 1.7.0 поля CPU, частота CPU, память, swap и сеть поддерживают графический тултип. Чтобы включить их, просто сделайте требуемые чекбоксы полностью чекнутыми. Число хранимых значений может быть выставленно в данной вкладке. Цвета графиков также настраиваются.
|
||||
|
||||
Начиная с версии 1.7.0 поля "CPU", "Частота CPU", "Память", "Swap" и "Сеть" поддерживают графический тултип. Чтобы включить их, просто сделайте требуемые чекбоксы полностью чекнутыми. Число хранимых значений может быть выставленно в данной вкладке. Цвета графиков также настраиваются.
|
||||
|
||||
Настройки DataEngine
|
||||
--------------------
|
||||
|
||||
**Своя команда**
|
||||
|
||||
*ЗАМЕЧАНИЕ* Может вызвать зависание компьютера.
|
||||
|
||||
Команда, которая будет запущена для соответствующего поля.
|
||||
Команды, которые будут запущены для соответствующего поля.
|
||||
|
||||
**Комадна для определения рабочего стола**
|
||||
|
||||
Введите команду, которая будет запущеная для desktop DataEngine. По умолчанию `qdbus org.kde.kwin /KWin currentDesktop`.
|
||||
|
||||
**Устройство GPU**
|
||||
|
||||
Выберете одно из поддерживаемых устройств GPU. `auto` включит автоматическое определение. По умолчанию `auto`.
|
||||
Выберите одно из поддерживаемых устройств GPU. `auto` включит автоматическое определение, `disable` отключит все мониторы GPU. По умолчанию `auto`.
|
||||
|
||||
**HDD**
|
||||
|
||||
Выберете один из HDD для монитора его температуры. `all` включит монитор для всех доступных устройств. По умолчанию `all`.
|
||||
Выберете один из HDD для монитора его температуры. `all` включит монитор для всех доступных устройств, `disable` отключит определение температуры HDD. По умолчанию `all`.
|
||||
|
||||
**Команда hddtemp**
|
||||
|
||||
Введите команду, которая будет запущена для hddtemp DataEngine. По умолчанию `sudo hddtemp`.
|
||||
|
||||
**Адрес MPD**
|
||||
|
||||
@ -151,6 +207,7 @@ PyTextMonitor - минималистичный плазмоид, написан
|
||||
**Package manager**
|
||||
|
||||
Список команд, которые будут запущены. Число пустых строк - число ненужных для подсчета строк. Стандартные настройки:
|
||||
|
||||
* *Arch*: `PKGCMD=pacman -Qu`, `PKGNULL=0`
|
||||
* *Debian*: `PKGCMD=apt-show-versions -u -b`, `PKGNULL=0`
|
||||
* *Ubuntu*: `PKGCMD=aptitude search '~U'`, `PKGNULL=0`
|
||||
@ -158,34 +215,72 @@ PyTextMonitor - минималистичный плазмоид, написан
|
||||
* *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`, в зависимости от типа установки. Раскомментируйте требуемые строки и отредактируйте их.
|
||||
**Музыкальный плеер**
|
||||
|
||||
Выберите один из поддерживаемых музыкальных плееров.
|
||||
|
||||
PTM desktop panel
|
||||
=================
|
||||
|
||||
Начиная с версии 1.11.0 PyTextMonitor предоставляет минималистичную панель для мониторинга за рабочими столами, написанный на `C++`. И да, он выглядит, как аналогичная панель в Awesome.
|
||||
|
||||
Настройка Desktop panel
|
||||
-----------------------
|
||||
|
||||
**Включить фон**
|
||||
|
||||
Снимите галочку, чтобы отключить стандартный фон виджета и установить прозрачный.
|
||||
|
||||
**Вертикальная разметка**
|
||||
|
||||
Использовать вертикальную разметку вместо горизонтальной.
|
||||
|
||||
**Добавить пустое пространство**
|
||||
|
||||
Добавить пустое пространство в указанное место виджета.
|
||||
|
||||
**Метка**
|
||||
|
||||
Введите символ (или строку), которая будет показана, если данный рабочий стол сейчас активен.
|
||||
|
||||
**Теги шаблона**
|
||||
|
||||
* тег `$mark` - показать метку, если данный рабочий стол активен
|
||||
* тег `$name` - имя рабочего стола
|
||||
* тег `$number` - номер рабочего стола
|
||||
* тег `$total` - общее число рабочих столов
|
||||
|
||||
**Команда**
|
||||
|
||||
Введите команду, которая будет запущена по клику левой кнопкой мыши на выбранном рабочем столе. Доступны те же переменные, что и для шаблонов. По умолчанию `dbus org.kde.kwin /KWin setCurrentDesktop $number`.
|
||||
|
||||
Инструкция
|
||||
==========
|
||||
|
||||
Зависимости
|
||||
-----------
|
||||
|
||||
* kdebase-workspace
|
||||
* kdebindings-python2
|
||||
* lm_sensors (*для определения датчиков температуры*)
|
||||
* sysstat (*для уведомлений*)
|
||||
|
||||
Опциональные зависимости
|
||||
------------------------
|
||||
|
||||
* sysstat (*для уведомлений*)
|
||||
* проприетарный видеодрайвер
|
||||
* hddtemp (убедитесь, что может быть запущен с `sudo` без пароля. Просто добавьте следующую строку в `/etc/sudoers`: `$USERNAME ALL=NOPASSWD: /usr/bin/hddtemp`)
|
||||
* музыкальный плеер (amarok, mpd или qmmp)
|
||||
* музыкальный плеер (amarok, clementine, mpd или qmmp)
|
||||
|
||||
Зависимости сборки
|
||||
------------------
|
||||
|
||||
* automoc4
|
||||
* cmake
|
||||
* kdebase-runtime
|
||||
|
||||
Установка
|
||||
---------
|
||||
|
||||
* скачать исходный архив
|
||||
* установить
|
||||
|
||||
@ -207,6 +302,7 @@ 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)
|
263
md_readme/uk.md
Normal file
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/)
|
78
readme_diff.patch
Normal file
78
readme_diff.patch
Normal file
@ -0,0 +1,78 @@
|
||||
--- README.md.orig 2014-07-08 12:10:47.217925504 +0400
|
||||
+++ README.md 2014-07-09 18:54:32.749203368 +0400
|
||||
@@ -60,6 +60,9 @@
|
||||
* 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`
|
||||
+* tag `$name` - name of the current desktop
|
||||
+* tag `$number` - number of the current desktop
|
||||
+* tag `$total` - total number of desktops
|
||||
|
||||
Label order will changed if you change slider position. HTML tags in label work normally.
|
||||
|
||||
@@ -75,6 +78,10 @@
|
||||
Advanced settings
|
||||
-----------------
|
||||
|
||||
+**Enable background**
|
||||
+
|
||||
+Uncheck to disable default background and set transparent one.
|
||||
+
|
||||
**Vertical layout**
|
||||
|
||||
Use vertical layout instead of horizontal one.
|
||||
@@ -173,6 +180,10 @@
|
||||
|
||||
Commands, which will be run for custom label.
|
||||
|
||||
+**Desktop cmd**
|
||||
+
|
||||
+Type a command which will be run for desktop DataEngine. Default is `qdbus org.kde.kwin /KWin currentDesktop`.
|
||||
+
|
||||
**GPU device**
|
||||
|
||||
Select one of supported GPU devices. `auto` will enable auto selection, `disable` will disable definition of GPU states. Default is `auto`.
|
||||
@@ -208,10 +219,40 @@
|
||||
|
||||
Select one of supported music playes for player label.
|
||||
|
||||
-DataEngine configuration
|
||||
-------------------------
|
||||
+PTM desktop panel
|
||||
+=================
|
||||
+
|
||||
+Since version 1.11.0 PyTextMonitor provides a minimalistic panel for monitoring on desktops written on `C++`. And yes, it looks like the same panel in Awesome.
|
||||
+
|
||||
+Desktop panel configuration
|
||||
+---------------------------
|
||||
+
|
||||
+**Enable background**
|
||||
+
|
||||
+Uncheck to disable default background and set transparent one.
|
||||
+
|
||||
+**Vertical layout**
|
||||
+
|
||||
+Use vertical layout instead of horizontal one.
|
||||
+
|
||||
+**Add stretch**
|
||||
+
|
||||
+Add stretch (spacer) to the selected side of the widget.
|
||||
+
|
||||
+**Mark**
|
||||
+
|
||||
+Type symbol (or string) which will be shown if this desktop is active now.
|
||||
+
|
||||
+**Pattern tags**
|
||||
+
|
||||
+* tag `$mark` - show mark if this desktop is active
|
||||
+* tag `$name` - name of the current desktop
|
||||
+* tag `$number` - number of the current desktop
|
||||
+* tag `$total` - total number of desktops
|
||||
+
|
||||
+**Command**
|
||||
|
||||
-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.
|
||||
+Type command which will be run on left click on the selected desktop. Available variables are same as for pattern. Default is `dbus org.kde.kwin /KWin setCurrentDesktop $number`.
|
||||
|
||||
Instruction
|
||||
===========
|
@ -7,7 +7,7 @@ cmake_policy (SET CMP0015 NEW)
|
||||
|
||||
project (pytextmonitor)
|
||||
set (PROJECT_VERSION_MAJOR 1)
|
||||
set (PROJECT_VERSION_MINOR 8)
|
||||
set (PROJECT_VERSION_MINOR 11)
|
||||
set (PROJECT_VERSION_PATCH 0)
|
||||
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
|
||||
|
||||
@ -24,4 +24,6 @@ else ()
|
||||
endif ()
|
||||
|
||||
add_subdirectory (ext-sysmon)
|
||||
add_subdirectory (desktop-panel)
|
||||
add_subdirectory (ptm)
|
||||
add_subdirectory (readme)
|
||||
|
31
sources/desktop-panel/CMakeLists.txt
Normal file
31
sources/desktop-panel/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# set project name
|
||||
set (SUBPROJECT plasma_applet_ptm-desktop-panel)
|
||||
message (STATUS "Subproject ${SUBPROJECT}")
|
||||
|
||||
# find required libaries
|
||||
find_package (KDE4 REQUIRED)
|
||||
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
||||
|
||||
add_subdirectory (po)
|
||||
|
||||
include (KDE4Defaults)
|
||||
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/../)
|
||||
|
||||
# set sources
|
||||
set (PLUGIN_NAME ${SUBPROJECT})
|
||||
file (GLOB SUBPROJECT_DESKTOP_IN *.desktop)
|
||||
file (RELATIVE_PATH SUBPROJECT_DESKTOP ${CMAKE_SOURCE_DIR} ${SUBPROJECT_DESKTOP_IN})
|
||||
file (GLOB SUBPROJECT_SOURCE *.cpp)
|
||||
file (GLOB SUBPROJECT_UI *.ui)
|
||||
|
||||
# prepare
|
||||
configure_file (${SUBPROJECT_DESKTOP_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP})
|
||||
|
||||
# make
|
||||
kde4_add_ui_files (SUBPROJECT_SOURCE ${SUBPROJECT_UI})
|
||||
kde4_add_plugin (${PLUGIN_NAME} ${SUBPROJECT_SOURCE})
|
||||
target_link_libraries (${PLUGIN_NAME} ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})
|
||||
|
||||
# install
|
||||
install (TARGETS ${PLUGIN_NAME} DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP} DESTINATION ${SERVICES_INSTALL_DIR})
|
653
sources/desktop-panel/appearance.ui
Normal file
653
sources/desktop-panel/appearance.ui
Normal file
@ -0,0 +1,653 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>AppearanceWidget</class>
|
||||
<widget class="QWidget" name="AppearanceWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>480</width>
|
||||
<height>343</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>480</width>
|
||||
<height>320</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string notr="true">Configuration Window</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab_active">
|
||||
<attribute name="title">
|
||||
<string>Active desktop</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="QScrollArea" name="scrollArea_active">
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents_active">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>448</width>
|
||||
<height>289</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_fontActive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontActive">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_fontActive">
|
||||
<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_fontActive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_fontSizeActive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontSizeActive">
|
||||
<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="horizontalSpacer_fontSizeActive">
|
||||
<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_fontSizeActive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>7</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>48</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>12</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_fontColorActive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontColorActive">
|
||||
<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="horizontalSpacer_fontColorActive">
|
||||
<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_fontColorActive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_fontWeightActive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontWeightActive">
|
||||
<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="horizontalSpacer_fontWeightActive">
|
||||
<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_fontWeightActive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>300</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>600</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>50</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>400</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_fontStyleActive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontStyleActive">
|
||||
<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="horizontalSpacer_fontStyleActive">
|
||||
<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_fontStyleActive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</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>
|
||||
<spacer name="verticalSpacer_active">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>119</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tab_inactive">
|
||||
<attribute name="title">
|
||||
<string>Inactive desktop</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="0">
|
||||
<widget class="QScrollArea" name="scrollArea_inactive">
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents_inactive">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>448</width>
|
||||
<height>289</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_fontInactive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontInactive">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_fontInactive">
|
||||
<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_fontInactive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>180</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_fontSizeInactive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontSizeInactive">
|
||||
<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="horizontalSpacer_fontSizeInactive">
|
||||
<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_fontSizeInactive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>7</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>48</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>12</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_fontColorInactive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontColorInactive">
|
||||
<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="horizontalSpacer_fontColorInactive">
|
||||
<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_fontColorInactive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_fontWeightInactive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontWeightInactive">
|
||||
<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="horizontalSpacer_fontWeightInactive">
|
||||
<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_fontWeightInactive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>300</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>600</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>50</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>400</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_fontStyleInactive">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_fontStyleInactive">
|
||||
<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="horizontalSpacer_fontStyleInactive">
|
||||
<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_fontStyleInactive">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>23</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>
|
||||
<spacer name="verticalSpacer_inactive">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>119</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KColorCombo</class>
|
||||
<extends>QComboBox</extends>
|
||||
<header>kcolorcombo.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
422
sources/desktop-panel/desktop-panel.cpp
Normal file
422
sources/desktop-panel/desktop-panel.cpp
Normal file
@ -0,0 +1,422 @@
|
||||
/***************************************************************************
|
||||
* 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/ *
|
||||
***************************************************************************/
|
||||
|
||||
#include "desktop-panel.h"
|
||||
#include "ui_appearance.h"
|
||||
#include "ui_widget.h"
|
||||
|
||||
#include <KDE/KConfigDialog>
|
||||
#include <KDE/KGlobal>
|
||||
#include <KDE/KStandardDirs>
|
||||
#include <plasma/theme.h>
|
||||
#include <QDebug>
|
||||
#include <QFile>
|
||||
#include <QGraphicsLinearLayout>
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <QProcessEnvironment>
|
||||
#include <QTextCodec>
|
||||
|
||||
|
||||
CustomPlasmaLabel::CustomPlasmaLabel(DesktopPanel *wid, const int num)
|
||||
: Plasma::Label(wid)
|
||||
{
|
||||
// debug
|
||||
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
||||
QString debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes"))
|
||||
debug = true;
|
||||
else
|
||||
debug = false;
|
||||
|
||||
if (debug) qDebug() << "[PTM-DP]" << "Init label" << num;
|
||||
number = num;
|
||||
widget = wid;
|
||||
}
|
||||
|
||||
|
||||
CustomPlasmaLabel::~CustomPlasmaLabel()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
int CustomPlasmaLabel::getNumber()
|
||||
{
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[" << number << "]" << "[getNumber]";
|
||||
return number;
|
||||
}
|
||||
|
||||
|
||||
void CustomPlasmaLabel::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[" << number << "]" << "[mouseMoveEvent]";
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[" << number << "]" << "[mouseMoveEvent]" << "Get signal" << event->button();
|
||||
if (event->button() == Qt::LeftButton)
|
||||
widget->setCurrentDesktop(number);
|
||||
}
|
||||
|
||||
|
||||
|
||||
DesktopPanel::DesktopPanel(QObject *parent, const QVariantList &args)
|
||||
: Plasma::Applet(parent, args)
|
||||
{
|
||||
// debug
|
||||
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
||||
QString debugEnv = environment.value(QString("PTM_DEBUG"), QString("no"));
|
||||
if (debugEnv == QString("yes"))
|
||||
debug = true;
|
||||
else
|
||||
debug = false;
|
||||
|
||||
setHasConfigurationInterface(true);
|
||||
// text format init
|
||||
currentFormatLine.append(QString(""));
|
||||
currentFormatLine.append(QString(""));
|
||||
formatLine.append(QString(""));
|
||||
formatLine.append(QString(""));
|
||||
}
|
||||
|
||||
|
||||
DesktopPanel::~DesktopPanel()
|
||||
{
|
||||
// for (int i=0; i<labels.count(); i++)
|
||||
// delete labels[i];
|
||||
// delete layout;
|
||||
}
|
||||
|
||||
|
||||
void DesktopPanel::init()
|
||||
{
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[init]";
|
||||
extsysmonEngine = dataEngine(QString("ext-sysmon"));
|
||||
|
||||
layout = new QGraphicsLinearLayout();
|
||||
layout->setContentsMargins(1, 1, 1, 1);
|
||||
setLayout(layout);
|
||||
|
||||
currentDesktop = 1;
|
||||
|
||||
// read variables
|
||||
configChanged();
|
||||
}
|
||||
|
||||
|
||||
QStringList DesktopPanel::getDesktopNames()
|
||||
{
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[getDesktopNames]";
|
||||
QStringList list;
|
||||
QString fileName = KGlobal::dirs()->findResource("config", "kwinrc");
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[getDesktopNames]" << ":" << "Configuration file" << fileName;
|
||||
QFile confFile(fileName);
|
||||
if (!confFile.open(QIODevice::ReadOnly)) return list;
|
||||
|
||||
QString fileStr;
|
||||
QStringList value;
|
||||
bool desktopSection = false;
|
||||
while (true) {
|
||||
fileStr = QString(confFile.readLine()).trimmed();
|
||||
if (fileStr[0] == QChar('#')) continue;
|
||||
if (fileStr[0] == QChar(';')) continue;
|
||||
if (fileStr[0] == QChar('[')) desktopSection = false;
|
||||
if (fileStr == QString("[Desktops]")) desktopSection = true;
|
||||
if (desktopSection) {
|
||||
if (fileStr.contains(QChar('='))) {
|
||||
value.clear();
|
||||
for (int i=1; i<fileStr.split(QChar('=')).count(); i++)
|
||||
value.append(fileStr.split(QChar('='))[i]);
|
||||
if (fileStr.split(QChar('='))[0].contains(QString("Name_")))
|
||||
list.append(value.join(QChar('=')));
|
||||
}
|
||||
}
|
||||
if (confFile.atEnd())
|
||||
break;
|
||||
}
|
||||
confFile.close();
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
QString DesktopPanel::parsePattern(const QString rawLine, const int num)
|
||||
{
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]";
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]" << "Run function with raw line" << rawLine;
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]" << "Run function with number" << num;
|
||||
|
||||
QString line, mark;
|
||||
line = rawLine;
|
||||
if (currentDesktop == num + 1)
|
||||
mark = configuration[QString("mark")];
|
||||
else
|
||||
mark = QString("");
|
||||
if (line.split(QString("$mark"))[0] != line) {
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]" << "Found mark";
|
||||
line = line.split(QString("$mark"))[0] + mark + line.split(QString("$mark"))[1];
|
||||
}
|
||||
if (line.split(QString("$name"))[0] != line) {
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]" << "Found name";
|
||||
line = line.split(QString("$name"))[0] + desktopNames[num] + line.split(QString("$name"))[1];
|
||||
}
|
||||
if (line.split(QString("$number"))[0] != line) {
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]" << "Found number";
|
||||
line = line.split(QString("$number"))[0] + QString::number(num + 1) + line.split(QString("$number"))[1];
|
||||
}
|
||||
if (line.split(QString("$total"))[0] != line) {
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[parsePattern]" << "Found total";
|
||||
line = line.split(QString("$total"))[0] + QString::number(desktopNames.count()) + line.split(QString("$total"))[1];
|
||||
}
|
||||
return line;
|
||||
}
|
||||
|
||||
|
||||
void DesktopPanel::reinit()
|
||||
{
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[reinit]";
|
||||
|
||||
// clear
|
||||
// labels
|
||||
for (int i=0; i<labels.count(); i++) {
|
||||
layout->removeItem(labels[i]);
|
||||
delete labels[i];
|
||||
}
|
||||
labels.clear();
|
||||
// layout
|
||||
layout = new QGraphicsLinearLayout();
|
||||
layout->setContentsMargins(1, 1, 1, 1);
|
||||
setLayout(layout);
|
||||
|
||||
// add
|
||||
// layout
|
||||
if (configuration[QString("background")].toInt() == 0)
|
||||
setBackgroundHints(NoBackground);
|
||||
else
|
||||
setBackgroundHints(DefaultBackground);
|
||||
if (configuration[QString("layout")].toInt() == 0)
|
||||
layout->setOrientation(Qt::Horizontal);
|
||||
else
|
||||
layout->setOrientation(Qt::Horizontal);
|
||||
// left stretch
|
||||
if (configuration[QString("leftStretch")].toInt() == 2)
|
||||
layout->addStretch(1);
|
||||
// labels
|
||||
for (int i=0; i<desktopNames.count(); i++) {
|
||||
labels.append(new CustomPlasmaLabel(this, i));
|
||||
layout->addItem(labels[i]);
|
||||
}
|
||||
// right stretch
|
||||
if (configuration[QString("rightStretch")].toInt() == 2)
|
||||
layout->addStretch(1);
|
||||
|
||||
updateText();
|
||||
}
|
||||
|
||||
|
||||
int DesktopPanel::setCurrentDesktop(const int number)
|
||||
{
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[setCurrentDesktop]";
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[setCurrentDesktop]" << "Set desktop" << number + 1;
|
||||
|
||||
QString cmd = parsePattern(configuration[QString("desktopcmd")], number);
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[setCurrentDesktop]" << "Run cmd " << cmd;
|
||||
|
||||
QProcess command;
|
||||
command.start(cmd);
|
||||
command.waitForFinished(-1);
|
||||
int status = command.exitCode();
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[setCurrentDesktop]" << "Cmd returns " << status;
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
void DesktopPanel::updateText()
|
||||
{
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[updateText]";
|
||||
if (labels.isEmpty()) return;
|
||||
QString line, text;
|
||||
for (int i=0; i<labels.count(); i++) {
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[updateText]" << "Label" << i;
|
||||
line = parsePattern(configuration[QString("pattern")], i);
|
||||
if (currentDesktop == i + 1)
|
||||
text = currentFormatLine[0] + line + currentFormatLine[1];
|
||||
else
|
||||
text = formatLine[0] + line + formatLine[1];
|
||||
labels[i]->setText(text);
|
||||
}
|
||||
resize(1, 1);
|
||||
}
|
||||
|
||||
|
||||
// data engine interaction
|
||||
void DesktopPanel::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data)
|
||||
{
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[dataUpdated]";
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[dataUpdated]" << ":" << "Run function with source name" << sourceName;
|
||||
if (data.keys().count() == 0)
|
||||
return;
|
||||
if (sourceName == QString("desktop")) {
|
||||
currentDesktop = data[QString("currentNumber")].toInt();
|
||||
updateText();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// configuration interface
|
||||
void DesktopPanel::createConfigurationInterface(KConfigDialog *parent)
|
||||
{
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[createConfigurationInterface]";
|
||||
QWidget *appWidget = new QWidget;
|
||||
uiAppConfig.setupUi(appWidget);
|
||||
QWidget *configWidget = new QWidget;
|
||||
uiWidConfig.setupUi(configWidget);
|
||||
|
||||
if (configuration[QString("background")].toInt() == 0)
|
||||
uiWidConfig.checkBox_background->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
uiWidConfig.checkBox_background->setCheckState(Qt::Checked);
|
||||
if (configuration[QString("layout")].toInt() == 0)
|
||||
uiWidConfig.checkBox_layout->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
uiWidConfig.checkBox_layout->setCheckState(Qt::Checked);
|
||||
if (configuration[QString("leftStretch")].toInt() == 0)
|
||||
uiWidConfig.checkBox_leftStretch->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
uiWidConfig.checkBox_leftStretch->setCheckState(Qt::Checked);
|
||||
if (configuration[QString("rightStretch")].toInt() == 0)
|
||||
uiWidConfig.checkBox_rightStretch->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
uiWidConfig.checkBox_rightStretch->setCheckState(Qt::Checked);
|
||||
uiWidConfig.spinBox_interval->setValue(configuration[QString("interval")].toInt());
|
||||
uiWidConfig.comboBox_mark->setItemText(uiWidConfig.comboBox_mark->count()-1, configuration[QString("mark")]);
|
||||
uiWidConfig.comboBox_mark->setCurrentIndex(uiWidConfig.comboBox_mark->count()-1);
|
||||
uiWidConfig.lineEdit_pattern->setText(configuration[QString("pattern")]);
|
||||
uiWidConfig.lineEdit_desktopcmd->setText(configuration[QString("desktopcmd")]);
|
||||
|
||||
KConfigGroup cg = config();
|
||||
QString fontFamily = cg.readEntry("currentFontFamily", "Terminus");
|
||||
int fontSize = cg.readEntry("currentFontSize", 10);
|
||||
QString fontColor = cg.readEntry("currentFontColor", "#ff0000");
|
||||
int fontWeight = cg.readEntry("currentFontWeight", 400);
|
||||
QString fontStyle = cg.readEntry("currentFontStyle", "normal");
|
||||
QFont font = QFont(fontFamily, 12, 400, FALSE);
|
||||
uiAppConfig.fontComboBox_fontActive->setCurrentFont(font);
|
||||
uiAppConfig.spinBox_fontSizeActive->setValue(fontSize);
|
||||
uiAppConfig.kcolorcombo_fontColorActive->setColor(fontColor);
|
||||
uiAppConfig.spinBox_fontWeightActive->setValue(fontWeight);
|
||||
if (fontStyle == "normal")
|
||||
uiAppConfig.comboBox_fontStyleActive->setCurrentIndex(0);
|
||||
else if (fontStyle == "italic")
|
||||
uiAppConfig.comboBox_fontStyleActive->setCurrentIndex(1);
|
||||
|
||||
fontFamily = cg.readEntry("fontFamily", "Terminus");
|
||||
fontSize = cg.readEntry("fontSize", 10);
|
||||
fontColor = cg.readEntry("fontColor", "#000000");
|
||||
fontWeight = cg.readEntry("fontWeight", 400);
|
||||
fontStyle = cg.readEntry("fontStyle", "normal");
|
||||
font = QFont(fontFamily, 12, 400, FALSE);
|
||||
uiAppConfig.fontComboBox_fontInactive->setCurrentFont(font);
|
||||
uiAppConfig.spinBox_fontSizeInactive->setValue(fontSize);
|
||||
uiAppConfig.kcolorcombo_fontColorInactive->setColor(fontColor);
|
||||
uiAppConfig.spinBox_fontWeightInactive->setValue(fontWeight);
|
||||
if (fontStyle == "normal")
|
||||
uiAppConfig.comboBox_fontStyleInactive->setCurrentIndex(0);
|
||||
else if (fontStyle == "italic")
|
||||
uiAppConfig.comboBox_fontStyleInactive->setCurrentIndex(1);
|
||||
|
||||
parent->addPage(configWidget, i18n("Widget"), Applet::icon());
|
||||
parent->addPage(appWidget, i18n("Appearance"), QString("preferences-desktop-theme"));
|
||||
|
||||
connect(parent, SIGNAL(okClicked()), this, SLOT(configAccepted()));
|
||||
connect(parent, SIGNAL(applyClicked()), this, SLOT(configAccepted()));
|
||||
}
|
||||
|
||||
|
||||
void DesktopPanel::configAccepted()
|
||||
{
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[configAccepted]";
|
||||
extsysmonEngine->disconnectSource(QString("desktop"), this);
|
||||
KConfigGroup cg = config();
|
||||
|
||||
cg.writeEntry("background", QString::number(uiWidConfig.checkBox_background->checkState()));
|
||||
cg.writeEntry("layout", QString::number(uiWidConfig.checkBox_layout->checkState()));
|
||||
cg.writeEntry("leftStretch", QString::number(uiWidConfig.checkBox_leftStretch->checkState()));
|
||||
cg.writeEntry("rightStretch", QString::number(uiWidConfig.checkBox_rightStretch->checkState()));
|
||||
cg.writeEntry("interval", QString::number(uiWidConfig.spinBox_interval->value()));
|
||||
cg.writeEntry("mark", uiWidConfig.comboBox_mark->currentText());
|
||||
cg.writeEntry("pattern", uiWidConfig.lineEdit_pattern->text());
|
||||
cg.writeEntry("desktopcmd", uiWidConfig.lineEdit_desktopcmd->text());
|
||||
|
||||
cg.writeEntry("currentFontFamily", uiAppConfig.fontComboBox_fontActive->currentFont().family());
|
||||
cg.writeEntry("currentFontSize", uiAppConfig.spinBox_fontSizeActive->value());
|
||||
cg.writeEntry("currentFontColor", uiAppConfig.kcolorcombo_fontColorActive->color().name());
|
||||
cg.writeEntry("currentFontWeight", uiAppConfig.spinBox_fontWeightActive->value());
|
||||
cg.writeEntry("currentFontStyle", uiAppConfig.comboBox_fontStyleActive->currentText());
|
||||
|
||||
cg.writeEntry("fontFamily", uiAppConfig.fontComboBox_fontInactive->currentFont().family());
|
||||
cg.writeEntry("fontSize", uiAppConfig.spinBox_fontSizeInactive->value());
|
||||
cg.writeEntry("fontColor", uiAppConfig.kcolorcombo_fontColorInactive->color().name());
|
||||
cg.writeEntry("fontWeight", uiAppConfig.spinBox_fontWeightInactive->value());
|
||||
cg.writeEntry("fontStyle", uiAppConfig.comboBox_fontStyleInactive->currentText());
|
||||
}
|
||||
|
||||
|
||||
void DesktopPanel::configChanged()
|
||||
{
|
||||
if (debug) qDebug() << "[PTM-DP]" << "[configChanged]";
|
||||
KConfigGroup cg = config();
|
||||
|
||||
configuration[QString("background")] = cg.readEntry("background", "0");
|
||||
configuration[QString("desktopcmd")] = cg.readEntry("desktopcmd", "qdbus org.kde.kwin /KWin setCurrentDesktop $number");
|
||||
configuration[QString("interval")] = cg.readEntry("interval", "1000");
|
||||
configuration[QString("layout")] = cg.readEntry("layout", "0");
|
||||
configuration[QString("leftStretch")] = cg.readEntry("leftStretch", "2");
|
||||
configuration[QString("mark")] = cg.readEntry("mark", "¤");
|
||||
configuration[QString("pattern")] = cg.readEntry("pattern", "[$mark$number/$total: $name]");
|
||||
configuration[QString("rightStretch")] = cg.readEntry("rightStretch", "2");
|
||||
|
||||
desktopNames = getDesktopNames();
|
||||
|
||||
extsysmonEngine->connectSource(QString("desktop"), this, configuration[QString("interval")].toInt());
|
||||
|
||||
QString fontFamily = cg.readEntry("currentFontFamily", "Terminus");
|
||||
int fontSize = cg.readEntry("currentFontSize", 10);
|
||||
QString fontColor = cg.readEntry("currentFontColor", "#ff0000");
|
||||
int fontWeight = cg.readEntry("currentFontWeight", 400);
|
||||
QString fontStyle = cg.readEntry("currentFontStyle", "normal");
|
||||
currentFormatLine[0] = ("<p align=\"center\"><span style=\" font-family:'" + fontFamily + \
|
||||
"'; font-style:" + fontStyle + \
|
||||
"; font-size:" + QString::number(fontSize) + \
|
||||
"pt; font-weight:" + QString::number(fontWeight) + \
|
||||
"; color:" + fontColor + \
|
||||
";\"><pre>");
|
||||
currentFormatLine[1] = ("</pre></span></p>");
|
||||
|
||||
fontFamily = cg.readEntry("fontFamily", "Terminus");
|
||||
fontSize = cg.readEntry("fontSize", 10);
|
||||
fontColor = cg.readEntry("fontColor", "#000000");
|
||||
fontWeight = cg.readEntry("fontWeight", 400);
|
||||
fontStyle = cg.readEntry("fontStyle", "normal");
|
||||
formatLine[0] = ("<p align=\"center\"><span style=\" font-family:'" + fontFamily + \
|
||||
"'; font-style:" + fontStyle + \
|
||||
"; font-size:" + QString::number(fontSize) + \
|
||||
"pt; font-weight:" + QString::number(fontWeight) + \
|
||||
"; color:" + fontColor + \
|
||||
";\"><pre>");
|
||||
formatLine[1] = ("</pre></span></p>");
|
||||
|
||||
reinit();
|
||||
}
|
||||
|
||||
|
||||
#include "desktop-panel.moc"
|
105
sources/desktop-panel/desktop-panel.h
Normal file
105
sources/desktop-panel/desktop-panel.h
Normal file
@ -0,0 +1,105 @@
|
||||
/***************************************************************************
|
||||
* 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/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef DESKTOP_PANEL_H
|
||||
#define DESKTOP_PANEL_H
|
||||
|
||||
#include <Plasma/Applet>
|
||||
#include <Plasma/DataEngine>
|
||||
#include <Plasma/Label>
|
||||
|
||||
#include <ui_appearance.h>
|
||||
#include <ui_widget.h>
|
||||
|
||||
|
||||
class QGraphicsLinearLayout;
|
||||
class DesktopPanel;
|
||||
|
||||
|
||||
class CustomPlasmaLabel : public Plasma::Label
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CustomPlasmaLabel(DesktopPanel *wid, const int num);
|
||||
~CustomPlasmaLabel();
|
||||
int getNumber();
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event);
|
||||
|
||||
private:
|
||||
// debug
|
||||
bool debug;
|
||||
// variables
|
||||
int number;
|
||||
DesktopPanel *widget;
|
||||
};
|
||||
|
||||
|
||||
class DesktopPanel : public Plasma::Applet
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DesktopPanel(QObject *parent, const QVariantList &args);
|
||||
~DesktopPanel();
|
||||
void init();
|
||||
QString parsePattern(const QString rawLine, const int num);
|
||||
|
||||
public slots:
|
||||
// dataengine
|
||||
void dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data);
|
||||
// configuration interface
|
||||
void configAccepted();
|
||||
void configChanged();
|
||||
// event
|
||||
int setCurrentDesktop(const int number);
|
||||
|
||||
private slots:
|
||||
void reinit();
|
||||
|
||||
protected:
|
||||
void createConfigurationInterface(KConfigDialog *parent);
|
||||
|
||||
private:
|
||||
// functions
|
||||
QStringList getDesktopNames();
|
||||
void updateText();
|
||||
// ui
|
||||
QGraphicsLinearLayout *layout;
|
||||
QList<CustomPlasmaLabel *> labels;
|
||||
// debug
|
||||
bool debug;
|
||||
// data engine
|
||||
int currentDesktop;
|
||||
Plasma::DataEngine *extsysmonEngine;
|
||||
// configuration interface
|
||||
Ui::AppearanceWidget uiAppConfig;
|
||||
Ui::ConfigWindow uiWidConfig;
|
||||
// configuration
|
||||
QMap<QString, QString> configuration;
|
||||
QStringList desktopNames;
|
||||
QStringList currentFormatLine;
|
||||
QStringList formatLine;
|
||||
};
|
||||
|
||||
K_EXPORT_PLASMA_APPLET(ptm-desktop-panel, DesktopPanel)
|
||||
|
||||
|
||||
#endif /* DESKTOP_PANEL_H */
|
25
sources/desktop-panel/plasma-applet-desktoppanel.desktop
Normal file
25
sources/desktop-panel/plasma-applet-desktoppanel.desktop
Normal file
@ -0,0 +1,25 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=PTM Desktop Panel
|
||||
Comment=A minimalistic Plasmoid script written on Python2
|
||||
Comment[en]=A minimalistic Plasmoid script written on Python2
|
||||
Comment[es]=Un plasmoide minimalista escrito en Python2
|
||||
Comment[es]=Un script Plasmoïde minimaliste écrit sur Python2
|
||||
Comment[pt_BR]=Um script Plasmoid escrito em Python2
|
||||
Comment[ru]=Минималистичный плазмоид скрипт, написанный на Python2
|
||||
Comment[uk]=Мінімалістичний плазмоїд, що написаний на Python2
|
||||
X-KDE-ServiceTypes=Plasma/Applet
|
||||
Type=Service
|
||||
Icon=utilities-system-monitor
|
||||
|
||||
X-KDE-Library=plasma_applet_ptm-desktop-panel
|
||||
|
||||
X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
||||
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
||||
X-KDE-PluginInfo-Name=ptm-desktop-panel
|
||||
X-KDE-PluginInfo-Version=@PROJECT_VERSION@
|
||||
X-KDE-PluginInfo-Website=http://arcanis.name/projects/pytextmonitor/
|
||||
X-KDE-PluginInfo-Category=System Information
|
||||
X-KDE-PluginInfo-Depends=
|
||||
X-KDE-PluginInfo-License=GPLv3
|
||||
X-KDE-PluginInfo-EnabledByDefault=true
|
24
sources/desktop-panel/po/CMakeLists.txt
Normal file
24
sources/desktop-panel/po/CMakeLists.txt
Normal file
@ -0,0 +1,24 @@
|
||||
find_package(KDE4 REQUIRED)
|
||||
find_package(Gettext REQUIRED)
|
||||
|
||||
if (NOT GETTEXT_MSGFMT_EXECUTABLE)
|
||||
message(FATAL_ERROR "Please install the msgfmt binary")
|
||||
endif (NOT GETTEXT_MSGFMT_EXECUTABLE)
|
||||
|
||||
file (GLOB _po_files *.po)
|
||||
|
||||
set (_gmoFiles)
|
||||
|
||||
foreach (_current_PO_FILE ${_po_files})
|
||||
get_filename_component (_lang ${_current_PO_FILE} NAME_WE)
|
||||
set (_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo)
|
||||
add_custom_command (OUTPUT ${_gmoFile}
|
||||
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${_gmoFile} ${_current_PO_FILE}
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
DEPENDS ${_current_PO_FILE}
|
||||
)
|
||||
|
||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME plasma_applet_netctl.mo)
|
||||
list (APPEND _gmoFiles ${_gmoFile})
|
||||
endforeach (_current_PO_FILE)
|
||||
add_custom_target (pofiles ALL DEPENDS ${_gmoFiles})
|
198
sources/desktop-panel/po/en.po
Normal file
198
sources/desktop-panel/po/en.po
Normal file
@ -0,0 +1,198 @@
|
||||
# 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: https://github.com/arcan1s/pytextmonitor/issues\n"
|
||||
"POT-Creation-Date: 2014-07-09 10:38+0400\n"
|
||||
"PO-Revision-Date: 2014-07-09 10:36+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: English <kde-russian@lists.kde.ru>\n"
|
||||
"Language: ru\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"
|
||||
|
||||
#: desktop-panel.cpp:325
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: desktop-panel.cpp:326
|
||||
msgid "Appearance"
|
||||
msgstr "Appearance"
|
||||
|
||||
#. i18n: file: appearance.ui:30
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Active desktop"
|
||||
msgstr "Active desktop"
|
||||
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
|
||||
msgid "Font"
|
||||
msgstr "Font"
|
||||
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
|
||||
msgid "Font size"
|
||||
msgstr "Font size"
|
||||
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
|
||||
msgid "Font color"
|
||||
msgstr "Font color"
|
||||
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
|
||||
msgid "Font weight"
|
||||
msgstr "Font weight"
|
||||
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
|
||||
msgid "Font style"
|
||||
msgstr "Font style"
|
||||
|
||||
#. i18n: file: appearance.ui:336
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
|
||||
#: po/rc.cpp:21 rc.cpp:21
|
||||
msgid "Inactive desktop"
|
||||
msgstr "Inactive desktop"
|
||||
|
||||
#. i18n: file: widget.ui:41
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
|
||||
#: po/rc.cpp:39 rc.cpp:39
|
||||
msgid "Enable background"
|
||||
msgstr "Enable background"
|
||||
|
||||
#. i18n: file: widget.ui:48
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Vertical layout"
|
||||
msgstr "Vertical layout"
|
||||
|
||||
#. i18n: file: widget.ui:55
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Add stretch to left/top of the layout"
|
||||
|
||||
#. i18n: file: widget.ui:62
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Add stretch to right/bottom of the layout"
|
||||
|
||||
#. i18n: file: widget.ui:77
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Time interval"
|
||||
msgstr "Time interval"
|
||||
|
||||
#. i18n: file: widget.ui:132
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mark)
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Mark"
|
||||
msgstr "Mark"
|
||||
|
||||
#. i18n: file: widget.ui:139
|
||||
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr "A mark which will be shown if this desktop is active"
|
||||
|
||||
#. i18n: file: widget.ui:229
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Pattern"
|
||||
msgstr "Pattern"
|
||||
|
||||
#. i18n: file: widget.ui:239
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid ""
|
||||
"$mark - show mark if the current desktop is active\n"
|
||||
"$name - desktop name\n"
|
||||
"$number - desktop number\n"
|
||||
"$total - total number of desktops"
|
||||
msgstr ""
|
||||
"$mark - show mark if the current desktop is active\n"
|
||||
"$name - desktop name\n"
|
||||
"$number - desktop number\n"
|
||||
"$total - total number of desktops"
|
||||
|
||||
#. i18n: file: widget.ui:256
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Command to change desktop"
|
||||
msgstr "Command to change desktop"
|
||||
|
||||
#. i18n: file: widget.ui:263
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr "Command which will change the current desktop"
|
||||
|
||||
#: po/rc.cpp:73 rc.cpp:73
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: po/rc.cpp:74 rc.cpp:74
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
||||
|
||||
#~ msgid "Set font family"
|
||||
#~ msgstr "Set font family"
|
||||
|
||||
#~ msgid "Set font size"
|
||||
#~ msgstr "Set font size"
|
||||
|
||||
#~ msgid "Set font color"
|
||||
#~ msgstr "Set font color"
|
||||
|
||||
#~ msgid "Set font weight"
|
||||
#~ msgstr "Set font weight"
|
||||
|
||||
#~ msgid "Set font style"
|
||||
#~ msgstr "Set font style"
|
179
sources/desktop-panel/po/es.po
Normal file
179
sources/desktop-panel/po/es.po
Normal file
@ -0,0 +1,179 @@
|
||||
# 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: https://github.com/arcan1s/pytextmonitor/issues\n"
|
||||
"POT-Creation-Date: 2014-07-09 10:38+0400\n"
|
||||
"PO-Revision-Date: 2014-06-05 10:21+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Spanish <kde-spanish@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"
|
||||
|
||||
#: desktop-panel.cpp:325
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: desktop-panel.cpp:326
|
||||
msgid "Appearance"
|
||||
msgstr "Apariencia"
|
||||
|
||||
#. i18n: file: appearance.ui:30
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Active desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
|
||||
msgid "Font"
|
||||
msgstr "Fuente"
|
||||
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
|
||||
msgid "Font size"
|
||||
msgstr "Tamaño de fuente"
|
||||
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
|
||||
msgid "Font color"
|
||||
msgstr "Color de fuente"
|
||||
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
|
||||
msgid "Font weight"
|
||||
msgstr "Grosor de la fuente"
|
||||
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
|
||||
msgid "Font style"
|
||||
msgstr "Estilo de fuente"
|
||||
|
||||
#. i18n: file: appearance.ui:336
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
|
||||
#: po/rc.cpp:21 rc.cpp:21
|
||||
msgid "Inactive desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:41
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
|
||||
#: po/rc.cpp:39 rc.cpp:39
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:48
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Vertical layout"
|
||||
msgstr "Orientación vertical"
|
||||
|
||||
#. i18n: file: widget.ui:55
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Añadir extensión a la izquierda/superior de la distribución"
|
||||
|
||||
#. i18n: file: widget.ui:62
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Añadir extensión a la derecha/inferior de la distribución"
|
||||
|
||||
#. i18n: file: widget.ui:77
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalo de tiempo"
|
||||
|
||||
#. i18n: file: widget.ui:132
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mark)
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Mark"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:139
|
||||
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:229
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Pattern"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:239
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid ""
|
||||
"$mark - show mark if the current desktop is active\n"
|
||||
"$name - desktop name\n"
|
||||
"$number - desktop number\n"
|
||||
"$total - total number of desktops"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:256
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Command to change desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:263
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:73 rc.cpp:73
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Tu nombre"
|
||||
|
||||
#: po/rc.cpp:74 rc.cpp:74
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "Tus correos"
|
81
sources/desktop-panel/po/extract_messages.sh
Executable file
81
sources/desktop-panel/po/extract_messages.sh
Executable file
@ -0,0 +1,81 @@
|
||||
#!/bin/sh
|
||||
BASEDIR="../" # root of translatable sources
|
||||
PROJECT="plasma_applet_ptm-desktop-panel" # project name
|
||||
BUGADDR="https://github.com/arcan1s/pytextmonitor/issues" # MSGID-Bugs
|
||||
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"
|
||||
|
||||
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}
|
||||
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; }
|
||||
echo "Done extracting messages"
|
||||
|
||||
|
||||
echo "Merging translations"
|
||||
catalogs=`find . -name '*.po'`
|
||||
for cat in $catalogs; do
|
||||
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
|
||||
echo "Done"
|
||||
|
180
sources/desktop-panel/po/fr.po
Normal file
180
sources/desktop-panel/po/fr.po
Normal file
@ -0,0 +1,180 @@
|
||||
# Copyright (C) 2014
|
||||
# This file is distributed under the same license as the PyTextMonitor package.
|
||||
#
|
||||
# Evgeniy Alekseev <esalexeev@gmail.com>, 2014.
|
||||
# Mermouy <mermouy@gmail.com>, 2014.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/pytextmonitor/issues\n"
|
||||
"POT-Creation-Date: 2014-07-09 10:38+0400\n"
|
||||
"PO-Revision-Date: 2014-06-05 19:24+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: French <kde-french@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"
|
||||
|
||||
#: desktop-panel.cpp:325
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: desktop-panel.cpp:326
|
||||
msgid "Appearance"
|
||||
msgstr "Apparence"
|
||||
|
||||
#. i18n: file: appearance.ui:30
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Active desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
|
||||
msgid "Font"
|
||||
msgstr "Police"
|
||||
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
|
||||
msgid "Font size"
|
||||
msgstr "Taille de la police"
|
||||
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
|
||||
msgid "Font color"
|
||||
msgstr "Couleur de la police"
|
||||
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
|
||||
msgid "Font weight"
|
||||
msgstr "Épaisseur de la police"
|
||||
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
|
||||
msgid "Font style"
|
||||
msgstr "Style de la police"
|
||||
|
||||
#. i18n: file: appearance.ui:336
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
|
||||
#: po/rc.cpp:21 rc.cpp:21
|
||||
msgid "Inactive desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:41
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
|
||||
#: po/rc.cpp:39 rc.cpp:39
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:48
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Vertical layout"
|
||||
msgstr "Positionnement vertical"
|
||||
|
||||
#. i18n: file: widget.ui:55
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Étirer le positionnement vers haut/gauche"
|
||||
|
||||
#. i18n: file: widget.ui:62
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Étirer le positionnement vers bas/droite"
|
||||
|
||||
#. i18n: file: widget.ui:77
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalle"
|
||||
|
||||
#. i18n: file: widget.ui:132
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mark)
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Mark"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:139
|
||||
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:229
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Pattern"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:239
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid ""
|
||||
"$mark - show mark if the current desktop is active\n"
|
||||
"$name - desktop name\n"
|
||||
"$number - desktop number\n"
|
||||
"$total - total number of desktops"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:256
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Command to change desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:263
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:73 rc.cpp:73
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: po/rc.cpp:74 rc.cpp:74
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
178
sources/desktop-panel/po/plasma_applet_ptm-desktop-panel.pot
Normal file
178
sources/desktop-panel/po/plasma_applet_ptm-desktop-panel.pot
Normal file
@ -0,0 +1,178 @@
|
||||
# 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.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/arcan1s/pytextmonitor/issues\n"
|
||||
"POT-Creation-Date: 2014-07-09 10:38+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"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: desktop-panel.cpp:325
|
||||
msgid "Widget"
|
||||
msgstr ""
|
||||
|
||||
#: desktop-panel.cpp:326
|
||||
msgid "Appearance"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: appearance.ui:30
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Active desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
|
||||
msgid "Font"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
|
||||
msgid "Font size"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
|
||||
msgid "Font color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
|
||||
msgid "Font weight"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
|
||||
msgid "Font style"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: appearance.ui:336
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
|
||||
#: po/rc.cpp:21 rc.cpp:21
|
||||
msgid "Inactive desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:41
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
|
||||
#: po/rc.cpp:39 rc.cpp:39
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:48
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Vertical layout"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:55
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:62
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:77
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Time interval"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:132
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mark)
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Mark"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:139
|
||||
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:229
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Pattern"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:239
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid ""
|
||||
"$mark - show mark if the current desktop is active\n"
|
||||
"$name - desktop name\n"
|
||||
"$number - desktop number\n"
|
||||
"$total - total number of desktops"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:256
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Command to change desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:263
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:73 rc.cpp:73
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:74 rc.cpp:74
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr ""
|
178
sources/desktop-panel/po/pt_BR.po
Normal file
178
sources/desktop-panel/po/pt_BR.po
Normal file
@ -0,0 +1,178 @@
|
||||
# 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: https://github.com/arcan1s/pytextmonitor/issues\n"
|
||||
"POT-Creation-Date: 2014-07-09 10:38+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"
|
||||
|
||||
#: desktop-panel.cpp:325
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: desktop-panel.cpp:326
|
||||
msgid "Appearance"
|
||||
msgstr "Aparência"
|
||||
|
||||
#. i18n: file: appearance.ui:30
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Active desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
|
||||
msgid "Font"
|
||||
msgstr "Tamanho da fonte"
|
||||
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
|
||||
msgid "Font size"
|
||||
msgstr "Tamanho da fonte"
|
||||
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
|
||||
msgid "Font color"
|
||||
msgstr "Cor da fonte"
|
||||
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
|
||||
msgid "Font weight"
|
||||
msgstr "Peso da fonte"
|
||||
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
|
||||
msgid "Font style"
|
||||
msgstr "Estilo da fonte"
|
||||
|
||||
#. i18n: file: appearance.ui:336
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
|
||||
#: po/rc.cpp:21 rc.cpp:21
|
||||
msgid "Inactive desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:41
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
|
||||
#: po/rc.cpp:39 rc.cpp:39
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:48
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Vertical layout"
|
||||
msgstr "Layout vertical"
|
||||
|
||||
#. i18n: file: widget.ui:55
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Adicionar esticamento à esquerda/topo do layout"
|
||||
|
||||
#. i18n: file: widget.ui:62
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Adicionar esticamento à direita/inferior do layout"
|
||||
|
||||
#. i18n: file: widget.ui:77
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalo de tempo"
|
||||
|
||||
#. i18n: file: widget.ui:132
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mark)
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Mark"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:139
|
||||
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:229
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Pattern"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:239
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid ""
|
||||
"$mark - show mark if the current desktop is active\n"
|
||||
"$name - desktop name\n"
|
||||
"$number - desktop number\n"
|
||||
"$total - total number of desktops"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:256
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Command to change desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:263
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:73 rc.cpp:73
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "under"
|
||||
|
||||
#: po/rc.cpp:74 rc.cpp:74
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "dreanazous@gmail.com"
|
184
sources/desktop-panel/po/ru.po
Normal file
184
sources/desktop-panel/po/ru.po
Normal file
@ -0,0 +1,184 @@
|
||||
# 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: https://github.com/arcan1s/pytextmonitor/issues\n"
|
||||
"POT-Creation-Date: 2014-07-09 10:38+0400\n"
|
||||
"PO-Revision-Date: 2014-07-09 10:42+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||
"Language: ru\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"
|
||||
|
||||
#: desktop-panel.cpp:325
|
||||
msgid "Widget"
|
||||
msgstr "Виджет"
|
||||
|
||||
#: desktop-panel.cpp:326
|
||||
msgid "Appearance"
|
||||
msgstr "Внешний вид"
|
||||
|
||||
#. i18n: file: appearance.ui:30
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Active desktop"
|
||||
msgstr "Активный рабочий стол"
|
||||
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
|
||||
msgid "Font"
|
||||
msgstr "Шрифт"
|
||||
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
|
||||
msgid "Font size"
|
||||
msgstr "Размер шрифта"
|
||||
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
|
||||
msgid "Font color"
|
||||
msgstr "Цвет шрифта"
|
||||
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
|
||||
msgid "Font weight"
|
||||
msgstr "Толщина шрифта"
|
||||
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
|
||||
msgid "Font style"
|
||||
msgstr "Стиль шрифта"
|
||||
|
||||
#. i18n: file: appearance.ui:336
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
|
||||
#: po/rc.cpp:21 rc.cpp:21
|
||||
msgid "Inactive desktop"
|
||||
msgstr "Неактивный рабочий стол"
|
||||
|
||||
#. i18n: file: widget.ui:41
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
|
||||
#: po/rc.cpp:39 rc.cpp:39
|
||||
msgid "Enable background"
|
||||
msgstr "Включить фон"
|
||||
|
||||
#. i18n: file: widget.ui:48
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Vertical layout"
|
||||
msgstr "Вертикальная разметка"
|
||||
|
||||
#. i18n: file: widget.ui:55
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Добавить пустое место слева/сверху виджета"
|
||||
|
||||
#. i18n: file: widget.ui:62
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Добавить пустое место справа/снизу виджета"
|
||||
|
||||
#. i18n: file: widget.ui:77
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Time interval"
|
||||
msgstr "Интервал обновления"
|
||||
|
||||
#. i18n: file: widget.ui:132
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mark)
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Mark"
|
||||
msgstr "Метка"
|
||||
|
||||
#. i18n: file: widget.ui:139
|
||||
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr "Метка, которая будет показана, если данный рабочий стол активен"
|
||||
|
||||
#. i18n: file: widget.ui:229
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Pattern"
|
||||
msgstr "Шаблон"
|
||||
|
||||
#. i18n: file: widget.ui:239
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid ""
|
||||
"$mark - show mark if the current desktop is active\n"
|
||||
"$name - desktop name\n"
|
||||
"$number - desktop number\n"
|
||||
"$total - total number of desktops"
|
||||
msgstr ""
|
||||
"$mark - показать метку, если данный рабочий стол активен\n"
|
||||
"$name - имя рабочего стола\n"
|
||||
"$number - номер рабочего стола\n"
|
||||
"$total - общее число рабочий столов"
|
||||
|
||||
#. i18n: file: widget.ui:256
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Command to change desktop"
|
||||
msgstr "Команда"
|
||||
|
||||
#. i18n: file: widget.ui:263
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr "Команда которая изменит текущий рабочий стол"
|
||||
|
||||
#: po/rc.cpp:73 rc.cpp:73
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Evgeniy Alekseev"
|
||||
|
||||
#: po/rc.cpp:74 rc.cpp:74
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "esalexeev@gmail.com"
|
||||
|
179
sources/desktop-panel/po/uk.po
Normal file
179
sources/desktop-panel/po/uk.po
Normal file
@ -0,0 +1,179 @@
|
||||
# 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: https://github.com/arcan1s/pytextmonitor/issues\n"
|
||||
"POT-Creation-Date: 2014-07-09 10:38+0400\n"
|
||||
"PO-Revision-Date: 2014-06-06 01:23+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Ukrainian <kde-ukrainian@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"
|
||||
|
||||
#: desktop-panel.cpp:325
|
||||
msgid "Widget"
|
||||
msgstr "Віджет"
|
||||
|
||||
#: desktop-panel.cpp:326
|
||||
msgid "Appearance"
|
||||
msgstr "Зовнішній вигляд"
|
||||
|
||||
#. i18n: file: appearance.ui:30
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_active)
|
||||
#: po/rc.cpp:3 rc.cpp:3
|
||||
msgid "Active desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#. i18n: file: appearance.ui:59
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontActive)
|
||||
#. i18n: file: appearance.ui:365
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontInactive)
|
||||
#: po/rc.cpp:6 po/rc.cpp:24 rc.cpp:6 rc.cpp:24
|
||||
msgid "Font"
|
||||
msgstr "Шрифт"
|
||||
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#. i18n: file: appearance.ui:105
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeActive)
|
||||
#. i18n: file: appearance.ui:411
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSizeInactive)
|
||||
#: po/rc.cpp:9 po/rc.cpp:27 rc.cpp:9 rc.cpp:27
|
||||
msgid "Font size"
|
||||
msgstr "Розмір шрифту"
|
||||
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#. i18n: file: appearance.ui:163
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorActive)
|
||||
#. i18n: file: appearance.ui:469
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontColorInactive)
|
||||
#: po/rc.cpp:12 po/rc.cpp:30 rc.cpp:12 rc.cpp:30
|
||||
msgid "Font color"
|
||||
msgstr "Колір шрифту"
|
||||
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#. i18n: file: appearance.ui:209
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightActive)
|
||||
#. i18n: file: appearance.ui:515
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontWeightInactive)
|
||||
#: po/rc.cpp:15 po/rc.cpp:33 rc.cpp:15 rc.cpp:33
|
||||
msgid "Font weight"
|
||||
msgstr "Ширина шрифту"
|
||||
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#. i18n: file: appearance.ui:270
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleActive)
|
||||
#. i18n: file: appearance.ui:576
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontStyleInactive)
|
||||
#: po/rc.cpp:18 po/rc.cpp:36 rc.cpp:18 rc.cpp:36
|
||||
msgid "Font style"
|
||||
msgstr "Стиль шрифту"
|
||||
|
||||
#. i18n: file: appearance.ui:336
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tab_inactive)
|
||||
#: po/rc.cpp:21 rc.cpp:21
|
||||
msgid "Inactive desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:41
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_background)
|
||||
#: po/rc.cpp:39 rc.cpp:39
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:48
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_layout)
|
||||
#: po/rc.cpp:42 rc.cpp:42
|
||||
msgid "Vertical layout"
|
||||
msgstr "Вертикальна розмітка"
|
||||
|
||||
#. i18n: file: widget.ui:55
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_leftStretch)
|
||||
#: po/rc.cpp:45 rc.cpp:45
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Додати порожнє місце ліворуч/вгорі віджету"
|
||||
|
||||
#. i18n: file: widget.ui:62
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_rightStretch)
|
||||
#: po/rc.cpp:48 rc.cpp:48
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Додати порожнє місце праворуч/внизу віджету"
|
||||
|
||||
#. i18n: file: widget.ui:77
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: po/rc.cpp:51 rc.cpp:51
|
||||
msgid "Time interval"
|
||||
msgstr "Інтервал оновлення"
|
||||
|
||||
#. i18n: file: widget.ui:132
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mark)
|
||||
#: po/rc.cpp:54 rc.cpp:54
|
||||
msgid "Mark"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:139
|
||||
#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_mark)
|
||||
#: po/rc.cpp:57 rc.cpp:57
|
||||
msgid "A mark which will be shown if this desktop is active"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:229
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_pattern)
|
||||
#: po/rc.cpp:60 rc.cpp:60
|
||||
msgid "Pattern"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:239
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pattern)
|
||||
#: po/rc.cpp:63 rc.cpp:63
|
||||
msgid ""
|
||||
"$mark - show mark if the current desktop is active\n"
|
||||
"$name - desktop name\n"
|
||||
"$number - desktop number\n"
|
||||
"$total - total number of desktops"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:256
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_desktopcmd)
|
||||
#: po/rc.cpp:69 rc.cpp:69
|
||||
msgid "Command to change desktop"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: widget.ui:263
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_desktopcmd)
|
||||
#: po/rc.cpp:72 rc.cpp:72
|
||||
msgid "Command which will change the current desktop"
|
||||
msgstr ""
|
||||
|
||||
#: po/rc.cpp:73 rc.cpp:73
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Slobodyan Victor"
|
||||
|
||||
#: po/rc.cpp:74 rc.cpp:74
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "sarumyan@i.ua"
|
290
sources/desktop-panel/widget.ui
Normal file
290
sources/desktop-panel/widget.ui
Normal file
@ -0,0 +1,290 @@
|
||||
<?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>480</width>
|
||||
<height>343</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>480</width>
|
||||
<height>320</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string notr="true">Configuration Window</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QScrollArea" name="scrollArea">
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>464</width>
|
||||
<height>327</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_background">
|
||||
<property name="text">
|
||||
<string>Enable background</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_layout">
|
||||
<property name="text">
|
||||
<string>Vertical layout</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_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>1000</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_mark">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_mark">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Mark</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox_mark">
|
||||
<property name="toolTip">
|
||||
<string>A mark which will be shown if this desktop is active</string>
|
||||
</property>
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">#</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">$</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">%</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">&</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">*</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">@</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">¤</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">¶</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">·</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">º</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">×</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">†</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">•</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">(current)</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_pattern">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_pattern">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Pattern</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_pattern">
|
||||
<property name="toolTip">
|
||||
<string>$mark - show mark if the current desktop is active
|
||||
$name - desktop name
|
||||
$number - desktop number
|
||||
$total - total number of desktops</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_desktopcmd">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_desktopcmd">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Command to change desktop</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_desktopcmd">
|
||||
<property name="toolTip">
|
||||
<string>Command which will change the current desktop</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="spacer_widget">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>152</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
@ -1,14 +1,17 @@
|
||||
# Configuration file for Extended Systemmonitor DataEngine
|
||||
# Uncomment needed lines
|
||||
# $kdehome/share/config/extsysmon.conf
|
||||
|
||||
# Custom command
|
||||
# Custom command, separator is '@@'
|
||||
#CUSTOM=wget -qO- http://ifconfig.me/ip
|
||||
|
||||
# Command which returns number of the current desktop
|
||||
#DESKTOPCMD=qdbus org.kde.kwin /KWin currentDesktop
|
||||
|
||||
# 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
|
||||
@ -27,3 +30,6 @@
|
||||
#PKGCMD=pacman -Qu
|
||||
# Number of null lines for commands, comma separated
|
||||
#PKGNULL=0
|
||||
|
||||
# Player name. Supported players are amarok, clementine, mpd, qmmp
|
||||
#PLAYER=amarok
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -19,6 +19,7 @@
|
||||
#define EXTSYSMON_H
|
||||
|
||||
#include <Plasma/DataEngine>
|
||||
#include <QProcess>
|
||||
|
||||
class ExtendedSysMon : public Plasma::DataEngine
|
||||
{
|
||||
@ -27,29 +28,49 @@ class ExtendedSysMon : public Plasma::DataEngine
|
||||
public:
|
||||
ExtendedSysMon(QObject *parent, const QVariantList &args);
|
||||
// update functions
|
||||
QString getCustomCmd(const QString cmd);
|
||||
float getGpu(const QString device);
|
||||
float getGpuTemp(const QString device);
|
||||
float getHddTemp(const QString device);
|
||||
QStringList getPlayerInfo(const QString playerName,
|
||||
const QString mpdAddress = 0,
|
||||
const QString mpdPort = 0);
|
||||
QStringList getPsStats();
|
||||
int getUpgradeInfo(const QString pkgCommand,
|
||||
const int pkgNull = 0);
|
||||
void getCurrentDesktop(const QString cmd);
|
||||
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);
|
||||
QStringList sources() const;
|
||||
|
||||
private slots:
|
||||
void setCurrentDesktop(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
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();
|
||||
QStringList getDesktopNames();
|
||||
void initValues();
|
||||
void readConfiguration();
|
||||
void setKeys();
|
||||
void setProcesses();
|
||||
QMap<QString, QString> updateConfiguration(const QMap<QString, QString> rawConfig);
|
||||
};
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Extended SystemMonitor DataEngine
|
||||
Comment=Adds gpu, gputemp and hddtemp to DataEngine
|
||||
Comment=Adds some additional functions to System DataEngine
|
||||
ServiceTypes=Plasma/DataEngine
|
||||
Type=Service
|
||||
Icon=utilities-system-monitor
|
||||
|
@ -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
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
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
|
@ -18,8 +18,6 @@
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #
|
||||
############################################################################
|
||||
|
||||
from util import *
|
||||
|
||||
|
||||
|
||||
class Config():
|
||||
|
@ -29,6 +29,14 @@ import config
|
||||
class ConfigDefinition:
|
||||
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
|
||||
@ -36,54 +44,69 @@ class ConfigDefinition:
|
||||
|
||||
def configAccepted(self):
|
||||
"""function to accept settings"""
|
||||
if self.debug: qDebug("[PTM] [configdef.py] [configAccepted]")
|
||||
settings = config.Config(self.parent)
|
||||
|
||||
# update local variables
|
||||
settings.set('interval', self.configpage.ui.spinBox_interval.value())
|
||||
settings.set('font_family', str(self.configpage.ui.fontComboBox.currentFont().family()))
|
||||
settings.set('font_size', self.configpage.ui.spinBox_fontSize.value())
|
||||
settings.set('font_color', str(self.configpage.ui.kcolorcombo.color().name()))
|
||||
settings.set('font_style', str(self.configpage.ui.comboBox_style.currentText()))
|
||||
settings.set('font_weight', self.configpage.ui.spinBox_weight.value())
|
||||
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('custom_time', str(self.configpage.ui.lineEdit_timeFormat.text()))
|
||||
settings.set('custom_uptime', str(self.configpage.ui.lineEdit_uptimeFormat.text()))
|
||||
settings.set('background', self.configpage['advanced'].ui.checkBox_background.checkState())
|
||||
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.ui.listWidget_tempDevice.count()):
|
||||
item.append(self.configpage.ui.listWidget_tempDevice.item(i).text())
|
||||
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.ui.listWidget_mount.count()):
|
||||
item.append(self.configpage.ui.listWidget_mount.item(i).text())
|
||||
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.ui.listWidget_hddDevice.count()):
|
||||
item.append(self.configpage.ui.listWidget_hddDevice.item(i).text())
|
||||
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('@@'))))
|
||||
settings.set('netdir', str(self.configpage.ui.lineEdit_netdir.text()))
|
||||
settings.set('netdevBool', self.configpage.ui.checkBox_netdev.checkState())
|
||||
settings.set('custom_netdev', str(self.configpage.ui.comboBox_netdev.currentText()))
|
||||
settings.set('battery_device', str(self.configpage.ui.lineEdit_batdev.text()))
|
||||
settings.set('ac_device', str(self.configpage.ui.lineEdit_acdev.text()))
|
||||
settings.set('ac_online', str(self.configpage.ui.lineEdit_acOnline.text()))
|
||||
settings.set('ac_offline', str(self.configpage.ui.lineEdit_acOffline.text()))
|
||||
settings.set('player_name', str(self.configpage.ui.comboBox_playerSelect.currentText()))
|
||||
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.ui.spinBox_tooltipNum.value())
|
||||
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.kcolorcombos[label].color().name()))
|
||||
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:
|
||||
deConfigFile.write("CUSTOM=" + str(self.configpage.ui.lineEdit_customCommand.text()) + "\n")
|
||||
deConfigFile.write("GPUDEV=" + str(self.configpage.ui.comboBox_gpudev.currentText()) + "\n")
|
||||
deConfigFile.write("HDDDEV=" + str(self.configpage.ui.comboBox_hdddev.currentText()) + "\n")
|
||||
deConfigFile.write("MPDADDRESS=" + str(self.configpage.ui.lineEdit_mpdaddress.text()) + "\n")
|
||||
deConfigFile.write("MPDPORT=" + str(self.configpage.ui.spinBox_mpdport.value()) + "\n")
|
||||
item = QStringList()
|
||||
for i in range(self.configpage.ui.listWidget_pkgCommand.count()):
|
||||
item.append(self.configpage.ui.listWidget_pkgCommand.item(i).text())
|
||||
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("DESKTOPCMD=" + str(self.configpage['dataengine'].ui.lineEdit_desktopCmd.text()) + "\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:
|
||||
@ -95,19 +118,20 @@ class ConfigDefinition:
|
||||
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
|
||||
self.parent.disconnectFromSource()
|
||||
|
||||
labelOrder = "---------------"
|
||||
labelOrder = "----------------"
|
||||
for label in self.defaults['order'].keys():
|
||||
if (self.configpage.checkboxes[self.defaults['order'][label]].checkState() > 0):
|
||||
pos = self.configpage.sliders[self.defaults['order'][label]].value() - 1
|
||||
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.lineedits[self.defaults['order'][label]].text()))
|
||||
settings.set(self.defaults['confBool'][self.defaults['order'][label]], self.configpage.checkboxes[self.defaults['order'][label]].checkState())
|
||||
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)
|
||||
|
||||
@ -117,77 +141,90 @@ class ConfigDefinition:
|
||||
|
||||
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])
|
||||
self.configpage['appearance'].ui.comboBox_style.setCurrentIndex(1)
|
||||
self.configpage['appearance'].ui.spinBox_weight.setValue(settings.get('font_weight', 400).toInt()[0])
|
||||
|
||||
self.configpage.ui.lineEdit_timeFormat.setText(str(settings.get('custom_time', '$hh:$mm')))
|
||||
self.configpage.ui.lineEdit_uptimeFormat.setText(str(settings.get('custom_uptime', '$ds,$hs,$ms')))
|
||||
self.configpage['advanced'].ui.checkBox_background.setCheckState(settings.get('background', 2).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.ui.comboBox_tempDevice.addItem(tempdev)
|
||||
self.configpage['advanced'].ui.comboBox_tempDevice.addItem(tempdev)
|
||||
except:
|
||||
pass
|
||||
self.configpage.ui.listWidget_tempDevice.clear()
|
||||
self.configpage['advanced'].ui.listWidget_tempDevice.clear()
|
||||
for item in str(settings.get('temp_device', '')).split('@@'):
|
||||
if (len(item) > 0):
|
||||
self.configpage.ui.listWidget_tempDevice.addItem(item)
|
||||
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.ui.comboBox_mount.addItem(mount)
|
||||
self.configpage['advanced'].ui.comboBox_mount.addItem(mount)
|
||||
except:
|
||||
pass
|
||||
self.configpage.ui.listWidget_mount.clear()
|
||||
self.configpage['advanced'].ui.listWidget_mount.clear()
|
||||
for item in str(settings.get('mount', '/')).split('@@'):
|
||||
self.configpage.ui.listWidget_mount.addItem(item)
|
||||
commandOut = commands.getoutput("find /dev -name '[hs]d[a-z]'")
|
||||
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.ui.comboBox_hddDevice.addItem(item)
|
||||
self.configpage['advanced'].ui.comboBox_hddDevice.addItem(item)
|
||||
except:
|
||||
pass
|
||||
self.configpage.ui.listWidget_hddDevice.clear()
|
||||
self.configpage['advanced'].ui.listWidget_hddDevice.clear()
|
||||
for item in str(settings.get('hdd', '/dev/sda')).split('@@'):
|
||||
self.configpage.ui.listWidget_hddDevice.addItem(item)
|
||||
self.configpage.ui.lineEdit_netdir.setText(str(settings.get('netdir', '/sys/class/net')))
|
||||
self.configpage.ui.checkBox_netdev.setCheckState(settings.get('netdevBool', 0).toInt()[0])
|
||||
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.ui.comboBox_netdev.addItem(item)
|
||||
index = self.configpage.ui.comboBox_netdev.findText(str(settings.get('custom_netdev', 'lo')))
|
||||
self.configpage.ui.comboBox_netdev.setCurrentIndex(index)
|
||||
self.configpage.ui.lineEdit_batdev.setText(str(settings.get('battery_device', '/sys/class/power_supply/BAT0/capacity')))
|
||||
self.configpage.ui.lineEdit_acdev.setText(str(settings.get('ac_device', '/sys/class/power_supply/AC/online')))
|
||||
self.configpage.ui.lineEdit_acOnline.setText(str(settings.get('ac_online', '(*)')))
|
||||
self.configpage.ui.lineEdit_acOffline.setText(str(settings.get('ac_offline', '( )')))
|
||||
index = self.configpage.ui.comboBox_playerSelect.findText(str(settings.get('player_name', "amarok")))
|
||||
self.configpage.ui.comboBox_playerSelect.setCurrentIndex(index)
|
||||
self.configpage['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.ui.spinBox_tooltipNum.setValue(settings.get('tooltip_num', 100).toInt()[0])
|
||||
self.configpage.ui.kcolorcombo_cpu.setColor(QColor(str(settings.get('cpu_color', '#ff0000'))))
|
||||
self.configpage.ui.kcolorcombo_cpuclock.setColor(QColor(str(settings.get('cpuclock_color', '#00ff00'))))
|
||||
self.configpage.ui.kcolorcombo_mem.setColor(QColor(str(settings.get('mem_color', '#0000ff'))))
|
||||
self.configpage.ui.kcolorcombo_swap.setColor(QColor(str(settings.get('swap_color', '#ffff00'))))
|
||||
self.configpage.ui.kcolorcombo_down.setColor(QColor(str(settings.get('down_color', '#00ffff'))))
|
||||
self.configpage.ui.kcolorcombo_up.setColor(QColor(str(settings.get('up_color', '#ff00ff'))))
|
||||
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',
|
||||
'MPDADDRESS':'localhost', 'MPDPORT':'6600', 'PKGCMD':'pacman -Qu', 'PKGNULL':'0'}
|
||||
deSettings = {'CUSTOM':'wget -qO- http://ifconfig.me/ip', 'DESKTOPCMD':'qdbus org.kde.kwin /KWin currentDesktop',
|
||||
'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:
|
||||
@ -196,41 +233,56 @@ class ConfigDefinition:
|
||||
deSettings[line.split('=')[0]] = line.split('=')[1][:-1]
|
||||
except:
|
||||
pass
|
||||
self.configpage.ui.lineEdit_customCommand.setText(deSettings['CUSTOM'])
|
||||
index = self.configpage.ui.comboBox_gpudev.findText(deSettings['GPUDEV'])
|
||||
self.configpage.ui.comboBox_gpudev.setCurrentIndex(index)
|
||||
self.configpage.ui.comboBox_hdddev.addItem("all")
|
||||
commandOut = commands.getoutput("find /dev -name '[hs]d[a-z]'")
|
||||
for item in 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.lineEdit_desktopCmd.setText(deSettings['DESKTOPCMD'])
|
||||
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.ui.comboBox_hdddev.addItem(item)
|
||||
self.configpage['dataengine'].ui.comboBox_hdddev.addItem(item)
|
||||
except:
|
||||
pass
|
||||
index = self.configpage.ui.comboBox_hdddev.findText(deSettings['HDDDEV'])
|
||||
self.configpage.ui.comboBox_hdddev.setCurrentIndex(index)
|
||||
self.configpage.ui.lineEdit_mpdaddress.setText(deSettings['MPDADDRESS'])
|
||||
self.configpage.ui.spinBox_mpdport.setValue(int(deSettings['MPDPORT']))
|
||||
self.configpage.ui.spinBox_mpdport.setValue(int(deSettings['MPDPORT']))
|
||||
self.configpage.ui.listWidget_pkgCommand.clear()
|
||||
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.ui.listWidget_pkgCommand.addItem(deSettings['PKGCMD'].split(',')[i] + ':' + num)
|
||||
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.checkboxes[self.defaults['order'][label]].setCheckState(bool)
|
||||
self.configpage['widget'].checkboxes[self.defaults['order'][label]].setCheckState(bool)
|
||||
if (bool > 0):
|
||||
self.configpage.sliders[self.defaults['order'][label]].setValue(labelOrder.find(label) + 1)
|
||||
self.configpage.lineedits[self.defaults['order'][label]].setText(str(settings.get(self.defaults['confFormat'][self.defaults['order'][label]],
|
||||
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)
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.QtGui import *
|
||||
from PyKDE4.plasma import Plasma
|
||||
|
||||
import datetime
|
||||
|
||||
@ -31,11 +32,23 @@ timeLetters = ['dddd', 'ddd', 'dd', 'd', \
|
||||
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, bools=None, dataEngines=None, interval=1000, names=None):
|
||||
"""function to initializate engine"""
|
||||
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):
|
||||
@ -46,6 +59,12 @@ class DataEngine:
|
||||
dataEngines['system'].connectSource("cpu/cpu" + str(core) + "/clock", self.parent, interval)
|
||||
if (bools['custom'] > 0):
|
||||
dataEngines['ext'].connectSource("custom", self.parent, interval)
|
||||
if (bools['desktop'] > 0):
|
||||
dataEngines['ext'].connectSource("desktop", 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):
|
||||
@ -53,6 +72,7 @@ class DataEngine:
|
||||
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)
|
||||
@ -65,7 +85,7 @@ class DataEngine:
|
||||
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, interval)
|
||||
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):
|
||||
@ -84,6 +104,10 @@ class DataEngine:
|
||||
|
||||
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']
|
||||
@ -113,7 +137,23 @@ class DataEngine:
|
||||
updatedData['value'] = value
|
||||
elif (sourceName == "custom"):
|
||||
updatedData['name'] = "custom"
|
||||
value = str(data[QString(u'custom')].toUtf8()).decode("utf-8")
|
||||
updatedData['value'] = {}
|
||||
for singleData in data.keys():
|
||||
updatedData['value'][str(singleData.toLower())] = str(data[singleData].toUtf8()).decode("utf-8")
|
||||
elif (sourceName == "desktop"):
|
||||
updatedData['name'] = "desktop"
|
||||
updatedData['value'] = {}
|
||||
updatedData['value']['current'] = data[QString(u'currentNumber')]
|
||||
updatedData['value']['names'] = [str(desktop.toUtf8()).decode("utf-8") for desktop in data[QString(u'list')].split(';;')]
|
||||
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"
|
||||
@ -128,6 +168,11 @@ class DataEngine:
|
||||
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])
|
||||
@ -182,24 +227,11 @@ class DataEngine:
|
||||
elif (sourceName == "player"):
|
||||
updatedData['name'] = "player"
|
||||
updatedData['value'] = {}
|
||||
if (adv['player'] == "amarok"):
|
||||
updatedData['value']['album'] = str(data[QString(u'amarok_album')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['artist'] = str(data[QString(u'amarok_artist')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['progress'] = str(data[QString(u'amarok_progress')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['time'] = str(data[QString(u'amarok_duration')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['title'] = str(data[QString(u'amarok_title')].toUtf8()).decode("utf-8")
|
||||
elif (adv['player'] == "mpd"):
|
||||
updatedData['value']['album'] = str(data[QString(u'mpd_album')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['artist'] = str(data[QString(u'mpd_artist')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['progress'] = str(data[QString(u'mpd_progress')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['time'] = str(data[QString(u'mpd_duration')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['title'] = str(data[QString(u'mpd_title')].toUtf8()).decode("utf-8")
|
||||
elif (adv['player'] == "qmmp"):
|
||||
updatedData['value']['album'] = str(data[QString(u'qmmp_album')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['artist'] = str(data[QString(u'qmmp_artist')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['progress'] = str(data[QString(u'qmmp_progress')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['time'] = str(data[QString(u'qmmp_duration')].toUtf8()).decode("utf-8")
|
||||
updatedData['value']['title'] = str(data[QString(u'qmmp_title')].toUtf8()).decode("utf-8")
|
||||
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'] = {}
|
||||
@ -262,11 +294,16 @@ class DataEngine:
|
||||
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"):
|
||||
@ -281,6 +318,12 @@ class DataEngine:
|
||||
dataEngines['system'].disconnectSource("cpu/cpu" + str(item) + "/clock", self.parent)
|
||||
elif (name == "custom"):
|
||||
dataEngines['ext'].disconnectSource("custom", self.parent)
|
||||
elif (name == "desktop"):
|
||||
dataEngines['ext'].disconnectSource("desktop", 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"):
|
||||
|
94
sources/ptm/contents/code/deconfig.py
Normal file
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,44 +24,69 @@ from PyKDE4.kdeui import *
|
||||
from PyKDE4.kio import *
|
||||
from PyKDE4 import plasmascript
|
||||
from PyKDE4.plasma import Plasma
|
||||
import commands, os, shutil
|
||||
import commands, os
|
||||
|
||||
import advanced
|
||||
import appearance
|
||||
import configdef
|
||||
import configwindow
|
||||
import dataengine
|
||||
import deconfig
|
||||
import ptmnotify
|
||||
import reinit
|
||||
import tooltip
|
||||
from util import *
|
||||
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):
|
||||
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 (event.button() == Qt.LeftButton):
|
||||
self.notify.init(self.name)
|
||||
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())
|
||||
if self.debug: qDebug("[PTM] [main.py] [init]")
|
||||
self.setupVar()
|
||||
|
||||
self.dataengine = dataengine.DataEngine(self)
|
||||
@ -69,41 +94,106 @@ class pyTextWidget(plasmascript.Applet):
|
||||
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.theme = Plasma.Svg(self)
|
||||
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.ptm['defaults'])
|
||||
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('')
|
||||
@ -117,37 +207,35 @@ class pyTextWidget(plasmascript.Applet):
|
||||
Plasma.ToolTipManager.self().setContent(self.applet, self.tooltip)
|
||||
|
||||
|
||||
def mouseDoubleClickEvent(self, event):
|
||||
"""function to doubleclick event"""
|
||||
os.system("ksysguard &")
|
||||
|
||||
|
||||
def setupVar(self):
|
||||
"""function to setup variables"""
|
||||
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', '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'}
|
||||
'cpuclock':'cpuclockBool', 'custom':'customBool', 'desktop':'desktopBool',
|
||||
'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', 'gpu':'gpuFormat',
|
||||
'gputemp':'gputempFormat', 'hdd':'hddFormat', 'hddtemp':'hddtempFormat',
|
||||
'mem':'memFormat', 'net':'netFormat', 'pkg':'pkgFormat',
|
||||
'player':'playerFormat', 'ps':'psFormat', 'swap':'swapFormat',
|
||||
'cpuclock':'cpuclockFormat', 'custom':'customFormat', 'desktop':'desktopFormat',
|
||||
'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,
|
||||
'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}
|
||||
'desktop':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]', 'gpu':'[gpu: $gpu%]',
|
||||
'cpuclock':'[mhz: $cpucl]', 'custom':'[$custom]', 'desktop':'[$number/$total: $name]',
|
||||
'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]',
|
||||
@ -155,13 +243,15 @@ class pyTextWidget(plasmascript.Applet):
|
||||
'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'}
|
||||
'c':'hddtemp', 'd':'player', 'e':'time', 'f':'custom', 'g':'ps', 'h':'pkg', 'i':'disk',
|
||||
'j':'desktop'}
|
||||
# disk devices for r/w speed
|
||||
self.ptm['defaults']['disk'] = []
|
||||
# labels
|
||||
self.ptm['labels'] = {}
|
||||
self.ptm['layout'] = QGraphicsLinearLayout(Qt.Horizontal, self.applet)
|
||||
self.ptm['layout'].setContentsMargins(1, 1, 1, 1)
|
||||
# names
|
||||
self.ptm['names'] = {}
|
||||
self.ptm['names']['disk'] = []
|
||||
self.ptm['names']['hdd'] = []
|
||||
self.ptm['names']['hddtemp'] = []
|
||||
self.ptm['names']['net'] = ""
|
||||
@ -177,10 +267,15 @@ class pyTextWidget(plasmascript.Applet):
|
||||
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']['desktop'] = {'names':[], 'current':1}
|
||||
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}
|
||||
@ -198,27 +293,36 @@ class pyTextWidget(plasmascript.Applet):
|
||||
|
||||
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))
|
||||
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.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']['desktop'] > 0):
|
||||
self.desktopText()
|
||||
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):
|
||||
@ -234,8 +338,15 @@ class pyTextWidget(plasmascript.Applet):
|
||||
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))
|
||||
@ -247,7 +358,11 @@ class pyTextWidget(plasmascript.Applet):
|
||||
@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
|
||||
@ -283,6 +398,7 @@ class pyTextWidget(plasmascript.Applet):
|
||||
# update labels
|
||||
def batText(self):
|
||||
"""function to set battery text"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [batText]")
|
||||
line = self.ptm['vars']['formats']['bat']
|
||||
if (line.split('$bat')[0] != line):
|
||||
try:
|
||||
@ -309,6 +425,7 @@ class pyTextWidget(plasmascript.Applet):
|
||||
|
||||
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()
|
||||
@ -326,6 +443,7 @@ class pyTextWidget(plasmascript.Applet):
|
||||
|
||||
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()
|
||||
@ -341,40 +459,81 @@ class pyTextWidget(plasmascript.Applet):
|
||||
self.setText("cpuclock", text)
|
||||
|
||||
|
||||
def desktopText(self):
|
||||
"""function to update desktop text"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [desktopText]")
|
||||
line = self.ptm['vars']['formats']['desktop']
|
||||
if (line.split('$name')[0] != line):
|
||||
line = line.split('$name')[0] + \
|
||||
self.ptm['values']['desktop']['names'][self.ptm['values']['desktop']['current']-1] + \
|
||||
line.split('$name')[1]
|
||||
if (line.split('$number')[0] != line):
|
||||
line = line.split('$number')[0] + \
|
||||
str(self.ptm['values']['desktop']['current']) + \
|
||||
line.split('$number')[1]
|
||||
if (line.split('$total')[0] != line):
|
||||
line = line.split('$total')[0] + \
|
||||
str(len(self.ptm['values']['desktop']['names'])) + \
|
||||
line.split('$total')[1]
|
||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||
self.setText("desktop", 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]
|
||||
line = line.split('$hdd' + str(i))[0] + hdd + line.split('$hdd' + str(i))[1]
|
||||
if (line.split('$hddmb' + str(i))[0] != line):
|
||||
hdd = "%i" % (self.ptm['values']['hddmb'][self.ptm['names']['hdd'][i]] / 1024.0)
|
||||
line = line.split('$hddmb' + str(i))[0] +\
|
||||
str(int(self.ptm['values']['hddmb'][self.ptm['names']['hdd'][i]] / 1024.0)) +\
|
||||
line.split('$hddmb' + str(i))[1]
|
||||
line = line.split('$hddmb' + str(i))[0] + hdd + line.split('$hddmb' + str(i))[1]
|
||||
if (line.split('$hddgb' + str(i))[0] != line):
|
||||
hdd = "%4.1f" % (self.ptm['values']['hddmb'][self.ptm['names']['hdd'][i]] / (1024.0 * 1024.0))
|
||||
line = line.split('$hddgb' + str(i))[0] +\
|
||||
hdd +\
|
||||
line.split('$hddgb' + str(i))[1]
|
||||
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] +\
|
||||
str(self.ptm['values']['hddtemp'][self.ptm['names']['hddtemp'][i]]) +\
|
||||
getTemp(str(self.ptm['values']['hddtemp'][self.ptm['names']['hddtemp'][i]]), self.ptm['vars']['adv']['tempUnits']) +\
|
||||
line.split('$hddtemp' + str(i))[1]
|
||||
text = self.ptm['vars']['app']['format'][0] + line + self.ptm['vars']['app']['format'][1]
|
||||
self.setText("hddtemp", text)
|
||||
@ -382,7 +541,14 @@ class pyTextWidget(plasmascript.Applet):
|
||||
|
||||
def memText(self):
|
||||
"""function to set mem 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]
|
||||
@ -402,6 +568,7 @@ class pyTextWidget(plasmascript.Applet):
|
||||
|
||||
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]
|
||||
@ -417,7 +584,14 @@ class pyTextWidget(plasmascript.Applet):
|
||||
|
||||
def swapText(self):
|
||||
"""function to set swap text"""
|
||||
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]
|
||||
@ -437,23 +611,29 @@ class pyTextWidget(plasmascript.Applet):
|
||||
|
||||
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] +\
|
||||
str(self.ptm['values']['temp'][self.ptm['names']['temp'][i]]) +\
|
||||
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):
|
||||
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)
|
||||
self.ptm['labels'][name] = CustomPlasmaLabel(self.applet, name, enablePopup)
|
||||
self.ptm['layout'].addItem(self.ptm['labels'][name])
|
||||
self.setText(name, text)
|
||||
else:
|
||||
@ -463,40 +643,69 @@ class pyTextWidget(plasmascript.Applet):
|
||||
|
||||
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 ['hdd', 'hddtemp', 'temp']:
|
||||
for item in ['hddtemp', 'temp']:
|
||||
for value in self.ptm['names'][item]:
|
||||
self.ptm['values'][item][value] = 0.0
|
||||
if (item == "hdd"):
|
||||
self.ptm['values']['hddmb'][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(),
|
||||
'hdd':self.ptm['values']['hdd'].keys(), 'net':self.ptm['names']['net'],
|
||||
'temp':self.ptm['values']['temp'].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()
|
||||
if (self.ptm['vars']['adv']['netdevBool'] == 0):
|
||||
self.ptm['names']['net'] = self.setNetdev()
|
||||
# add stretch
|
||||
if (self.ptm['vars']['adv']['rightStretch'] == 2):
|
||||
self.ptm['layout'].addStretch(1)
|
||||
self.updateNetdev()
|
||||
self.resize(10, 10)
|
||||
|
||||
# create dataengines
|
||||
@ -504,47 +713,79 @@ class pyTextWidget(plasmascript.Applet):
|
||||
self.connectToEngine()
|
||||
|
||||
self.timer.setInterval(self.ptm['vars']['app']['interval'])
|
||||
self.timer.start()
|
||||
self.startPolling()
|
||||
|
||||
|
||||
def setTransparentBackground(self, hasBackground=2):
|
||||
"""function to set background to the widget"""
|
||||
if self.debug: qDebug("[PTM] [main.py] [setTransparentBackground]")
|
||||
if self.debug: qDebug("[PTM] [main.py] [setTransparentBackground] : Run function with hasBackground '%s'" %(hasBackground))
|
||||
if (hasBackground == 2):
|
||||
self.theme.setImagePath("widgets/background")
|
||||
self.setBackgroundHints(Plasma.Applet.DefaultBackground)
|
||||
else:
|
||||
self.theme.setImagePath("")
|
||||
self.setBackgroundHints(Plasma.Applet.NoBackground)
|
||||
|
||||
|
||||
|
||||
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:
|
||||
if True:
|
||||
try:
|
||||
with open(netdir + '/' + str(device) + '/operstate', 'r') as stateFile:
|
||||
if (stateFile.readline() == "up\n"):
|
||||
netdev = str(device)
|
||||
#except:
|
||||
#pass
|
||||
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"):
|
||||
if (line.split('$custom')[0] != line):
|
||||
line = line.split('$custom')[0] + text + line.split('$custom')[1]
|
||||
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] + text + line.split('$gputemp')[1]
|
||||
line = line.split('$gputemp')[0] + getTemp(text, self.ptm['vars']['adv']['tempUnits']) + line.split('$gputemp')[1]
|
||||
elif (name == "pkg"):
|
||||
for item in text.keys():
|
||||
if (line.split('$' + item)[0] != line):
|
||||
line = line.split('$' + item)[0] + text[item] + line.split('$' + item)[1]
|
||||
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]
|
||||
@ -580,6 +821,7 @@ class pyTextWidget(plasmascript.Applet):
|
||||
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,16 +27,28 @@ import commands
|
||||
class PTMNotify:
|
||||
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
|
||||
|
||||
|
||||
def init(self, name=None):
|
||||
"""function to init notification"""
|
||||
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]);
|
||||
@ -45,6 +58,8 @@ 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 == "battery"):
|
||||
try:
|
||||
@ -131,6 +146,8 @@ class PTMNotify:
|
||||
title = "N\\A"
|
||||
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):
|
||||
@ -141,6 +158,10 @@ class PTMNotify:
|
||||
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 (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"):
|
||||
@ -181,11 +202,14 @@ class PTMNotify:
|
||||
except:
|
||||
text = "Something wrong"
|
||||
content = [type, text]
|
||||
if self.debug: qDebug("[PTM] [ptmnotify.py] [createText] : Returns '%s'" %(content))
|
||||
return content
|
||||
|
||||
|
||||
def initText(self, name):
|
||||
"""function to send text"""
|
||||
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"):
|
||||
@ -194,6 +218,10 @@ class PTMNotify:
|
||||
return self.createText("processor")
|
||||
elif (name == "custom"):
|
||||
return self.createText("system")
|
||||
elif (name == "desktop"):
|
||||
return self.createText("system")
|
||||
elif (name == "disk"):
|
||||
return self.createText("disk")
|
||||
elif (name == "gpu"):
|
||||
return self.createText("graphical")
|
||||
elif (name == "gputemp"):
|
||||
|
@ -26,6 +26,14 @@ import config
|
||||
class Reinit():
|
||||
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()
|
||||
@ -33,6 +41,7 @@ class Reinit():
|
||||
|
||||
def reinit(self):
|
||||
"""function to reinitializate widget"""
|
||||
if self.debug: qDebug("[PTM] [reinit.py] [reinit]")
|
||||
settings = config.Config(self.parent)
|
||||
ptmVars = {}
|
||||
|
||||
@ -40,12 +49,18 @@ class Reinit():
|
||||
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']['background'] = settings.get('background', 2).toInt()[0]
|
||||
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']['player'] = str(settings.get('player_name', "amarok"))
|
||||
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]
|
||||
|
||||
ptmVars['app'] = {}
|
||||
ptmVars['app']['format'] = ["<pre><p align=\"center\"><span style=\" font-family:'" + str(settings.get('font_family', 'Terminus')) +\
|
||||
@ -70,15 +85,15 @@ class Reinit():
|
||||
ptmVars['bools'][label] = settings.get(self.defaults['confBool'][label], self.defaults['bool'][label]).toInt()[0]
|
||||
|
||||
ptmNames = {}
|
||||
ptmNames['disk'] = str(settings.get('disk', 'disk/sda_(8:0)')).split('@@')
|
||||
ptmNames['hdd'] = str(settings.get('mount', '/')).split('@@')
|
||||
ptmNames['hddtemp'] = str(settings.get('hdd', '/dev/sda')).split('@@')
|
||||
if (ptmVars['adv']['netdevBool'] > 0):
|
||||
ptmNames['net'] = str(settings.get('custom_netdev', 'lo'))
|
||||
else:
|
||||
ptmNames['net'] = ""
|
||||
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.setTransparentBackground(ptmVars['adv']['background'])
|
||||
self.parent.createLayout(ptmVars['adv']['layout'], ptmVars['adv']['leftStretch'])
|
||||
ptmVars['formats'] = {}
|
||||
ptmVars['tooltip']['required'] = []
|
||||
for order in ptmVars['app']['order']:
|
||||
@ -86,11 +101,12 @@ class Reinit():
|
||||
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)
|
||||
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)
|
||||
|
@ -25,11 +25,20 @@ 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']
|
||||
|
44
sources/ptm/contents/code/tooltipconfig.py
Normal file
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)
|
@ -24,18 +24,23 @@ from PyQt4 import uic
|
||||
|
||||
|
||||
|
||||
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.kcolorcombos = {'cpu':self.ui.kcolorcombo_cpu,
|
||||
'cpuclock':self.ui.kcolorcombo_cpuclock, 'down':self.ui.kcolorcombo_down,
|
||||
'mem':self.ui.kcolorcombo_mem, 'swap':self.ui.kcolorcombo_swap,
|
||||
'up':self.ui.kcolorcombo_up}
|
||||
self.checkboxes = {'bat':self.ui.checkBox_bat, 'cpu':self.ui.checkBox_cpu,
|
||||
'cpuclock':self.ui.checkBox_cpuclock, 'custom':self.ui.checkBox_custom,
|
||||
'desktop':self.ui.checkBox_desktop, '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,
|
||||
@ -45,6 +50,7 @@ class ConfigWindow(QWidget):
|
||||
'time':self.ui.checkBox_time}
|
||||
self.lineedits = {'bat':self.ui.lineEdit_bat, 'cpu':self.ui.lineEdit_cpu,
|
||||
'cpuclock':self.ui.lineEdit_cpuclock, 'custom':self.ui.lineEdit_custom,
|
||||
'desktop':self.ui.lineEdit_desktop, '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,
|
||||
@ -54,6 +60,7 @@ class ConfigWindow(QWidget):
|
||||
'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,
|
||||
'desktop':self.ui.slider_desktop, '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,
|
||||
@ -62,91 +69,15 @@ class ConfigWindow(QWidget):
|
||||
'player':self.ui.slider_player, 'ps':self.ui.slider_ps,
|
||||
'time':self.ui.slider_time}
|
||||
|
||||
QObject.connect(self.ui.checkBox_netdev, SIGNAL("stateChanged(int)"), self.setNetdevEnabled)
|
||||
QObject.connect(self.ui.pushButton_hddDevice, SIGNAL("clicked()"), self.addHddDevice)
|
||||
QObject.connect(self.ui.pushButton_mount, SIGNAL("clicked()"), self.addMount)
|
||||
QObject.connect(self.ui.pushButton_tempDevice, SIGNAL("clicked()"), self.addTempDevice)
|
||||
QObject.connect(self.ui.pushButton_pkgCommand, SIGNAL("clicked()"), self.addPkgCommand)
|
||||
QObject.connect(self.ui.listWidget_hddDevice, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_hddDevice.openPersistentEditor)
|
||||
QObject.connect(self.ui.listWidget_mount, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_mount.openPersistentEditor)
|
||||
QObject.connect(self.ui.listWidget_tempDevice, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_tempDevice.openPersistentEditor)
|
||||
QObject.connect(self.ui.listWidget_pkgCommand, SIGNAL("itemActivated(QListWidgetItem*)"), self.ui.listWidget_pkgCommand.openPersistentEditor)
|
||||
QObject.connect(self.ui.comboBox_pkgCommand, SIGNAL("currentIndexChanged(int)"), self.updatePkgNullValue)
|
||||
QObject.connect(self.ui.comboBox_pkgCommand, SIGNAL("editTextChanged(QString)"), self.updatePkgNullValue)
|
||||
for item in self.sliders.values():
|
||||
QObject.connect(item, SIGNAL("valueChanged(int)"), self.setSlider)
|
||||
for item in self.checkboxes.values():
|
||||
QObject.connect(item, SIGNAL("stateChanged(int)"), self.setStatus)
|
||||
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
"""delete events"""
|
||||
if (event.key() == Qt.Key_Delete):
|
||||
if (self.ui.listWidget_hddDevice.hasFocus() and
|
||||
(self.ui.listWidget_hddDevice.currentRow() > -1)):
|
||||
self.ui.listWidget_hddDevice.takeItem(self.ui.listWidget_hddDevice.currentRow())
|
||||
elif (self.ui.listWidget_mount.hasFocus() and
|
||||
(self.ui.listWidget_mount.currentRow() > -1)):
|
||||
self.ui.listWidget_mount.takeItem(self.ui.listWidget_mount.currentRow())
|
||||
elif (self.ui.listWidget_tempDevice.hasFocus() and
|
||||
(self.ui.listWidget_tempDevice.currentRow() > -1)):
|
||||
self.ui.listWidget_tempDevice.takeItem(self.ui.listWidget_tempDevice.currentRow())
|
||||
elif (self.ui.listWidget_pkgCommand.hasFocus() and
|
||||
(self.ui.listWidget_pkgCommand.currentRow() > -1)):
|
||||
self.ui.listWidget_pkgCommand.takeItem(self.ui.listWidget_pkgCommand.currentRow())
|
||||
|
||||
|
||||
def addHddDevice(self):
|
||||
"""function to add mount points"""
|
||||
self.ui.listWidget_hddDevice.clearSelection()
|
||||
self.ui.listWidget_hddDevice.addItem(self.ui.comboBox_hddDevice.currentText())
|
||||
|
||||
|
||||
def addMount(self):
|
||||
"""function to add mount points"""
|
||||
self.ui.listWidget_mount.clearSelection()
|
||||
self.ui.listWidget_mount.addItem(self.ui.comboBox_mount.currentText())
|
||||
|
||||
|
||||
def addTempDevice(self):
|
||||
"""function to add temperature device"""
|
||||
self.ui.listWidget_tempDevice.clearSelection()
|
||||
self.ui.listWidget_tempDevice.addItem(self.ui.comboBox_tempDevice.currentText())
|
||||
|
||||
|
||||
def addPkgCommand(self):
|
||||
"""function to add package manager command"""
|
||||
self.ui.listWidget_pkgCommand.clearSelection()
|
||||
self.ui.listWidget_pkgCommand.addItem(self.ui.comboBox_pkgCommand.currentText() +\
|
||||
QString(":") + QString.number(self.ui.spinBox_pkgCommandNum.value()))
|
||||
|
||||
|
||||
def updatePkgNullValue(self):
|
||||
"""function to set default values to PKGNULL spinbox"""
|
||||
if (self.ui.comboBox_pkgCommand.currentText().contains(QString("pacman -Qu"))):
|
||||
self.ui.spinBox_pkgCommandNum.setValue(0)
|
||||
elif (self.ui.comboBox_pkgCommand.currentText().contains(QString("apt-show-versions -u -b"))):
|
||||
self.ui.spinBox_pkgCommandNum.setValue(0)
|
||||
elif (self.ui.comboBox_pkgCommand.currentText().contains(QString("aptitude search '~U'"))):
|
||||
self.ui.spinBox_pkgCommandNum.setValue(0)
|
||||
elif (self.ui.comboBox_pkgCommand.currentText().contains(QString("yum list updates"))):
|
||||
self.ui.spinBox_pkgCommandNum.setValue(3)
|
||||
elif (self.ui.comboBox_pkgCommand.currentText().contains(QString("pkg_version -I -l '<'"))):
|
||||
self.ui.spinBox_pkgCommandNum.setValue(0)
|
||||
elif (self.ui.comboBox_pkgCommand.currentText().contains(QString("urpmq --auto-select"))):
|
||||
self.ui.spinBox_pkgCommandNum.setValue(0)
|
||||
|
||||
|
||||
def setNetdevEnabled(self):
|
||||
"""function to set enabled netdev"""
|
||||
if (self.ui.checkBox_netdev.checkState() == 0):
|
||||
self.ui.comboBox_netdev.setDisabled(True)
|
||||
else:
|
||||
self.ui.comboBox_netdev.setEnabled(True)
|
||||
|
||||
|
||||
def setSlider(self):
|
||||
"""function to set sliders"""
|
||||
if self.debug: qDebug("[PTM] [widget.py] [setSlider]")
|
||||
if (self.sender().isEnabled() == True):
|
||||
second_slider = self.sender()
|
||||
order = []
|
||||
@ -165,6 +96,7 @@ class ConfigWindow(QWidget):
|
||||
|
||||
def setStatus(self):
|
||||
"""function to enable label"""
|
||||
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)
|
653
sources/ptm/contents/ui/advanced.ui
Normal file
653
sources/ptm/contents/ui/advanced.ui
Normal file
@ -0,0 +1,653 @@
|
||||
<?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>848</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_background">
|
||||
<property name="text">
|
||||
<string>Enable background</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<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_background</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
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>
|
File diff suppressed because it is too large
Load Diff
521
sources/ptm/contents/ui/deconfig.ui
Normal file
521
sources/ptm/contents/ui/deconfig.ui
Normal file
@ -0,0 +1,521 @@
|
||||
<?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="2" 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="3" 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="4" 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="5" 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="6" 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="7" 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="8" 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="9" 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>
|
||||
<item row="1" column="0">
|
||||
<layout class="QHBoxLayout" name="layout_desktopCmd">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_desktopCmd">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Desktop check cmd</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_desktopCmd">
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>scrollArea_dattaengine</tabstop>
|
||||
<tabstop>lineEdit_customCommand</tabstop>
|
||||
<tabstop>pushButton_customCommand</tabstop>
|
||||
<tabstop>listWidget_customCommand</tabstop>
|
||||
<tabstop>lineEdit_desktopCmd</tabstop>
|
||||
<tabstop>comboBox_gpudev</tabstop>
|
||||
<tabstop>comboBox_hdddev</tabstop>
|
||||
<tabstop>lineEdit_hddtempCmd</tabstop>
|
||||
<tabstop>lineEdit_mpdaddress</tabstop>
|
||||
<tabstop>spinBox_mpdport</tabstop>
|
||||
<tabstop>comboBox_pkgCommand</tabstop>
|
||||
<tabstop>spinBox_pkgCommandNum</tabstop>
|
||||
<tabstop>pushButton_pkgCommand</tabstop>
|
||||
<tabstop>listWidget_pkgCommand</tabstop>
|
||||
<tabstop>comboBox_playerSelect</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
395
sources/ptm/contents/ui/tooltipconfig.ui
Normal file
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>
|
1293
sources/ptm/contents/ui/widget.ui
Normal file
1293
sources/ptm/contents/ui/widget.ui
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,14 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Py Text Monitor
|
||||
ServiceTypes=Plasma/Applet
|
||||
Comment=A minimalistic Plasmoid script written on Python2
|
||||
Comment[en]=A minimalistic Plasmoid script written on Python2
|
||||
Comment[es]=Un plasmoide minimalista escrito en Python2
|
||||
Comment[es]=Un script Plasmoïde minimaliste écrit sur Python2
|
||||
Comment[pt_BR]=Um script Plasmoid escrito em Python2
|
||||
Comment[ru]=Минималистичный плазмоид скрипт, написанный на Python2
|
||||
Comment[uk]=Мінімалістичний плазмоїд, що написаний на Python2
|
||||
X-KDE-ServiceTypes=Plasma/Applet
|
||||
Type=Service
|
||||
Icon=utilities-system-monitor
|
||||
|
||||
@ -13,7 +20,7 @@ X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis
|
||||
X-KDE-PluginInfo-Email=esalexeev@gmail.com
|
||||
X-KDE-PluginInfo-Name=pytextmonitor
|
||||
X-KDE-PluginInfo-Version=@PROJECT_VERSION@
|
||||
X-KDE-PluginInfo-Website=http://kde-look.org/
|
||||
X-KDE-PluginInfo-Website=http://arcanis.name/projects/pytextmonitor/
|
||||
X-KDE-PluginInfo-Category=System Information
|
||||
X-KDE-PluginInfo-Depends=
|
||||
X-KDE-PluginInfo-License=GPLv3
|
||||
|
@ -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"
|
1231
sources/ptm/po/en.po
1231
sources/ptm/po/en.po
File diff suppressed because it is too large
Load Diff
618
sources/ptm/po/es.po
Normal file
618
sources/ptm/po/es.po
Normal file
@ -0,0 +1,618 @@
|
||||
# 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-07-09 13:13+0400\n"
|
||||
"PO-Revision-Date: 2014-06-05 10:21+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Spanish <kde-spanish@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:277
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: code/configdef.py:279
|
||||
msgid "Advanced"
|
||||
msgstr "Avanzado"
|
||||
|
||||
#: code/configdef.py:281
|
||||
msgid "Tooltip"
|
||||
msgstr "Ventana emergente"
|
||||
|
||||
#: code/configdef.py:283
|
||||
msgid "Appearance"
|
||||
msgstr "Apariencia"
|
||||
|
||||
#: code/configdef.py:285
|
||||
msgid "DataEngine"
|
||||
msgstr "DataEngine"
|
||||
|
||||
#: code/main.py:115
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Ejecutar ksysguard"
|
||||
|
||||
#: code/main.py:117
|
||||
msgid "Show README"
|
||||
msgstr "Mostrar el README"
|
||||
|
||||
#: code/main.py:119
|
||||
msgid "Update text"
|
||||
msgstr "Actualizar texto"
|
||||
|
||||
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:203 rc.cpp:230
|
||||
msgid "Form"
|
||||
msgstr "Formulario"
|
||||
|
||||
#: rc.cpp:6
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:9
|
||||
msgid "Vertical layout"
|
||||
msgstr "Orientación vertical"
|
||||
|
||||
#: rc.cpp:12
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Habilitar ventana emergente al hacer clic"
|
||||
|
||||
#: rc.cpp:15
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Añadir extensión a la izquierda/superior de la distribución"
|
||||
|
||||
#: rc.cpp:18
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Añadir extensión a la derecha/inferior de la distribución"
|
||||
|
||||
#: rc.cpp:21
|
||||
msgid "Custom time format"
|
||||
msgstr "Formato personalizado para la hora"
|
||||
|
||||
#: rc.cpp:24
|
||||
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:42
|
||||
msgid "Custom uptime format"
|
||||
msgstr "Formato personalizado para el tiempo de actividad del sistema"
|
||||
|
||||
#: rc.cpp:45
|
||||
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:53
|
||||
msgid "Temperature units"
|
||||
msgstr "Unidades de temperatura"
|
||||
|
||||
#: rc.cpp:56
|
||||
msgid "Temperature devices"
|
||||
msgstr "Dispositivos de temperatura"
|
||||
|
||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
||||
msgid "Add"
|
||||
msgstr "Añadir"
|
||||
|
||||
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
"Editable\n"
|
||||
"del - eliminar elemento"
|
||||
|
||||
#: rc.cpp:66
|
||||
msgid "Mount points"
|
||||
msgstr "Puntos de montaje"
|
||||
|
||||
#: rc.cpp:76
|
||||
msgid "HDD devices (speed)"
|
||||
msgstr "Disco duro (velocidad)"
|
||||
|
||||
#: rc.cpp:86
|
||||
msgid "HDD devices (temp)"
|
||||
msgstr "Disco duro (temperatura)"
|
||||
|
||||
#: rc.cpp:96
|
||||
msgid "Network directory"
|
||||
msgstr "Directorio de la red"
|
||||
|
||||
#: rc.cpp:99
|
||||
msgid "\"/sys/class/net\" by default"
|
||||
msgstr "\"/sys/class/net\" por defecto"
|
||||
|
||||
#: rc.cpp:102
|
||||
msgid "Disable auto select device and set specified device"
|
||||
msgstr "Inhabilitar selección automática del dispositivo y especificar uno"
|
||||
|
||||
#: rc.cpp:105
|
||||
msgid "Set network device"
|
||||
msgstr "Establecer dispositivo de red"
|
||||
|
||||
#: rc.cpp:108
|
||||
msgid "Battery device"
|
||||
msgstr "Dispositivo de batería"
|
||||
|
||||
#: rc.cpp:111
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" por defecto"
|
||||
|
||||
#: rc.cpp:114
|
||||
msgid "AC online tag"
|
||||
msgstr "Etiqueta para alimentación conectada"
|
||||
|
||||
#: rc.cpp:117
|
||||
msgid "Line, which returns when AC is online"
|
||||
msgstr "Línea que devuelve si la alimentación está conectada"
|
||||
|
||||
#: rc.cpp:120
|
||||
msgid "AC offline tag"
|
||||
msgstr "Etiqueta para la alimentación desconectada"
|
||||
|
||||
#: rc.cpp:123
|
||||
msgid "Line, which returns when AC is offline"
|
||||
msgstr "Línea que devuelve si la alimentación está desconectada"
|
||||
|
||||
#: rc.cpp:126
|
||||
msgid "AC device"
|
||||
msgstr "Dispositivo de alimentación"
|
||||
|
||||
#: rc.cpp:129
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" por defecto"
|
||||
|
||||
#: rc.cpp:135
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalo de tiempo"
|
||||
|
||||
#: rc.cpp:138
|
||||
msgid "Font"
|
||||
msgstr "Fuente"
|
||||
|
||||
#: rc.cpp:141
|
||||
msgid "Font size"
|
||||
msgstr "Tamaño de fuente"
|
||||
|
||||
#: rc.cpp:144
|
||||
msgid "Font color"
|
||||
msgstr "Color de fuente"
|
||||
|
||||
#: rc.cpp:147
|
||||
msgid "Font style"
|
||||
msgstr "Estilo de fuente"
|
||||
|
||||
#: rc.cpp:150
|
||||
msgid "Font weight"
|
||||
msgstr "Grosor de la fuente"
|
||||
|
||||
#: rc.cpp:156
|
||||
msgid "Custom command"
|
||||
msgstr "Comando personalizado"
|
||||
|
||||
#: rc.cpp:159
|
||||
msgid "Custom command to run"
|
||||
msgstr "Comando personalizado para ejecutar"
|
||||
|
||||
#: rc.cpp:169
|
||||
msgid "GPU device"
|
||||
msgstr "Dispositivo de GPU"
|
||||
|
||||
#: rc.cpp:172 rc.cpp:317
|
||||
msgid "HDD"
|
||||
msgstr "Disco duro"
|
||||
|
||||
#: rc.cpp:175
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "Comando hddtemp"
|
||||
|
||||
#: rc.cpp:178
|
||||
msgid "MPD address"
|
||||
msgstr "Dirección de MPD"
|
||||
|
||||
#: rc.cpp:181
|
||||
msgid "MPD port"
|
||||
msgstr "Puerto de MPD"
|
||||
|
||||
#: rc.cpp:184 rc.cpp:375
|
||||
msgid "Package manager"
|
||||
msgstr "Gestor de paquetes"
|
||||
|
||||
#: rc.cpp:187
|
||||
msgid "Number of null lines"
|
||||
msgstr "Número de líneas nulas"
|
||||
|
||||
#: rc.cpp:197 rc.cpp:357
|
||||
msgid "Music player"
|
||||
msgstr "Reproductor de música"
|
||||
|
||||
#: rc.cpp:200
|
||||
msgid "Desktop check cmd"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:206
|
||||
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:209
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Número de valores para las ventanas emergentes"
|
||||
|
||||
#: rc.cpp:212
|
||||
msgid "CPU clock color"
|
||||
msgstr "Color de la frecuencia de la CPU"
|
||||
|
||||
#: rc.cpp:215
|
||||
msgid "Swap color"
|
||||
msgstr "Color de la swap"
|
||||
|
||||
#: rc.cpp:218
|
||||
msgid "CPU color"
|
||||
msgstr "Color de la CPU"
|
||||
|
||||
#: rc.cpp:221
|
||||
msgid "Download speed color"
|
||||
msgstr "Color de la velocidad de recepción"
|
||||
|
||||
#: rc.cpp:224
|
||||
msgid "Memory color"
|
||||
msgstr "Color de la memoria"
|
||||
|
||||
#: rc.cpp:227
|
||||
msgid "Upload speed color"
|
||||
msgstr "Color de la velocidad de envío"
|
||||
|
||||
#: rc.cpp:233
|
||||
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:236
|
||||
msgid "Time"
|
||||
msgstr "Hora"
|
||||
|
||||
#: rc.cpp:239
|
||||
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:246
|
||||
msgid "Uptime"
|
||||
msgstr "Tiempo de actividad"
|
||||
|
||||
#: rc.cpp:249
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
"$uptime - tiempo de actividad del sistema\n"
|
||||
"$custom - formato personalizado"
|
||||
|
||||
#: rc.cpp:253
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
#: rc.cpp:257
|
||||
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:265
|
||||
msgid "CPU Clock"
|
||||
msgstr "Frecuencia de la CPU"
|
||||
|
||||
#: rc.cpp:268
|
||||
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:276
|
||||
msgid "Temperature"
|
||||
msgstr "Temperatura"
|
||||
|
||||
#: rc.cpp:279
|
||||
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:282
|
||||
msgid "GPU"
|
||||
msgstr "GPU"
|
||||
|
||||
#: rc.cpp:286
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr "$gpu - uso de la GPU, %"
|
||||
|
||||
#: rc.cpp:289
|
||||
msgid "GPU Temp"
|
||||
msgstr "Temperatura de la GPU"
|
||||
|
||||
#: rc.cpp:292
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr "$gputemp - temperatura física de la GPU"
|
||||
|
||||
#: rc.cpp:295
|
||||
msgid "Memory"
|
||||
msgstr "Memoria"
|
||||
|
||||
#: rc.cpp:299
|
||||
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:306
|
||||
msgid "Swap"
|
||||
msgstr "Swap"
|
||||
|
||||
#: rc.cpp:310
|
||||
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:321
|
||||
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:328
|
||||
msgid "HDD speed"
|
||||
msgstr "Velocidad del disco duro"
|
||||
|
||||
#: rc.cpp:331
|
||||
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:335
|
||||
msgid "HDD temp"
|
||||
msgstr "Temperatura del disco duro"
|
||||
|
||||
#: rc.cpp:338
|
||||
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:341
|
||||
msgid "Network"
|
||||
msgstr "Red"
|
||||
|
||||
#: rc.cpp:344
|
||||
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:349
|
||||
msgid "Battery"
|
||||
msgstr "Batería"
|
||||
|
||||
#: rc.cpp:353
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
"$bat - carga de la batería, %\n"
|
||||
"$ac - estado de la alimentación"
|
||||
|
||||
#: rc.cpp:360
|
||||
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:367
|
||||
msgid "Processes"
|
||||
msgstr "Procesos"
|
||||
|
||||
#: rc.cpp:370
|
||||
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:378
|
||||
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:381
|
||||
msgid "Custom"
|
||||
msgstr "Personalizado"
|
||||
|
||||
#: rc.cpp:384
|
||||
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:387
|
||||
msgid "Current desktop"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:390
|
||||
msgid ""
|
||||
"$name - desktop name\n"
|
||||
"$number - desktop number\n"
|
||||
"$total - total number of desktops"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:393
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Tu nombre"
|
||||
|
||||
#: rc.cpp:394
|
||||
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"
|
||||
|
||||
|
1027
sources/ptm/po/fr.po
1027
sources/ptm/po/fr.po
File diff suppressed because it is too large
Load Diff
594
sources/ptm/po/pt_BR.po
Normal file
594
sources/ptm/po/pt_BR.po
Normal file
@ -0,0 +1,594 @@
|
||||
# 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-07-09 13:13+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:277
|
||||
msgid "Widget"
|
||||
msgstr "Widget"
|
||||
|
||||
#: code/configdef.py:279
|
||||
msgid "Advanced"
|
||||
msgstr "Avançado"
|
||||
|
||||
#: code/configdef.py:281
|
||||
msgid "Tooltip"
|
||||
msgstr "Dica de contexto"
|
||||
|
||||
#: code/configdef.py:283
|
||||
msgid "Appearance"
|
||||
msgstr "Aparência"
|
||||
|
||||
#: code/configdef.py:285
|
||||
msgid "DataEngine"
|
||||
msgstr "Engine de dados"
|
||||
|
||||
#: code/main.py:115
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Abrir ksysguard"
|
||||
|
||||
#: code/main.py:117
|
||||
msgid "Show README"
|
||||
msgstr "Mostrar README"
|
||||
|
||||
#: code/main.py:119
|
||||
msgid "Update text"
|
||||
msgstr "Atualizar texto"
|
||||
|
||||
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:203 rc.cpp:230
|
||||
msgid "Form"
|
||||
msgstr "Forma"
|
||||
|
||||
#: rc.cpp:6
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:9
|
||||
msgid "Vertical layout"
|
||||
msgstr "Layout vertical"
|
||||
|
||||
#: rc.cpp:12
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Ativar popup no clique do mouse"
|
||||
|
||||
#: rc.cpp:15
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Adicionar esticamento à esquerda/topo do layout"
|
||||
|
||||
#: rc.cpp:18
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Adicionar esticamento à direita/inferior do layout"
|
||||
|
||||
#: rc.cpp:21
|
||||
msgid "Custom time format"
|
||||
msgstr "Formato de hora personalizado"
|
||||
|
||||
#: rc.cpp:24
|
||||
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:42
|
||||
msgid "Custom uptime format"
|
||||
msgstr "Tempo em atividade com formato personalizado"
|
||||
|
||||
#: rc.cpp:45
|
||||
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:53
|
||||
msgid "Temperature units"
|
||||
msgstr "Unidades de temperatura"
|
||||
|
||||
#: rc.cpp:56
|
||||
msgid "Temperature devices"
|
||||
msgstr "Dispositivos de temperatura"
|
||||
|
||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
||||
msgid "Add"
|
||||
msgstr "Adicionar"
|
||||
|
||||
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
"Editável\n"
|
||||
"del - remover item"
|
||||
|
||||
#: rc.cpp:66
|
||||
msgid "Mount points"
|
||||
msgstr "Pontos de montagem"
|
||||
|
||||
#: rc.cpp:76
|
||||
msgid "HDD devices (speed)"
|
||||
msgstr "Dispositivos HDD (velocidade) "
|
||||
|
||||
#: rc.cpp:86
|
||||
msgid "HDD devices (temp)"
|
||||
msgstr "Dispositivos HDD (temperatura)"
|
||||
|
||||
#: rc.cpp:96
|
||||
msgid "Network directory"
|
||||
msgstr "Diretório de rede"
|
||||
|
||||
#: rc.cpp:99
|
||||
msgid "\"/sys/class/net\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" por padrão"
|
||||
|
||||
#: rc.cpp:102
|
||||
msgid "Disable auto select device and set specified device"
|
||||
msgstr ""
|
||||
"Desativar auto seleção de dispositivos e escolher um dispositivo específico"
|
||||
|
||||
#: rc.cpp:105
|
||||
msgid "Set network device"
|
||||
msgstr "Escolher dispositivo de rede"
|
||||
|
||||
#: rc.cpp:108
|
||||
msgid "Battery device"
|
||||
msgstr "Dispositivo do carregador"
|
||||
|
||||
#: rc.cpp:111
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" por padrão"
|
||||
|
||||
#: rc.cpp:114
|
||||
msgid "AC online tag"
|
||||
msgstr "Rótulo com carregador conectado"
|
||||
|
||||
#: rc.cpp:117
|
||||
msgid "Line, which returns when AC is online"
|
||||
msgstr "Linha, que aparece quando o carregador está conectado"
|
||||
|
||||
#: rc.cpp:120
|
||||
msgid "AC offline tag"
|
||||
msgstr "Rótulo com carregador desconectado"
|
||||
|
||||
#: rc.cpp:123
|
||||
msgid "Line, which returns when AC is offline"
|
||||
msgstr "Linha, que aparece quando o carregador está offline"
|
||||
|
||||
#: rc.cpp:126
|
||||
msgid "AC device"
|
||||
msgstr "Dispositivo do carregador"
|
||||
|
||||
#: rc.cpp:129
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" por padrão"
|
||||
|
||||
#: rc.cpp:135
|
||||
msgid "Time interval"
|
||||
msgstr "Intervalo de tempo"
|
||||
|
||||
#: rc.cpp:138
|
||||
msgid "Font"
|
||||
msgstr "Tamanho da fonte"
|
||||
|
||||
#: rc.cpp:141
|
||||
msgid "Font size"
|
||||
msgstr "Tamanho da fonte"
|
||||
|
||||
#: rc.cpp:144
|
||||
msgid "Font color"
|
||||
msgstr "Cor da fonte"
|
||||
|
||||
#: rc.cpp:147
|
||||
msgid "Font style"
|
||||
msgstr "Estilo da fonte"
|
||||
|
||||
#: rc.cpp:150
|
||||
msgid "Font weight"
|
||||
msgstr "Peso da fonte"
|
||||
|
||||
#: rc.cpp:156
|
||||
msgid "Custom command"
|
||||
msgstr "Comando personalizado"
|
||||
|
||||
#: rc.cpp:159
|
||||
msgid "Custom command to run"
|
||||
msgstr "Comando personalizado para usar"
|
||||
|
||||
#: rc.cpp:169
|
||||
msgid "GPU device"
|
||||
msgstr "Dispositivo GPU"
|
||||
|
||||
#: rc.cpp:172 rc.cpp:317
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: rc.cpp:175
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "comando hddtemp "
|
||||
|
||||
#: rc.cpp:178
|
||||
msgid "MPD address"
|
||||
msgstr "Endereço do MPD"
|
||||
|
||||
#: rc.cpp:181
|
||||
msgid "MPD port"
|
||||
msgstr "Porta do MPD"
|
||||
|
||||
#: rc.cpp:184 rc.cpp:375
|
||||
msgid "Package manager"
|
||||
msgstr "Gerenciador de pacotes"
|
||||
|
||||
#: rc.cpp:187
|
||||
msgid "Number of null lines"
|
||||
msgstr "Número de valores para dicas de contexto"
|
||||
|
||||
#: rc.cpp:197 rc.cpp:357
|
||||
msgid "Music player"
|
||||
msgstr "Reprodutor de áudio"
|
||||
|
||||
#: rc.cpp:200
|
||||
msgid "Desktop check cmd"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:206
|
||||
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:209
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Número de valores para dicas de contexto"
|
||||
|
||||
#: rc.cpp:212
|
||||
msgid "CPU clock color"
|
||||
msgstr "Cor da frequência da GPU"
|
||||
|
||||
#: rc.cpp:215
|
||||
msgid "Swap color"
|
||||
msgstr "Cor do swap"
|
||||
|
||||
#: rc.cpp:218
|
||||
msgid "CPU color"
|
||||
msgstr "Cor da frequência da GPU"
|
||||
|
||||
#: rc.cpp:221
|
||||
msgid "Download speed color"
|
||||
msgstr "Cor da velocidade de download"
|
||||
|
||||
#: rc.cpp:224
|
||||
msgid "Memory color"
|
||||
msgstr "Cor da memória"
|
||||
|
||||
#: rc.cpp:227
|
||||
msgid "Upload speed color"
|
||||
msgstr "Cor da velocidade de upload"
|
||||
|
||||
#: rc.cpp:233
|
||||
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:236
|
||||
msgid "Time"
|
||||
msgstr "Hora"
|
||||
|
||||
#: rc.cpp:239
|
||||
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:246
|
||||
msgid "Uptime"
|
||||
msgstr "Tempo em atividade"
|
||||
|
||||
#: rc.cpp:249
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
"$uptime - tempo em atividade do sistema\n"
|
||||
"$custom - formato personalizado "
|
||||
|
||||
#: rc.cpp:253
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
#: rc.cpp:257
|
||||
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:265
|
||||
msgid "CPU Clock"
|
||||
msgstr "Frequência da CPU "
|
||||
|
||||
#: rc.cpp:268
|
||||
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:276
|
||||
msgid "Temperature"
|
||||
msgstr "Temperatura "
|
||||
|
||||
#: rc.cpp:279
|
||||
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:282
|
||||
msgid "GPU"
|
||||
msgstr "GPU"
|
||||
|
||||
#: rc.cpp:286
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr "$gpu - uso da GPU, %"
|
||||
|
||||
#: rc.cpp:289
|
||||
msgid "GPU Temp"
|
||||
msgstr "Temperatura da GPU"
|
||||
|
||||
#: rc.cpp:292
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr "$gputemp - temperatura física da GPU"
|
||||
|
||||
#: rc.cpp:295
|
||||
msgid "Memory"
|
||||
msgstr "Memória"
|
||||
|
||||
#: rc.cpp:299
|
||||
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:306
|
||||
msgid "Swap"
|
||||
msgstr "Swap"
|
||||
|
||||
#: rc.cpp:310
|
||||
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:321
|
||||
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:328
|
||||
msgid "HDD speed"
|
||||
msgstr "Velocidade do HDD"
|
||||
|
||||
#: rc.cpp:331
|
||||
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:335
|
||||
msgid "HDD temp"
|
||||
msgstr "Temperatura do HDD "
|
||||
|
||||
#: rc.cpp:338
|
||||
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:341
|
||||
msgid "Network"
|
||||
msgstr "Rede"
|
||||
|
||||
#: rc.cpp:344
|
||||
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:349
|
||||
msgid "Battery"
|
||||
msgstr "Bateria"
|
||||
|
||||
#: rc.cpp:353
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
"bateria - carga da bateria, %\n"
|
||||
"$ac - status do carregador"
|
||||
|
||||
#: rc.cpp:360
|
||||
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:367
|
||||
msgid "Processes"
|
||||
msgstr "Processos "
|
||||
|
||||
#: rc.cpp:370
|
||||
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:378
|
||||
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:381
|
||||
msgid "Custom"
|
||||
msgstr "Personalizado"
|
||||
|
||||
#: rc.cpp:384
|
||||
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:387
|
||||
msgid "Current desktop"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:390
|
||||
msgid ""
|
||||
"$name - desktop name\n"
|
||||
"$number - desktop number\n"
|
||||
"$total - total number of desktops"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:393
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "under"
|
||||
|
||||
#: rc.cpp:394
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "dreanazous@gmail.com"
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||
"POT-Creation-Date: 2014-04-09 12:35+0400\n"
|
||||
"POT-Creation-Date: 2014-07-09 13:13+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,301 +17,67 @@ 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
|
||||
msgid "Form"
|
||||
#: code/configdef.py:277
|
||||
msgid "Widget"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:42
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, settings)
|
||||
#: rc.cpp:6
|
||||
msgid "Widget settings"
|
||||
msgstr ""
|
||||
|
||||
#. 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 ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:84
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_time)
|
||||
#: rc.cpp:12
|
||||
msgid "Time"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:98
|
||||
#. 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 - custom time format"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:143
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_uptime)
|
||||
#: rc.cpp:22
|
||||
msgid "Uptime"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:154
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptime)
|
||||
#: rc.cpp:25
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:202
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpu)
|
||||
#: rc.cpp:29
|
||||
msgid "CPU"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:220
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpu)
|
||||
#: rc.cpp:33
|
||||
#, no-c-format
|
||||
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 ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:268
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_cpuclock)
|
||||
#: rc.cpp:41
|
||||
msgid "CPU Clock"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:286
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_cpuclock)
|
||||
#: rc.cpp:44
|
||||
msgid ""
|
||||
"$cpucl - average CPU clock, MHz\n"
|
||||
"$cpucl0 - CPU clock for core 0, MHz\n"
|
||||
"...\n"
|
||||
"$cpucl9 - CPU clock for core 9, MHz\n"
|
||||
"...\n"
|
||||
"$cpuclN - CPU clock for core N, MHz"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:334
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_temp)
|
||||
#: rc.cpp:52
|
||||
msgid "Temperature"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:344
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_temp)
|
||||
#: rc.cpp:55
|
||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:392
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpu)
|
||||
#: rc.cpp:58
|
||||
msgid "GPU"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:402
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpu)
|
||||
#: rc.cpp:62
|
||||
#, no-c-format
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:450
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_gpuTemp)
|
||||
#: rc.cpp:65
|
||||
msgid "GPU Temp"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:460
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_gpuTemp)
|
||||
#: rc.cpp:68
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:508
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_mem)
|
||||
#: rc.cpp:71
|
||||
msgid "Memory"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:523
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_mem)
|
||||
#: rc.cpp:75
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$mem - RAM usage, %\n"
|
||||
"$memmb - RAM usage, MB\n"
|
||||
"$memgb - RAM usage, GB"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:571
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_swap)
|
||||
#: rc.cpp:80
|
||||
msgid "Swap"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:586
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_swap)
|
||||
#: rc.cpp:84
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$swap - swap usage, %\n"
|
||||
"$swapmb - swap usage, MB\n"
|
||||
"$swapgb - swap usage, GB"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:634
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hdd)
|
||||
#. i18n: file: ui/configwindow.ui:2404
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_hdddev)
|
||||
#: rc.cpp:89 rc.cpp:332
|
||||
msgid "HDD"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:646
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hdd)
|
||||
#: rc.cpp:93
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$hddN - usage for mount point N (from 0), %. Example: $hdd0\n"
|
||||
"$hddmbN - usage for mount point N (from 0), MB. Example: $hddmb0\n"
|
||||
"$hddgbN - usage for mount point N (from 0), GB. Example: $hddgb0"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:694
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_hddTemp)
|
||||
#: rc.cpp:98
|
||||
msgid "HDD Temp"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:704
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_hddTemp)
|
||||
#: rc.cpp:101
|
||||
msgid ""
|
||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:752
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_net)
|
||||
#: rc.cpp:104
|
||||
msgid "Network"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:767
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_net)
|
||||
#: rc.cpp:107
|
||||
msgid ""
|
||||
"$down - download speed, KB/s\n"
|
||||
"$up - upload speed, KB/s\n"
|
||||
"$netdev - current network device"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:815
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_bat)
|
||||
#: rc.cpp:112
|
||||
msgid "Battery"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:826
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_bat)
|
||||
#: rc.cpp:116
|
||||
#, no-c-format
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:874
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_player)
|
||||
#. i18n: file: ui/configwindow.ui:1561
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_playerSelect)
|
||||
#: rc.cpp:120 rc.cpp:251
|
||||
msgid "Music player"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:888
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_player)
|
||||
#: rc.cpp:123
|
||||
msgid ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
"$progress - song progress\n"
|
||||
"$time - song duration\n"
|
||||
"$title - song title"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:936
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_ps)
|
||||
#: rc.cpp:130
|
||||
msgid "Processes"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:948
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_ps)
|
||||
#: rc.cpp:133
|
||||
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:996
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_pkg)
|
||||
#. i18n: file: ui/configwindow.ui:2518
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_pkgCommand)
|
||||
#: rc.cpp:138 rc.cpp:341
|
||||
msgid "Package manager"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1006
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_pkg)
|
||||
#: rc.cpp:141
|
||||
msgid ""
|
||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||
"For example $pkgcount0"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1054
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_custom)
|
||||
#: rc.cpp:144
|
||||
msgid "Custom"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1064
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_custom)
|
||||
#: rc.cpp:147
|
||||
msgid "$custom - get output from custom command"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1122
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, advanced)
|
||||
#: rc.cpp:150
|
||||
#: code/configdef.py:279
|
||||
msgid "Advanced"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1151
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_timeFormat)
|
||||
#: rc.cpp:153
|
||||
#: code/configdef.py:281
|
||||
msgid "Tooltip"
|
||||
msgstr ""
|
||||
|
||||
#: code/configdef.py:283
|
||||
msgid "Appearance"
|
||||
msgstr ""
|
||||
|
||||
#: code/configdef.py:285
|
||||
msgid "DataEngine"
|
||||
msgstr ""
|
||||
|
||||
#: code/main.py:115
|
||||
msgid "Run ksysguard"
|
||||
msgstr ""
|
||||
|
||||
#: code/main.py:117
|
||||
msgid "Show README"
|
||||
msgstr ""
|
||||
|
||||
#: code/main.py:119
|
||||
msgid "Update text"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:203 rc.cpp:230
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:6
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:9
|
||||
msgid "Vertical layout"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:12
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:15
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:18
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:21
|
||||
msgid "Custom time format"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1173
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_timeFormat)
|
||||
#: rc.cpp:156
|
||||
#: rc.cpp:24
|
||||
msgid ""
|
||||
"$dddd - long weekday\n"
|
||||
"$ddd - short weekday\n"
|
||||
@ -331,15 +97,11 @@ msgid ""
|
||||
"$s - seconds w\\o zero"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1193
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_uptimeFormat)
|
||||
#: rc.cpp:174
|
||||
#: rc.cpp:42
|
||||
msgid "Custom uptime format"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1205
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_uptimeFormat)
|
||||
#: rc.cpp:177
|
||||
#: rc.cpp:45
|
||||
msgid ""
|
||||
"$dd - uptime days\n"
|
||||
"$d - uptime days without zero\n"
|
||||
@ -349,340 +111,394 @@ msgid ""
|
||||
"$m - uptime minutes without zero"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1227
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_tempDevice)
|
||||
#: rc.cpp:185
|
||||
#: rc.cpp:53
|
||||
msgid "Temperature units"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:56
|
||||
msgid "Temperature devices"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1253
|
||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_tempDevice)
|
||||
#. i18n: file: ui/configwindow.ui:1308
|
||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_mount)
|
||||
#. i18n: file: ui/configwindow.ui:1363
|
||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_hddDevice)
|
||||
#. i18n: file: ui/configwindow.ui:2604
|
||||
#. i18n: ectx: property (text), widget (QPushButton, pushButton_pkgCommand)
|
||||
#: rc.cpp:188 rc.cpp:198 rc.cpp:208 rc.cpp:365
|
||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1263
|
||||
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_tempDevice)
|
||||
#. i18n: file: ui/configwindow.ui:1318
|
||||
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_mount)
|
||||
#. i18n: file: ui/configwindow.ui:1373
|
||||
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_hddDevice)
|
||||
#. i18n: file: ui/configwindow.ui:2614
|
||||
#. i18n: ectx: property (toolTip), widget (QListWidget, listWidget_pkgCommand)
|
||||
#: rc.cpp:191 rc.cpp:201 rc.cpp:211 rc.cpp:368
|
||||
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1282
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mount)
|
||||
#: rc.cpp:195
|
||||
#: rc.cpp:66
|
||||
msgid "Mount points"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1337
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_hddDevice)
|
||||
#: rc.cpp:205
|
||||
msgid "HDD devices"
|
||||
#: rc.cpp:76
|
||||
msgid "HDD devices (speed)"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1390
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_netdir)
|
||||
#: rc.cpp:215
|
||||
#: rc.cpp:86
|
||||
msgid "HDD devices (temp)"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:96
|
||||
msgid "Network directory"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1397
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_netdir)
|
||||
#: rc.cpp:218
|
||||
#: rc.cpp:99
|
||||
msgid "\"/sys/class/net\" by default"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1417
|
||||
#. i18n: ectx: property (toolTip), widget (QCheckBox, checkBox_netdev)
|
||||
#: rc.cpp:221
|
||||
#: rc.cpp:102
|
||||
msgid "Disable auto select device and set specified device"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1420
|
||||
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_netdev)
|
||||
#: rc.cpp:224
|
||||
#: rc.cpp:105
|
||||
msgid "Set network device"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1453
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_batdev)
|
||||
#: rc.cpp:227
|
||||
#: rc.cpp:108
|
||||
msgid "Battery device"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1460
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_batdev)
|
||||
#: rc.cpp:230
|
||||
#: rc.cpp:111
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1477
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_acOnline)
|
||||
#: rc.cpp:233
|
||||
#: rc.cpp:114
|
||||
msgid "AC online tag"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1484
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acOnline)
|
||||
#: rc.cpp:236
|
||||
#: rc.cpp:117
|
||||
msgid "Line, which returns when AC is online"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1507
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_acOffline)
|
||||
#: rc.cpp:239
|
||||
#: rc.cpp:120
|
||||
msgid "AC offline tag"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1514
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acOffline)
|
||||
#: rc.cpp:242
|
||||
#: rc.cpp:123
|
||||
msgid "Line, which returns when AC is offline"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1537
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_acdev)
|
||||
#: rc.cpp:245
|
||||
#: rc.cpp:126
|
||||
msgid "AC device"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1544
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_acdev)
|
||||
#: rc.cpp:248
|
||||
#: rc.cpp:129
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1581
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_playerSelect)
|
||||
#: rc.cpp:254
|
||||
msgid "amarok"
|
||||
#: rc.cpp:135
|
||||
msgid "Time interval"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1586
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_playerSelect)
|
||||
#: rc.cpp:257
|
||||
msgid "mpd"
|
||||
#: rc.cpp:138
|
||||
msgid "Font"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1591
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_playerSelect)
|
||||
#: rc.cpp:260
|
||||
msgid "qmmp"
|
||||
#: rc.cpp:141
|
||||
msgid "Font size"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1619
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, tooltip)
|
||||
#: rc.cpp:263
|
||||
msgid "Tooltip"
|
||||
#: rc.cpp:144
|
||||
msgid "Font color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1625
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltip)
|
||||
#: rc.cpp:266
|
||||
#: rc.cpp:147
|
||||
msgid "Font style"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:150
|
||||
msgid "Font weight"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:156
|
||||
msgid "Custom command"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:159
|
||||
msgid "Custom command to run"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:169
|
||||
msgid "GPU device"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:172 rc.cpp:317
|
||||
msgid "HDD"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:175
|
||||
msgid "hddtemp cmd"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:178
|
||||
msgid "MPD address"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:181
|
||||
msgid "MPD port"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:184 rc.cpp:375
|
||||
msgid "Package manager"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:187
|
||||
msgid "Number of null lines"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:197 rc.cpp:357
|
||||
msgid "Music player"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:200
|
||||
msgid "Desktop check cmd"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:206
|
||||
msgid ""
|
||||
"CPU, CPU clock, memory, swap and network labels support graphical tooltip. "
|
||||
"To enable them just make needed checkbox fully checked."
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1661
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_tooltipNum)
|
||||
#: rc.cpp:269
|
||||
#: rc.cpp:209
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1716
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_cpuclockColor)
|
||||
#: rc.cpp:272
|
||||
#: rc.cpp:212
|
||||
msgid "CPU clock color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1756
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_swapColor)
|
||||
#: rc.cpp:275
|
||||
#: rc.cpp:215
|
||||
msgid "Swap color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1796
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_cpuColor)
|
||||
#: rc.cpp:278
|
||||
#: rc.cpp:218
|
||||
msgid "CPU color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1836
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_downColor)
|
||||
#: rc.cpp:281
|
||||
#: rc.cpp:221
|
||||
msgid "Download speed color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1876
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_memColor)
|
||||
#: rc.cpp:284
|
||||
#: rc.cpp:224
|
||||
msgid "Memory color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1916
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_upColor)
|
||||
#: rc.cpp:287
|
||||
#: rc.cpp:227
|
||||
msgid "Upload speed color"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1966
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, appearance)
|
||||
#: rc.cpp:290
|
||||
msgid "Appearance"
|
||||
#: rc.cpp:233
|
||||
msgid ""
|
||||
"Detailed information may be found on <a href=\"http://arcanis.name/projects/"
|
||||
"pytextmonitor/\">project homepage</a>"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:1995
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_interval)
|
||||
#: rc.cpp:293
|
||||
msgid "Time interval"
|
||||
#: rc.cpp:236
|
||||
msgid "Time"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2050
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_font)
|
||||
#: rc.cpp:296
|
||||
msgid "Font"
|
||||
#: rc.cpp:239
|
||||
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 ""
|
||||
|
||||
#: rc.cpp:246
|
||||
msgid "Uptime"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:249
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:253
|
||||
msgid "CPU"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:257
|
||||
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 ""
|
||||
|
||||
#: rc.cpp:265
|
||||
msgid "CPU Clock"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:268
|
||||
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 ""
|
||||
|
||||
#: rc.cpp:276
|
||||
msgid "Temperature"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:279
|
||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:282
|
||||
msgid "GPU"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:286
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:289
|
||||
msgid "GPU Temp"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:292
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:295
|
||||
msgid "Memory"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2090
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_fontSize)
|
||||
#: rc.cpp:299
|
||||
msgid "Font size"
|
||||
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 ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2145
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_color)
|
||||
#: rc.cpp:302
|
||||
msgid "Font color"
|
||||
#: rc.cpp:306
|
||||
msgid "Swap"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2185
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_style)
|
||||
#: rc.cpp:305
|
||||
msgid "Font style"
|
||||
#: rc.cpp:310
|
||||
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 ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2235
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_weight)
|
||||
#: rc.cpp:308
|
||||
msgid "Font weight"
|
||||
#: rc.cpp:321
|
||||
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:2300
|
||||
#. i18n: ectx: attribute (title), widget (QWidget, dataengine)
|
||||
#: rc.cpp:311
|
||||
msgid "DataEngine"
|
||||
#: rc.cpp:328
|
||||
msgid "HDD speed"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2329
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_customCommand)
|
||||
#: rc.cpp:314
|
||||
msgid "Custom command"
|
||||
#: rc.cpp:331
|
||||
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:2336
|
||||
#. i18n: ectx: property (toolTip), widget (QLineEdit, lineEdit_customCommand)
|
||||
#: rc.cpp:317
|
||||
msgid "Custom command to run"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2356
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_gpudev)
|
||||
#: rc.cpp:320
|
||||
msgid "GPU device"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2376
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_gpudev)
|
||||
#: rc.cpp:323
|
||||
msgid "auto"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2381
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_gpudev)
|
||||
#: rc.cpp:326
|
||||
msgid "nvidia"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2386
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_gpudev)
|
||||
#: rc.cpp:329
|
||||
msgid "ati"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2437
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mpdaddress)
|
||||
#: rc.cpp:335
|
||||
msgid "MPD address"
|
||||
msgid "HDD temp"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2461
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_mpdport)
|
||||
#: rc.cpp:338
|
||||
msgid "MPD port"
|
||||
msgid ""
|
||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:341
|
||||
msgid "Network"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2535
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_pkgCommand)
|
||||
#: rc.cpp:344
|
||||
msgid "pacman -Qu"
|
||||
msgid ""
|
||||
"$down - download speed, KB/s\n"
|
||||
"$up - upload speed, KB/s\n"
|
||||
"$netdev - current network device"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2540
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_pkgCommand)
|
||||
#: rc.cpp:347
|
||||
msgid "apt-show-versions -u -b"
|
||||
#: rc.cpp:349
|
||||
msgid "Battery"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2545
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_pkgCommand)
|
||||
#: rc.cpp:350
|
||||
msgid "aptitude search '~U'"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2550
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_pkgCommand)
|
||||
#: rc.cpp:353
|
||||
msgid "yum list updates"
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2555
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_pkgCommand)
|
||||
#: rc.cpp:356
|
||||
msgid "pkg_version -I -l '<'"
|
||||
#: rc.cpp:360
|
||||
msgid ""
|
||||
"$album - song album\n"
|
||||
"$artist - song artist\n"
|
||||
"$progress - song progress\n"
|
||||
"$time - song duration\n"
|
||||
"$title - song title"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2560
|
||||
#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_pkgCommand)
|
||||
#: rc.cpp:359
|
||||
msgid "urpmq --auto-select"
|
||||
msgstr ""
|
||||
|
||||
#. i18n: file: ui/configwindow.ui:2578
|
||||
#. i18n: ectx: property (text), widget (QLabel, label_pkgCommandNum)
|
||||
#: rc.cpp:362
|
||||
msgid "Number of null lines"
|
||||
#: rc.cpp:367
|
||||
msgid "Processes"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:370
|
||||
msgid ""
|
||||
"$pscount - number of running processes\n"
|
||||
"$pstotal - total number of running processes\n"
|
||||
"$ps - list of running processes comma separated"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:378
|
||||
msgid ""
|
||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||
"For example $pkgcount0"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:381
|
||||
msgid "Custom"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:384
|
||||
msgid ""
|
||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:387
|
||||
msgid "Current desktop"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:390
|
||||
msgid ""
|
||||
"$name - desktop name\n"
|
||||
"$number - desktop number\n"
|
||||
"$total - total number of desktops"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:393
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:371
|
||||
#: rc.cpp:394
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr ""
|
||||
|
1019
sources/ptm/po/ru.po
1019
sources/ptm/po/ru.po
File diff suppressed because it is too large
Load Diff
587
sources/ptm/po/uk.po
Normal file
587
sources/ptm/po/uk.po
Normal file
@ -0,0 +1,587 @@
|
||||
# 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-07-09 13:13+0400\n"
|
||||
"PO-Revision-Date: 2014-06-06 01:23+0400\n"
|
||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||
"Language-Team: Ukrainian <kde-ukrainian@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:277
|
||||
msgid "Widget"
|
||||
msgstr "Віджет"
|
||||
|
||||
#: code/configdef.py:279
|
||||
msgid "Advanced"
|
||||
msgstr "Розширені"
|
||||
|
||||
#: code/configdef.py:281
|
||||
msgid "Tooltip"
|
||||
msgstr "Тултіп"
|
||||
|
||||
#: code/configdef.py:283
|
||||
msgid "Appearance"
|
||||
msgstr "Зовнішній вигляд"
|
||||
|
||||
#: code/configdef.py:285
|
||||
msgid "DataEngine"
|
||||
msgstr "DataEngine"
|
||||
|
||||
#: code/main.py:115
|
||||
msgid "Run ksysguard"
|
||||
msgstr "Запустити ksysguard"
|
||||
|
||||
#: code/main.py:117
|
||||
msgid "Show README"
|
||||
msgstr "Показати README"
|
||||
|
||||
#: code/main.py:119
|
||||
msgid "Update text"
|
||||
msgstr "Оновити текст"
|
||||
|
||||
#: rc.cpp:3 rc.cpp:132 rc.cpp:153 rc.cpp:203 rc.cpp:230
|
||||
msgid "Form"
|
||||
msgstr "Form"
|
||||
|
||||
#: rc.cpp:6
|
||||
msgid "Enable background"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:9
|
||||
msgid "Vertical layout"
|
||||
msgstr "Вертикальна розмітка"
|
||||
|
||||
#: rc.cpp:12
|
||||
msgid "Enable popup on mouse click"
|
||||
msgstr "Включити спливаючі підказки при натисканні клавіші миші"
|
||||
|
||||
#: rc.cpp:15
|
||||
msgid "Add stretch to left/top of the layout"
|
||||
msgstr "Додати порожнє місце ліворуч/вгорі віджету"
|
||||
|
||||
#: rc.cpp:18
|
||||
msgid "Add stretch to right/bottom of the layout"
|
||||
msgstr "Додати порожнє місце праворуч/внизу віджету"
|
||||
|
||||
#: rc.cpp:21
|
||||
msgid "Custom time format"
|
||||
msgstr "Свій формат часу"
|
||||
|
||||
#: rc.cpp:24
|
||||
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:42
|
||||
msgid "Custom uptime format"
|
||||
msgstr "Свій формат аптайму (uptime)"
|
||||
|
||||
#: rc.cpp:45
|
||||
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:53
|
||||
msgid "Temperature units"
|
||||
msgstr "Одиниці виміру температури"
|
||||
|
||||
#: rc.cpp:56
|
||||
msgid "Temperature devices"
|
||||
msgstr "Температурні пристрої"
|
||||
|
||||
#: rc.cpp:59 rc.cpp:69 rc.cpp:79 rc.cpp:89 rc.cpp:162 rc.cpp:190
|
||||
msgid "Add"
|
||||
msgstr "Добавити"
|
||||
|
||||
#: rc.cpp:62 rc.cpp:72 rc.cpp:82 rc.cpp:92 rc.cpp:165 rc.cpp:193
|
||||
msgid ""
|
||||
"Editable\n"
|
||||
"del - remove item"
|
||||
msgstr ""
|
||||
"Можна редагувати\n"
|
||||
"del - видалити рядок"
|
||||
|
||||
#: rc.cpp:66
|
||||
msgid "Mount points"
|
||||
msgstr "Точки монтування"
|
||||
|
||||
#: rc.cpp:76
|
||||
msgid "HDD devices (speed)"
|
||||
msgstr "HDD (швидкість)"
|
||||
|
||||
#: rc.cpp:86
|
||||
msgid "HDD devices (temp)"
|
||||
msgstr "HDD (температура)"
|
||||
|
||||
#: rc.cpp:96
|
||||
msgid "Network directory"
|
||||
msgstr "Шлях до інтерфейсів"
|
||||
|
||||
#: rc.cpp:99
|
||||
msgid "\"/sys/class/net\" by default"
|
||||
msgstr "\"/sys/class/net\" за замовчуванням"
|
||||
|
||||
#: rc.cpp:102
|
||||
msgid "Disable auto select device and set specified device"
|
||||
msgstr "Відключити автоматичний вибір пристрою та використовувати вказаний"
|
||||
|
||||
#: rc.cpp:105
|
||||
msgid "Set network device"
|
||||
msgstr "Оберіть мережевий пристрій"
|
||||
|
||||
#: rc.cpp:108
|
||||
msgid "Battery device"
|
||||
msgstr "Пристрій батареї"
|
||||
|
||||
#: rc.cpp:111
|
||||
msgid "\"/sys/class/power_supply/BAT0/capacity\" by default"
|
||||
msgstr "\"/sys/class/power_supply/BAT0/capacity\" за замовчуванням"
|
||||
|
||||
#: rc.cpp:114
|
||||
msgid "AC online tag"
|
||||
msgstr "AC підключений"
|
||||
|
||||
#: rc.cpp:117
|
||||
msgid "Line, which returns when AC is online"
|
||||
msgstr "Рядок, що повертається при підключеному адаптері живлення"
|
||||
|
||||
#: rc.cpp:120
|
||||
msgid "AC offline tag"
|
||||
msgstr "AC відключений"
|
||||
|
||||
#: rc.cpp:123
|
||||
msgid "Line, which returns when AC is offline"
|
||||
msgstr "Рядок, що повертається при відключеному адаптері живлення"
|
||||
|
||||
#: rc.cpp:126
|
||||
msgid "AC device"
|
||||
msgstr "AC пристрій"
|
||||
|
||||
#: rc.cpp:129
|
||||
msgid "\"/sys/class/power_supply/AC/online\" by default"
|
||||
msgstr "\"/sys/class/power_supply/AC/online\" за замовчуванням"
|
||||
|
||||
#: rc.cpp:135
|
||||
msgid "Time interval"
|
||||
msgstr "Інтервал оновлення"
|
||||
|
||||
#: rc.cpp:138
|
||||
msgid "Font"
|
||||
msgstr "Шрифт"
|
||||
|
||||
#: rc.cpp:141
|
||||
msgid "Font size"
|
||||
msgstr "Розмір шрифту"
|
||||
|
||||
#: rc.cpp:144
|
||||
msgid "Font color"
|
||||
msgstr "Колір шрифту"
|
||||
|
||||
#: rc.cpp:147
|
||||
msgid "Font style"
|
||||
msgstr "Стиль шрифту"
|
||||
|
||||
#: rc.cpp:150
|
||||
msgid "Font weight"
|
||||
msgstr "Ширина шрифту"
|
||||
|
||||
#: rc.cpp:156
|
||||
msgid "Custom command"
|
||||
msgstr "Своя команда"
|
||||
|
||||
#: rc.cpp:159
|
||||
msgid "Custom command to run"
|
||||
msgstr "Виконання своєї команди"
|
||||
|
||||
#: rc.cpp:169
|
||||
msgid "GPU device"
|
||||
msgstr "Пристій GPU"
|
||||
|
||||
#: rc.cpp:172 rc.cpp:317
|
||||
msgid "HDD"
|
||||
msgstr "HDD"
|
||||
|
||||
#: rc.cpp:175
|
||||
msgid "hddtemp cmd"
|
||||
msgstr "Команда hddtemp"
|
||||
|
||||
#: rc.cpp:178
|
||||
msgid "MPD address"
|
||||
msgstr "Адреса сервера MPD"
|
||||
|
||||
#: rc.cpp:181
|
||||
msgid "MPD port"
|
||||
msgstr "Порт сервера MPD"
|
||||
|
||||
#: rc.cpp:184 rc.cpp:375
|
||||
msgid "Package manager"
|
||||
msgstr "Пакетний менеджер"
|
||||
|
||||
#: rc.cpp:187
|
||||
msgid "Number of null lines"
|
||||
msgstr "Кількість пустих рядків"
|
||||
|
||||
#: rc.cpp:197 rc.cpp:357
|
||||
msgid "Music player"
|
||||
msgstr "Музичний плеєр"
|
||||
|
||||
#: rc.cpp:200
|
||||
msgid "Desktop check cmd"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:206
|
||||
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:209
|
||||
msgid "Number of values for tooltips"
|
||||
msgstr "Кількість значень для тултіпа"
|
||||
|
||||
#: rc.cpp:212
|
||||
msgid "CPU clock color"
|
||||
msgstr "Колір частоти CPU"
|
||||
|
||||
#: rc.cpp:215
|
||||
msgid "Swap color"
|
||||
msgstr "Колір swap"
|
||||
|
||||
#: rc.cpp:218
|
||||
msgid "CPU color"
|
||||
msgstr "Колір CPU"
|
||||
|
||||
#: rc.cpp:221
|
||||
msgid "Download speed color"
|
||||
msgstr "Колір швидкості скачування"
|
||||
|
||||
#: rc.cpp:224
|
||||
msgid "Memory color"
|
||||
msgstr "Колір пам’яті"
|
||||
|
||||
#: rc.cpp:227
|
||||
msgid "Upload speed color"
|
||||
msgstr "Колір швидкості віддачі"
|
||||
|
||||
#: rc.cpp:233
|
||||
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:236
|
||||
msgid "Time"
|
||||
msgstr "Час"
|
||||
|
||||
#: rc.cpp:239
|
||||
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:246
|
||||
msgid "Uptime"
|
||||
msgstr "Час роботи"
|
||||
|
||||
#: rc.cpp:249
|
||||
msgid ""
|
||||
"$uptime - system uptime\n"
|
||||
"$custom - custom format"
|
||||
msgstr ""
|
||||
"$uptime - час роботи\n"
|
||||
"$custom - свій формат"
|
||||
|
||||
#: rc.cpp:253
|
||||
msgid "CPU"
|
||||
msgstr "CPU"
|
||||
|
||||
#: rc.cpp:257
|
||||
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:265
|
||||
msgid "CPU Clock"
|
||||
msgstr "Частота CPU"
|
||||
|
||||
#: rc.cpp:268
|
||||
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:276
|
||||
msgid "Temperature"
|
||||
msgstr "Температура"
|
||||
|
||||
#: rc.cpp:279
|
||||
msgid "$tempN - physical temperature on device N (from 0). Example: $temp0"
|
||||
msgstr "$tempN - фізична температура на пристрої N (від 0). Приклад: $temp0"
|
||||
|
||||
#: rc.cpp:282
|
||||
msgid "GPU"
|
||||
msgstr "GPU"
|
||||
|
||||
#: rc.cpp:286
|
||||
msgid "$gpu - gpu usage, %"
|
||||
msgstr "$gpu - використання gpu, %"
|
||||
|
||||
#: rc.cpp:289
|
||||
msgid "GPU Temp"
|
||||
msgstr "Температура GPU"
|
||||
|
||||
#: rc.cpp:292
|
||||
msgid "$gputemp - physical temperature on GPU"
|
||||
msgstr "$gputemp - фізична температура на GPU"
|
||||
|
||||
#: rc.cpp:295
|
||||
msgid "Memory"
|
||||
msgstr "Пам’ять"
|
||||
|
||||
#: rc.cpp:299
|
||||
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:306
|
||||
msgid "Swap"
|
||||
msgstr "Swap"
|
||||
|
||||
#: rc.cpp:310
|
||||
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:321
|
||||
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:328
|
||||
msgid "HDD speed"
|
||||
msgstr "Швидкість HDD"
|
||||
|
||||
#: rc.cpp:331
|
||||
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:335
|
||||
msgid "HDD temp"
|
||||
msgstr "Температура HDD"
|
||||
|
||||
#: rc.cpp:338
|
||||
msgid ""
|
||||
"$hddtempN - physical temperature on device N (from 0). Example: $hddtemp0"
|
||||
msgstr ""
|
||||
"$hddtempN - фізична температура на пристрої N (від 0). Приклад: $hddtemp"
|
||||
|
||||
#: rc.cpp:341
|
||||
msgid "Network"
|
||||
msgstr "Мережа"
|
||||
|
||||
#: rc.cpp:344
|
||||
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:349
|
||||
msgid "Battery"
|
||||
msgstr "Батарея"
|
||||
|
||||
#: rc.cpp:353
|
||||
msgid ""
|
||||
"$bat - battery charge, %\n"
|
||||
"$ac - AC status"
|
||||
msgstr ""
|
||||
"$bat - заряд батареї, %\n"
|
||||
"$ac - статус адаптера живлення"
|
||||
|
||||
#: rc.cpp:360
|
||||
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:367
|
||||
msgid "Processes"
|
||||
msgstr "Процеси"
|
||||
|
||||
#: rc.cpp:370
|
||||
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:378
|
||||
msgid ""
|
||||
"$pkgcountN - number of packages which are available for updates, command N. "
|
||||
"For example $pkgcount0"
|
||||
msgstr ""
|
||||
"$pkgcountN - кількість пакетів, що доступні для оновлення, для команди N. "
|
||||
"Наприклад: $pkgcount0"
|
||||
|
||||
#: rc.cpp:381
|
||||
msgid "Custom"
|
||||
msgstr "Своя команда"
|
||||
|
||||
#: rc.cpp:384
|
||||
msgid ""
|
||||
"$customN - get output from custom command N (from N). Example `$custom0`"
|
||||
msgstr ""
|
||||
"$customN - отримати інформацію зі своєї команди N. Наприклад `$custom0`"
|
||||
|
||||
#: rc.cpp:387
|
||||
msgid "Current desktop"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:390
|
||||
msgid ""
|
||||
"$name - desktop name\n"
|
||||
"$number - desktop number\n"
|
||||
"$total - total number of desktops"
|
||||
msgstr ""
|
||||
|
||||
#: rc.cpp:393
|
||||
msgctxt "NAME OF TRANSLATORS"
|
||||
msgid "Your names"
|
||||
msgstr "Slobodyan Victor"
|
||||
|
||||
#: rc.cpp:394
|
||||
msgctxt "EMAIL OF TRANSLATORS"
|
||||
msgid "Your emails"
|
||||
msgstr "sarumyan@i.ua"
|
||||
|
||||
#~ msgid "Widget settings"
|
||||
#~ msgstr "Налаштування віджету"
|
5
sources/readme/CMakeLists.txt
Normal file
5
sources/readme/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
# set project name
|
||||
set (SUBPROJECT pytextmonitor)
|
||||
|
||||
file (GLOB SUBPROJECT_MD *.html)
|
||||
install (FILES ${SUBPROJECT_MD} DESTINATION share/${SUBPROJECT}/)
|
315
sources/readme/en.html
Normal file
315
sources/readme/en.html
Normal file
@ -0,0 +1,315 @@
|
||||
<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>
|
||||
<li>tag <code>$name</code> - name of the current desktop</li>
|
||||
<li>tag <code>$number</code> - number of the current desktop</li>
|
||||
<li>tag <code>$total</code> - total number of desktops</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>Enable background</strong></p>
|
||||
|
||||
<p>Uncheck to disable default background and set transparent one.</p>
|
||||
|
||||
<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>Desktop cmd</strong></p>
|
||||
|
||||
<p>Type a command which will be run for desktop DataEngine. Default is <code>qdbus org.kde.kwin /KWin currentDesktop</code>.</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>
|
||||
|
||||
<h1>PTM desktop panel</h1>
|
||||
|
||||
<p>Since version 1.11.0 PyTextMonitor provides a minimalistic panel for monitoring on desktops written on <code>C++</code>. And yes, it looks like the same panel in Awesome.</p>
|
||||
|
||||
<h2>Desktop panel configuration</h2>
|
||||
|
||||
<p><strong>Enable background</strong></p>
|
||||
|
||||
<p>Uncheck to disable default background and set transparent one.</p>
|
||||
|
||||
<p><strong>Vertical layout</strong></p>
|
||||
|
||||
<p>Use vertical layout instead of horizontal one.</p>
|
||||
|
||||
<p><strong>Add stretch</strong></p>
|
||||
|
||||
<p>Add stretch (spacer) to the selected side of the widget.</p>
|
||||
|
||||
<p><strong>Mark</strong></p>
|
||||
|
||||
<p>Type symbol (or string) which will be shown if this desktop is active now.</p>
|
||||
|
||||
<p><strong>Pattern tags</strong></p>
|
||||
|
||||
<ul>
|
||||
<li>tag <code>$mark</code> - show mark if this desktop is active</li>
|
||||
<li>tag <code>$name</code> - name of the current desktop</li>
|
||||
<li>tag <code>$number</code> - number of the current desktop</li>
|
||||
<li>tag <code>$total</code> - total number of desktops</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Command</strong></p>
|
||||
|
||||
<p>Type command which will be run on left click on the selected desktop. Available variables are same as for pattern. Default is <code>dbus org.kde.kwin /KWin setCurrentDesktop $number</code>.</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
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
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>
|
315
sources/readme/ru.html
Normal file
315
sources/readme/ru.html
Normal file
@ -0,0 +1,315 @@
|
||||
<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>
|
||||
<li>тег <code>$name</code> - имя текущего рабочего стола</li>
|
||||
<li>тег <code>$number</code> - номер текущего рабочего стола</li>
|
||||
<li>тег <code>$total</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>
|
||||
|
||||
<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>Комадна для определения рабочего стола</strong></p>
|
||||
|
||||
<p>Введите команду, которая будет запущеная для desktop DataEngine. По умолчанию <code>qdbus org.kde.kwin /KWin currentDesktop</code>.</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>
|
||||
|
||||
<h1>PTM desktop panel</h1>
|
||||
|
||||
<p>Начиная с версии 1.11.0 PyTextMonitor предоставляет минималистичную панель для мониторинга за рабочими столами, написанный на <code>C++</code>. И да, он выглядит, как аналогичная панель в Awesome.</p>
|
||||
|
||||
<h2>Настройка Desktop panel</h2>
|
||||
|
||||
<p><strong>Включить фон</strong></p>
|
||||
|
||||
<p>Снимите галочку, чтобы отключить стандартный фон виджета и установить прозрачный.</p>
|
||||
|
||||
<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>$mark</code> - показать метку, если данный рабочий стол активен</li>
|
||||
<li>тег <code>$name</code> - имя рабочего стола</li>
|
||||
<li>тег <code>$number</code> - номер рабочего стола</li>
|
||||
<li>тег <code>$total</code> - общее число рабочих столов</li>
|
||||
</ul>
|
||||
|
||||
<p><strong>Команда</strong></p>
|
||||
|
||||
<p>Введите команду, которая будет запущена по клику левой кнопкой мыши на выбранном рабочем столе. Доступны те же переменные, что и для шаблонов. По умолчанию <code>dbus org.kde.kwin /KWin setCurrentDesktop $number</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
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
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
|
Reference in New Issue
Block a user