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 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:
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:
Field | +Required | +Value | +Default | +
---|---|---|---|
Name | +yes | +quotes name | +none | +
Comment | +no | +comment | +empty | +
X-AW-Ticker | +yes | +ticker from Yahoo! Finance system | +EURUSD=X | +
X-AW-Active | +no | +whether or not the quotes is active | +true | +
X-AW-Interval | +no | +update interval in standard widget intervals | +1 | +
X-AW-Number | +yes | +unique number which will be associated with the script | +random number which is less than 1000 | +
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:
update interval in standard widget intervals | 1 | ||
X-AW-Number | +yes | +unique number which will be associated with the script | +random number which is less than 1000 | +
---|---|---|---|
X-AW-Filters | +no | +comma separated filters from awesomewidgets-extscripts-filters.json |
+ + |
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:
Field | +Required | +Value | +Default | +
---|---|---|---|
Name | +yes | +upgrade name | +none | +
Comment | +no | +comment | +empty | +
Exec | +yes | +path to executable file | +/usr/bin/true | +
X-AW-Active | +no | +whether or not the upgrade script is active | +true | +
X-AW-Null | +no | +the number of lines which should be skipped in output | +0 | +
X-AW-Interval | +no | +update interval in standard widget intervals | +1 | +
X-AW-Number | +yes | +unique number which will be associated with the upgrade script | +random number which is less than 1000 | +
Для начала, я настоятельно рекомендую для после обновления не открывая настроек виджета скопировать в безопасное место файл $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/
(пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:
Котировки хранятся в двух директориях: /usr/share/awesomewidgets/quotes/
и $HOME/.local/share/awesomewidgets/quotes/
(пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:
Поле | +Обязательное | +Значение | +По-умолчанию | +
---|---|---|---|
Name | +да | +имя котировок | +none | +
Comment | +нет | +комментарий | +empty | +
X-AW-Ticker | +да | +тикер из системы Yahoo! Finance | +EURUSD=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/
(пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:
интервал запуска скрипта в стандартных интервалах обновления виджета | 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 | +