diff --git a/_posts/2014-12-19-aw-v21-bells-and-whistles.html b/_posts/2014-12-19-aw-v21-bells-and-whistles.html index 4426c46..b15d7f0 100644 --- a/_posts/2014-12-19-aw-v21-bells-and-whistles.html +++ b/_posts/2014-12-19-aw-v21-bells-and-whistles.html @@ -4,7 +4,7 @@ type: paper hastr: true layout: paper tags: awesome-widgets, pytextmonitor -title: Awesome Widgets 2.1 - bells and whistles +title: Awesome Widgets - bells and whistles short: aw-v21-bells-and-whistles description: The paper deals with settings of a custom scripts and graphical bars in the new version of Awesome Widgets (2.1). --- @@ -12,7 +12,7 @@ description: The paper deals with settings of a custom scripts and graphical bar

For a start it is highly recommended copy file $HOME/.kde4/share/config/extsysmon.conf after widget update before you open widget settings, because old and new script settings are incompatible. Also I should note that these features can be configured from graphical interface, but I will describe how it can be done by simply editing the desktop file.

Bars

-

Bars are stored in the two directories: /usr/share/apps/plasma_applet_awesome-widget/desktops/ and $HOME/.kde4/share/apps/plasma_applet_awesome-widget/desktops/ (path may be differ in depend from your distro). Settings in the home directory have a higher priority that global ones. Configuration files have the following fields:

+

Bars are stored in the two directories: /usr/share/awesomewidgets/desktops/ and $HOME/.local/share/awesomewidgets/desktops/ (path may be differ in depend from your distro). Settings in the home directory have a higher priority that global ones. Configuration files have the following fields:

@@ -77,8 +77,56 @@ description: The paper deals with settings of a custom scripts and graphical bar
+

Quotes

+

Quotes are stored in the two directories: /usr/share/awesomewidgets/quotes/ and $HOME/.local/share/awesomewidgets/quotes/ (path may be differ in depend from your distro). Settings in the home directory have a higher priority that global ones. Configuration files have the following fields:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldRequiredValueDefault
Nameyesquotes namenone
Commentnocommentempty
X-AW-Tickeryesticker from Yahoo! Finance systemEURUSD=X
X-AW-Activenowhether or not the quotes is activetrue
X-AW-Intervalnoupdate interval in standard widget intervals1
X-AW-Numberyesunique number which will be associated with the scriptrandom number which is less than 1000
+

Scripts

-

Scripts are stored in the two directories: /usr/share/apps/plasma_engine_extsysmon/scripts/ and $HOME/.kde4/share/apps/plasma_engine_extsysmon/scripts/ (path may be differ in depend from your distro). Settings in the home directory have a higher priority that global ones. To enable script you should type it on the output field. Configuration files have the following fields:

+

Scripts are stored in the two directories: /usr/share/awesomewidgets/scripts/ and $HOME/.local/share/awesomewidgets/scripts/ (path may be differ in depend from your distro). Settings in the home directory have a higher priority that global ones. Configuration files have the following fields:

@@ -135,4 +183,70 @@ description: The paper deals with settings of a custom scripts and graphical bar + + + + + + + + + + + +
update interval in standard widget intervals 1
X-AW-Numberyesunique number which will be associated with the scriptrandom number which is less than 1000
X-AW-Filtersnocomma separated filters from awesomewidgets-extscripts-filters.json
+ +

Upgrade

+

Scripts are stored in the two directories: /usr/share/awesomewidgets/upgrade/ and $HOME/.local/share/awesomewidgets/upgrade/ (path may be differ in depend from your distro). Settings in the home directory have a higher priority that global ones. Configuration files have the following fields:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldRequiredValueDefault
Nameyesupgrade namenone
Commentnocommentempty
Execyespath to executable file/usr/bin/true
X-AW-Activenowhether or not the upgrade script is activetrue
X-AW-Nullnothe number of lines which should be skipped in output0
X-AW-Intervalnoupdate interval in standard widget intervals1
X-AW-Numberyesunique number which will be associated with the upgrade scriptrandom number which is less than 1000
\ No newline at end of file diff --git a/ru/_posts/2014-12-19-aw-v21-bells-and-whistles.html b/ru/_posts/2014-12-19-aw-v21-bells-and-whistles.html index edecc73..e344de3 100644 --- a/ru/_posts/2014-12-19-aw-v21-bells-and-whistles.html +++ b/ru/_posts/2014-12-19-aw-v21-bells-and-whistles.html @@ -4,7 +4,7 @@ type: paper hastr: true layout: paper tags: awesome-widgets, pytextmonitor -title: Awesome Widgets 2.1 - свистелки и перделки +title: Awesome Widgets - свистелки и перделки short: aw-v21-bells-and-whistles description: Данная статья посвящена обсуждению настройки своих скриптов и графических баров в новой версии Awesome Widgets (2.1). --- @@ -12,7 +12,7 @@ description: Данная статья посвящена обсуждению

Для начала, я настоятельно рекомендую для после обновления не открывая настроек виджета скопировать в безопасное место файл $HOME/.kde4/share/config/extsysmon.conf, так как старые настройки кастомных скриптов теперь несовместимы. Вообще, следует заметить, что обе новых фичи можно настраивать и из графического интерфейса, однако я опишу, как это делается простым редактированием desktop файлов.

Бары

-

Бары хранятся в двух директориях: /usr/share/apps/plasma_applet_awesome-widget/desktops/ и $HOME/.kde4/share/apps/plasma_applet_awesome-widget/desktops/ (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:

+

Бары хранятся в двух директориях: /usr/share/awesomewidgets/desktops/ и $HOME/.local/share/awesomewidgets/desktops/ (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:

@@ -77,8 +77,56 @@ description: Данная статья посвящена обсуждению
+

Котировки

+

Котировки хранятся в двух директориях: /usr/share/awesomewidgets/quotes/ и $HOME/.local/share/awesomewidgets/quotes/ (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ПолеОбязательноеЗначениеПо-умолчанию
Nameдаимя котировокnone
Commentнеткомментарийempty
X-AW-Tickerдатикер из системы Yahoo! FinanceEURUSD=X
X-AW-Activeнетактивны или нет данные котировкиtrue
X-AW-Intervalдаинтервал запуска котировок в стандартных интервалах обновления виджета1
X-AW-Numberдауникальный номер, который будет ассоциирован с данными котировкамислучайное число меньше 1000
+

Скрипты

-

Скрипты хранятся в двух директориях: /usr/share/apps/plasma_engine_extsysmon/scripts/ и $HOME/.kde4/share/apps/pplasma_engine_extsysmon/scripts/ (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Для того, чтобы активировать скрипт необходимо прописать нужный тег в поле вывода. Файлы настроек имеют следующие поля:

+

Скрипты хранятся в двух директориях: /usr/share/awesomewidgets/scripts/ и $HOME/.local/share/awesomewidgets/scripts/ (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:

@@ -135,4 +183,70 @@ description: Данная статья посвящена обсуждению + + + + + + + + + + + + +
интервал запуска скрипта в стандартных интервалах обновления виджета 1
X-AW-Numberдауникальный номер, который будет ассоциирован с данным скриптомслучайное число меньше 1000
X-AW-Filtersнетфильтры из awesomewidgets-extscripts-filters.json разделенные запятой
+ +

Обновления

+

Обновления хранятся в двух директориях: /usr/share/awesomewidgets/upgrade/ и $HOME/.local/share/awesomewidgets/upgrade/ (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ПолеОбязательноеЗначениеПо-умолчанию
Nameдаимя скрипта обновленийnone
Commentнеткомментарийempty
Execдапуть к исполняемому файлу/usr/bin/true
X-AW-Activeнетактивен или нет данный скрипт обновленияtrue
X-AW-Nullнетчисло строк stdout, которые будут пропущены при подсчете0
X-AW-Intervalдаинтервал запуска скрипта в стандартных интервалах обновления виджета1
X-AW-Numberдауникальный номер, который будет ассоциирован с данным скриптомслучайное число меньше 1000