mirror of
https://github.com/arcan1s/arcanis.me.git
synced 2025-04-24 23:37:19 +00:00
update to recent changes
This commit is contained in:
parent
12045ede9d
commit
de5bac7d9c
@ -4,7 +4,7 @@ type: paper
|
|||||||
hastr: true
|
hastr: true
|
||||||
layout: paper
|
layout: paper
|
||||||
tags: awesome-widgets, pytextmonitor
|
tags: awesome-widgets, pytextmonitor
|
||||||
title: Awesome Widgets 2.1 - bells and whistles
|
title: Awesome Widgets - bells and whistles
|
||||||
short: aw-v21-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).
|
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
|
|||||||
<p>For a start it is highly recommended copy file <code>$HOME/.kde4/share/config/extsysmon.conf</code> 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.</p>
|
<p>For a start it is highly recommended copy file <code>$HOME/.kde4/share/config/extsysmon.conf</code> 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.</p>
|
||||||
|
|
||||||
<h2><a href="#bars" class="anchor" id="bars"><span class="octicon octicon-link"></span></a>Bars</h2>
|
<h2><a href="#bars" class="anchor" id="bars"><span class="octicon octicon-link"></span></a>Bars</h2>
|
||||||
<p>Bars are stored in the two directories: <code>/usr/share/apps/plasma_applet_awesome-widget/desktops/</code> and <code>$HOME/.kde4/share/apps/plasma_applet_awesome-widget/desktops/</code> (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:</p>
|
<p>Bars are stored in the two directories: <code>/usr/share/awesomewidgets/desktops/</code> and <code>$HOME/.local/share/awesomewidgets/desktops/</code> (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:</p>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
@ -77,8 +77,56 @@ description: The paper deals with settings of a custom scripts and graphical bar
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<h2><a href="#quotes" class="anchor" id="quotes"><span class="octicon octicon-link"></span></a>Quotes</h2>
|
||||||
|
<p>Quotes are stored in the two directories: <code>/usr/share/awesomewidgets/quotes/</code> and <code>$HOME/.local/share/awesomewidgets/quotes/</code> (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:</p>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>Field</th>
|
||||||
|
<th>Required</th>
|
||||||
|
<th>Value</th>
|
||||||
|
<th>Default</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<td>yes</td>
|
||||||
|
<td>quotes name</td>
|
||||||
|
<td>none</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Comment</th>
|
||||||
|
<td>no</td>
|
||||||
|
<td>comment</td>
|
||||||
|
<td>empty</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Ticker</th>
|
||||||
|
<td>yes</td>
|
||||||
|
<td>ticker from Yahoo! Finance system</td>
|
||||||
|
<td>EURUSD=X</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Active</th>
|
||||||
|
<td>no</td>
|
||||||
|
<td>whether or not the quotes is active</td>
|
||||||
|
<td>true</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Interval</th>
|
||||||
|
<td>no</td>
|
||||||
|
<td>update interval in standard widget intervals</td>
|
||||||
|
<td>1</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Number</th>
|
||||||
|
<td>yes</td>
|
||||||
|
<td>unique number which will be associated with the script</td>
|
||||||
|
<td>random number which is less than 1000</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
<h2><a href="#scripts" class="anchor" id="scripts"><span class="octicon octicon-link"></span></a>Scripts</h2>
|
<h2><a href="#scripts" class="anchor" id="scripts"><span class="octicon octicon-link"></span></a>Scripts</h2>
|
||||||
<p>Scripts are stored in the two directories: <code>/usr/share/apps/plasma_engine_extsysmon/scripts/</code> and <code>$HOME/.kde4/share/apps/plasma_engine_extsysmon/scripts/</code> (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:</p>
|
<p>Scripts are stored in the two directories: <code>/usr/share/awesomewidgets/scripts/</code> and <code>$HOME/.local/share/awesomewidgets/scripts/</code> (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:</p>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
@ -135,4 +183,70 @@ description: The paper deals with settings of a custom scripts and graphical bar
|
|||||||
<td>update interval in standard widget intervals</td>
|
<td>update interval in standard widget intervals</td>
|
||||||
<td>1</td>
|
<td>1</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Number</th>
|
||||||
|
<td>yes</td>
|
||||||
|
<td>unique number which will be associated with the script</td>
|
||||||
|
<td>random number which is less than 1000</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Filters</th>
|
||||||
|
<td>no</td>
|
||||||
|
<td>comma separated filters from <code>awesomewidgets-extscripts-filters.json</code></td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<h2><a href="#upgrade" class="anchor" id="upgrade"><span class="octicon octicon-link"></span></a>Upgrade</h2>
|
||||||
|
<p>Scripts are stored in the two directories: <code>/usr/share/awesomewidgets/upgrade/</code> and <code>$HOME/.local/share/awesomewidgets/upgrade/</code> (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:</p>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>Field</th>
|
||||||
|
<th>Required</th>
|
||||||
|
<th>Value</th>
|
||||||
|
<th>Default</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<td>yes</td>
|
||||||
|
<td>upgrade name</td>
|
||||||
|
<td>none</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Comment</th>
|
||||||
|
<td>no</td>
|
||||||
|
<td>comment</td>
|
||||||
|
<td>empty</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Exec</th>
|
||||||
|
<td>yes</td>
|
||||||
|
<td>path to executable file</td>
|
||||||
|
<td>/usr/bin/true</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Active</th>
|
||||||
|
<td>no</td>
|
||||||
|
<td>whether or not the upgrade script is active</td>
|
||||||
|
<td>true</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Null</th>
|
||||||
|
<td>no</td>
|
||||||
|
<td>the number of lines which should be skipped in output</td>
|
||||||
|
<td>0</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Interval</th>
|
||||||
|
<td>no</td>
|
||||||
|
<td>update interval in standard widget intervals</td>
|
||||||
|
<td>1</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Number</th>
|
||||||
|
<td>yes</td>
|
||||||
|
<td>unique number which will be associated with the upgrade script</td>
|
||||||
|
<td>random number which is less than 1000</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
@ -4,7 +4,7 @@ type: paper
|
|||||||
hastr: true
|
hastr: true
|
||||||
layout: paper
|
layout: paper
|
||||||
tags: awesome-widgets, pytextmonitor
|
tags: awesome-widgets, pytextmonitor
|
||||||
title: Awesome Widgets 2.1 - свистелки и перделки
|
title: Awesome Widgets - свистелки и перделки
|
||||||
short: aw-v21-bells-and-whistles
|
short: aw-v21-bells-and-whistles
|
||||||
description: Данная статья посвящена обсуждению настройки своих скриптов и графических баров в новой версии Awesome Widgets (2.1).
|
description: Данная статья посвящена обсуждению настройки своих скриптов и графических баров в новой версии Awesome Widgets (2.1).
|
||||||
---
|
---
|
||||||
@ -12,7 +12,7 @@ description: Данная статья посвящена обсуждению
|
|||||||
<p>Для начала, я настоятельно рекомендую для после обновления <b>не открывая настроек виджета</b> скопировать в безопасное место файл <code>$HOME/.kde4/share/config/extsysmon.conf</code>, так как старые настройки кастомных скриптов теперь несовместимы. Вообще, следует заметить, что обе новых фичи можно настраивать и из графического интерфейса, однако я опишу, как это делается простым редактированием desktop файлов.</p>
|
<p>Для начала, я настоятельно рекомендую для после обновления <b>не открывая настроек виджета</b> скопировать в безопасное место файл <code>$HOME/.kde4/share/config/extsysmon.conf</code>, так как старые настройки кастомных скриптов теперь несовместимы. Вообще, следует заметить, что обе новых фичи можно настраивать и из графического интерфейса, однако я опишу, как это делается простым редактированием desktop файлов.</p>
|
||||||
|
|
||||||
<h2><a href="#bars" class="anchor" id="bars"><span class="octicon octicon-link"></span></a>Бары</h2>
|
<h2><a href="#bars" class="anchor" id="bars"><span class="octicon octicon-link"></span></a>Бары</h2>
|
||||||
<p>Бары хранятся в двух директориях: <code>/usr/share/apps/plasma_applet_awesome-widget/desktops/</code> и <code>$HOME/.kde4/share/apps/plasma_applet_awesome-widget/desktops/</code> (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:</p>
|
<p>Бары хранятся в двух директориях: <code>/usr/share/awesomewidgets/desktops/</code> и <code>$HOME/.local/share/awesomewidgets/desktops/</code> (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:</p>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
@ -77,8 +77,56 @@ description: Данная статья посвящена обсуждению
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<h2><a href="#quotes" class="anchor" id="quotes"><span class="octicon octicon-link"></span></a>Котировки</h2>
|
||||||
|
<p>Котировки хранятся в двух директориях: <code>/usr/share/awesomewidgets/quotes/</code> и <code>$HOME/.local/share/awesomewidgets/quotes/</code> (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:</p>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>Поле</th>
|
||||||
|
<th>Обязательное</th>
|
||||||
|
<th>Значение</th>
|
||||||
|
<th>По-умолчанию</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<td>да</td>
|
||||||
|
<td>имя котировок</td>
|
||||||
|
<td>none</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Comment</th>
|
||||||
|
<td>нет</td>
|
||||||
|
<td>комментарий</td>
|
||||||
|
<td>empty</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Ticker</th>
|
||||||
|
<td>да</td>
|
||||||
|
<td>тикер из системы Yahoo! Finance</td>
|
||||||
|
<td>EURUSD=X</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Active</th>
|
||||||
|
<td>нет</td>
|
||||||
|
<td>активны или нет данные котировки</td>
|
||||||
|
<td>true</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Interval</th>
|
||||||
|
<td>да</td>
|
||||||
|
<td>интервал запуска котировок в стандартных интервалах обновления виджета</td>
|
||||||
|
<td>1</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Number</th>
|
||||||
|
<td>да</td>
|
||||||
|
<td>уникальный номер, который будет ассоциирован с данными котировками</td>
|
||||||
|
<td>случайное число меньше 1000</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
<h2><a href="#scripts" class="anchor" id="scripts"><span class="octicon octicon-link"></span></a>Скрипты</h2>
|
<h2><a href="#scripts" class="anchor" id="scripts"><span class="octicon octicon-link"></span></a>Скрипты</h2>
|
||||||
<p>Скрипты хранятся в двух директориях: <code>/usr/share/apps/plasma_engine_extsysmon/scripts/</code> и <code>$HOME/.kde4/share/apps/pplasma_engine_extsysmon/scripts/</code> (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Для того, чтобы активировать скрипт необходимо прописать нужный тег в поле вывода. Файлы настроек имеют следующие поля:</p>
|
<p>Скрипты хранятся в двух директориях: <code>/usr/share/awesomewidgets/scripts/</code> и <code>$HOME/.local/share/awesomewidgets/scripts/</code> (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:</p>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
@ -135,4 +183,70 @@ description: Данная статья посвящена обсуждению
|
|||||||
<td>интервал запуска скрипта в стандартных интервалах обновления виджета</td>
|
<td>интервал запуска скрипта в стандартных интервалах обновления виджета</td>
|
||||||
<td>1</td>
|
<td>1</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Number</th>
|
||||||
|
<td>да</td>
|
||||||
|
<td>уникальный номер, который будет ассоциирован с данным скриптом</td>
|
||||||
|
<td>случайное число меньше 1000</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Filters</th>
|
||||||
|
<td>нет</td>
|
||||||
|
<td>фильтры из <code>awesomewidgets-extscripts-filters.json</code> разделенные запятой</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<h2><a href="#upgrade" class="anchor" id="upgrade"><span class="octicon octicon-link"></span></a>Обновления</h2>
|
||||||
|
<p>Обновления хранятся в двух директориях: <code>/usr/share/awesomewidgets/upgrade/</code> и <code>$HOME/.local/share/awesomewidgets/upgrade/</code> (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Файлы настроек имеют следующие поля:</p>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>Поле</th>
|
||||||
|
<th>Обязательное</th>
|
||||||
|
<th>Значение</th>
|
||||||
|
<th>По-умолчанию</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<td>да</td>
|
||||||
|
<td>имя скрипта обновлений</td>
|
||||||
|
<td>none</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Comment</th>
|
||||||
|
<td>нет</td>
|
||||||
|
<td>комментарий</td>
|
||||||
|
<td>empty</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Exec</th>
|
||||||
|
<td>да</td>
|
||||||
|
<td>путь к исполняемому файлу</td>
|
||||||
|
<td>/usr/bin/true</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Active</th>
|
||||||
|
<td>нет</td>
|
||||||
|
<td>активен или нет данный скрипт обновления</td>
|
||||||
|
<td>true</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Null</th>
|
||||||
|
<td>нет</td>
|
||||||
|
<td>число строк stdout, которые будут пропущены при подсчете</td>
|
||||||
|
<td>0</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Interval</th>
|
||||||
|
<td>да</td>
|
||||||
|
<td>интервал запуска скрипта в стандартных интервалах обновления виджета</td>
|
||||||
|
<td>1</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>X-AW-Number</th>
|
||||||
|
<td>да</td>
|
||||||
|
<td>уникальный номер, который будет ассоциирован с данным скриптом</td>
|
||||||
|
<td>случайное число меньше 1000</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
Reference in New Issue
Block a user