some site update

This commit is contained in:
Evgenii Alekseev 2017-05-03 19:34:06 +03:00
parent d2dec34f6b
commit c19c4e85aa
9 changed files with 104 additions and 10 deletions

View File

@ -33,9 +33,10 @@ ones. Common settings for all extensions are:
| Comment | no | comment | empty | | Comment | no | comment | empty |
| X-AW-Active | no | whether or not the item is active, N/A for bars | true | | X-AW-Active | no | whether or not the item is active, N/A for bars | true |
| X-AW-ApiVersion | yes | API compatibility index. Do not touch it if you don't know what does it mean | 0 | | X-AW-ApiVersion | yes | API compatibility index. Do not touch it if you don't know what does it mean | 0 |
| X-AW-Interval | no | update interval in standard widget intervals, N/A for bars | 1 | | X-AW-Interval | no | update interval in standard widget intervals, N/A for bars. Will be ignored if any of `X-AW-Schedule` or `X-AW-Socket` set | 1 |
| X-AW-Number | yes | unique number which will be associated with the item | random number which is less than 1000 | | X-AW-Number | yes | unique number which will be associated with the item | random number which is less than 1000 |
| X-AW-Schedule | no | cron-like update schedule. Allowed fields `minutes hours days month weekdays`, allowed additional characters `-`, `*`, `,` | (empty) |
| X-AW-Socket | no | path to socket file. Extension will be activated in case if socket triggered | (empty) |
## <a href="#bars" class="anchor" id="bars"><span class="octicon octicon-link"></span></a>Bars ## <a href="#bars" class="anchor" id="bars"><span class="octicon octicon-link"></span></a>Bars
@ -65,6 +66,15 @@ following fields:
|-------|----------|-------|---------| |-------|----------|-------|---------|
| X-AW-Ticker | yes | ticker from Yahoo! Finance system | EURUSD=X | | X-AW-Ticker | yes | ticker from Yahoo! Finance system | EURUSD=X |
## <a href="#quotes" class="anchor" id="quotes"><span class="octicon octicon-link"></span></a>Requests
GET requests to external sites. Directory is `requests`, configuration files have
the following fields:
| Field | Required | Value | Default |
|-------|----------|-------|---------|
| X-AW-Url | yes | url for GET request | https://httpbin.org/get |
## <a href="#scripts" class="anchor" id="scripts"><span class="octicon octicon-link"></span></a>Scripts ## <a href="#scripts" class="anchor" id="scripts"><span class="octicon octicon-link"></span></a>Scripts
Directory is `scripts`, configuration files have the following fields: Directory is `scripts`, configuration files have the following fields:

View File

@ -36,10 +36,11 @@ fields inside `[Desktop Entry]` section:
| Name | yes | formatter name | none | | Name | yes | formatter name | none |
| Comment | no | comment | empty | | Comment | no | comment | empty |
| X-AW-ApiVersion | yes | API compatibility index. Do not touch it if you don't know what does it mean | 0 | | X-AW-ApiVersion | yes | API compatibility index. Do not touch it if you don't know what does it mean | 0 |
| X-AW-Type | no | formatter type. The following types are supported: `NoFormat`, `DateTime`, `Float`, `List`, `Script`, `String` | NoFormat | | X-AW-Type | no | formatter type. The following types are supported: `NoFormat`, `DateTime`, `Float`, `Json`, `List`, `Script`, `String` | NoFormat |
Additionaly the following fields will be added by common extesions: `X-AW-Active`, Additionaly the following fields will be added by common extesions: `X-AW-Active`,
`X-AW-Interval`, `X-AW-Number`, but they will be ignored. `X-AW-Interval`, `X-AW-Number`, `X-AW-Schedule`, `X-AW-Socket`, but they will be
ignored.
Each formatter type has own behaviour and own settings and they are described Each formatter type has own behaviour and own settings and they are described
below. Also there are system-wide settings which are stored in `/usr/share/awesomewidgets/formatters/`, system formatters will be overwritten by below. Also there are system-wide settings which are stored in `/usr/share/awesomewidgets/formatters/`, system formatters will be overwritten by
@ -75,6 +76,17 @@ Converts any number to string.
Please note that actual formula is `X-AW-Multiplier * value + X-AW-Summand`. Please note that actual formula is `X-AW-Multiplier * value + X-AW-Summand`.
## <a href="#formatter-float" class="anchor" id="formatter-float"><span class="octicon octicon-link"></span></a>Json formatter
Extracts values from json.
| Field | Required | Value | Default |
| -------------------|----------|----------------------------------|------------|
| X-AW-Path | yes | path to json value | (empty) |
Path should be separated only by dots. Numbers in path will be interpret as element
index in array.
## <a href="#formatter-list" class="anchor" id="formatter-list"><span class="octicon octicon-link"></span></a>List formatter ## <a href="#formatter-list" class="anchor" id="formatter-list"><span class="octicon octicon-link"></span></a>List formatter
Coverts list of string objects to string. Coverts list of string objects to string.
@ -82,7 +94,7 @@ Coverts list of string objects to string.
| Field | Required | Value | Default | | Field | Required | Value | Default |
| -------------------|----------|----------------------------------|------------| | -------------------|----------|----------------------------------|------------|
| X-AW-Filter | no | filter by this regular expression | (empty) | | X-AW-Filter | no | filter by this regular expression | (empty) |
| X-AW-Separator | no | use this separator to join strings | (empty | | X-AW-Separator | no | use this separator to join strings | (empty) |
| X-AW-Sort | no | boolean, sort or not list | false | | X-AW-Sort | no | boolean, sort or not list | false |
## <a href="#formatter-script" class="anchor" id="formatter-script"><span class="octicon octicon-link"></span></a>String formatter ## <a href="#formatter-script" class="anchor" id="formatter-script"><span class="octicon octicon-link"></span></a>String formatter

1
favicon.ico Symbolic link
View File

@ -0,0 +1 @@
resources/icon.ico

View File

@ -1 +0,0 @@
{"name":"Arcan1s.github.io","tagline":"My website project page","body":"### Welcome to GitHub Pages.\r\nThis automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch:\r\n\r\n```\r\n$ cd your_repo_root/repo_name\r\n$ git fetch origin\r\n$ git checkout gh-pages\r\n```\r\n\r\nIf you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.\r\n\r\n### Designer Templates\r\nWe've crafted some handsome templates for you to use. Go ahead and continue to layouts to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved if it remained markdown format.\r\n\r\n### Rather Drive Stick?\r\nIf you prefer to not use the automatic generator, push a branch named `gh-pages` to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator written by our own Tom Preston-Werner. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.\r\n\r\n### Authors and Contributors\r\nYou can @mention a GitHub username to generate a link to their profile. The resulting `<a>` element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (@defunkt), PJ Hyett (@pjhyett), and Tom Preston-Werner (@mojombo) founded GitHub.\r\n\r\n### Support or Contact\r\nHaving trouble with Pages? Check out the documentation at http://help.github.com/pages or contact support@github.com and well help you sort it out.\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}

View File

@ -46,6 +46,13 @@ Also this packages has an additional system [DataEngine]
{% for devel in page.developers %} {% for devel in page.developers %}
* {{ devel }}{% endfor %} * {{ devel }}{% endfor %}
Special thanks:
* [<img src="/resources/logo_CLion.svg" alt="CLion" style="width: 100px;"/>](//www.jetbrains.com/clion/)
* [Yahoo! Finance](//finance.yahoo.com/)
* [Yahoo! Weather](/weather.yahoo.com/)
* [OpenWeatherMap](//openweathermap.org/)
### <a href="#license" class="anchor" id="license"><span class="octicon octicon-link"></span></a>License ### <a href="#license" class="anchor" id="license"><span class="octicon octicon-link"></span></a>License
* {{ page.license }} * {{ page.license }}
@ -217,6 +224,7 @@ Available flags are in the table below.
| `$pscount` | Number of running processes. | 1.8.0 | | `$pscount` | Number of running processes. | 1.8.0 |
| `$pstotal` | Total number of processes. | 1.8.0 | | `$pstotal` | Total number of processes. | 1.8.0 |
| `$pkgcountN` | Number of packages, which available to upgrade for command N. | 1.8.0 | | `$pkgcountN` | Number of packages, which available to upgrade for command N. | 1.8.0 |
| `$responseN` | Web response for url N. | 3.3.0 |
| `$customN` | Get output from custom command N. For example `$custom0`. | 1.9.0 | | `$customN` | Get output from custom command N. For example `$custom0`. | 1.9.0 |
| `$desktop` | Name of the current desktop. | 2.0.0 | | `$desktop` | Name of the current desktop. | 2.0.0 |
| `$ndesktop` | Number of the current desktop. | 2.0.0 | | `$ndesktop` | Number of the current desktop. | 2.0.0 |
@ -411,6 +419,12 @@ Farenheit, Kelvin, Reaumur, cm^-1, kJ/mol, kcal/mol.
**AC offline tag:** Line which will be shown when AC is offline. Default is `( )`. **AC offline tag:** Line which will be shown when AC is offline. Default is `( )`.
**Enable remote telemetry:** Enable upload of your configuration to remote server.
**History count:** Total count of stored configurations localy.
**Telemetry ID:** Unique client ID used for remote telemetry.
### <a href="#tooltips" class="anchor" id="tooltips"><span class="octicon octicon-link"></span></a>Tooltips ### <a href="#tooltips" class="anchor" id="tooltips"><span class="octicon octicon-link"></span></a>Tooltips
Since version 1.7.0 CPU, CPU clock, memory, swap, network and battery support Since version 1.7.0 CPU, CPU clock, memory, swap, network and battery support

18
resources/logo_CLion.svg Normal file
View File

@ -0,0 +1,18 @@
<svg id="Logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 405.41 90.16">
<title>logo_CLion</title>
<g>
<g>
<rect y="3.67" width="85.04" height="85.04"/>
<path d="M254.86,179.95v-0.06A10.89,10.89,0,0,1,266,168.81a11.05,11.05,0,0,1,8.45,3.31l-3,3.46a7.91,7.91,0,0,0-5.48-2.42c-3.61,0-6.21,3-6.21,6.67v0.06c0,3.67,2.54,6.73,6.21,6.73,2.45,0,3.95-1,5.63-2.51l3,3a11,11,0,0,1-8.78,3.83,10.82,10.82,0,0,1-11-11" transform="translate(-247.29 -154.92)" fill="#fff"/>
<path d="M277.88,169.16h4.72v17.43H292v4H277.88V169.16Z" transform="translate(-247.29 -154.92)" fill="#fff"/>
<rect x="7.97" y="72.77" width="31.89" height="5.31" fill="#fff"/>
</g>
<g>
<path d="M352.73,201.34v-0.24c0-24.18,18.23-44,44.35-44,16,0,25.64,5.35,33.54,13.12L418.7,184c-6.56-6-13.24-9.6-21.75-9.6-14.34,0-24.67,11.91-24.67,26.49v0.24c0,14.58,10.08,26.73,24.67,26.73,9.72,0,15.67-3.89,22.36-10l11.91,12c-8.75,9.36-18.47,15.19-34.87,15.19C371.32,245.08,352.73,225.76,352.73,201.34Z" transform="translate(-247.29 -154.92)"/>
<path d="M434.74,158.57h18.71v68h42.41v17H434.74V158.57Z" transform="translate(-247.29 -154.92)"/>
<path d="M498.4,154.92h19.44v16.4H498.4v-16.4Zm0.49,23.57h18.47v65.13H498.89V178.49Z" transform="translate(-247.29 -154.92)"/>
<path d="M519.78,211.42v-0.24c0-18.71,15.07-33.9,35.36-33.9s35.12,14.95,35.12,33.66v0.24c0,18.71-15.07,33.9-35.36,33.9S519.78,230.13,519.78,211.42Zm52.25,0v-0.24c0-9.6-6.93-18-17.13-18-10.57,0-16.89,8.14-16.89,17.74v0.24c0,9.6,6.93,18,17.13,18C565.71,229.16,572,221,572,211.42Z" transform="translate(-247.29 -154.92)"/>
<path d="M593,178.49h18.47v9.23c4.25-5.47,9.72-10.45,19.08-10.45,14,0,22.11,9.23,22.11,24.18v42.16H634.24V207.29c0-8.75-4.13-13.24-11.18-13.24s-11.54,4.5-11.54,13.24v36.33H593V178.49Z" transform="translate(-247.29 -154.92)"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -36,6 +36,8 @@ short: aw-v21-bells-and-whistles
| X-AW-ApiVersion | да | совместимость API. Не меняйте, если не знаете, что делаете | 0 | | X-AW-ApiVersion | да | совместимость API. Не меняйте, если не знаете, что делаете | 0 |
| X-AW-Interval | да | интервал запуска расширения в стандартных интервалах обновления виджета, игнорируется барами | 1 | | X-AW-Interval | да | интервал запуска расширения в стандартных интервалах обновления виджета, игнорируется барами | 1 |
| X-AW-Number | да | уникальный номер, который будет ассоциирован с данным расширением | случайное число меньше 1000 | | X-AW-Number | да | уникальный номер, который будет ассоциирован с данным расширением | случайное число меньше 1000 |
| X-AW-Schedule | нет | cron-like расписание обновлений. Доступные поля `minutes hours days month weekdays`, доступные дополнительные символы `-`, `*`, `,` | (пусто) |
| X-AW-Socket | нет | путь к сокет-файлу. Значения будут обновлены в том случае, если сокет активирован | (пусто) |
## <a href="#bars" class="anchor" id="bars"><span class="octicon octicon-link"></span></a>Бары ## <a href="#bars" class="anchor" id="bars"><span class="octicon octicon-link"></span></a>Бары
@ -64,6 +66,15 @@ Yahoo! Finance"). Директория называется `quotes`, файлы
|------|--------------|----------|--------------| |------|--------------|----------|--------------|
| X-AW-Ticker | да | тикер из системы Yahoo! Finance | EURUSD=X | | X-AW-Ticker | да | тикер из системы Yahoo! Finance | EURUSD=X |
## <a href="#quotes" class="anchor" id="quotes"><span class="octicon octicon-link"></span></a>Запросы
GET запрос к внешнему ресурсу. Директория называется `requests`, файлы настроек
имеют следующие поля:
| Поле | Обязательное | Значение | По-умолчанию |
|------|--------------|----------|--------------|
| X-AW-Url | да | url для GET запроса | https://httpbin.org/get |
## <a href="#scripts" class="anchor" id="scripts"><span class="octicon octicon-link"></span></a>Скрипты ## <a href="#scripts" class="anchor" id="scripts"><span class="octicon octicon-link"></span></a>Скрипты
Директория называется `scripts`, файлы настроек имеют следующие поля: Директория называется `scripts`, файлы настроек имеют следующие поля:

View File

@ -37,10 +37,11 @@ cpu=myformatter
| Name | да | имя форматера | none | | Name | да | имя форматера | none |
| Comment | нет | комментарий | empty | | Comment | нет | комментарий | empty |
| X-AW-ApiVersion | да | совместимость API. Не меняйте, если не знаете, что делаете | 0 | | X-AW-ApiVersion | да | совместимость API. Не меняйте, если не знаете, что делаете | 0 |
| X-AW-Type | нет | тип форматера. Поддерживаются следующие типы: `NoFormat`, `DateTime`, `Float`, `List`, `Script`, `String` | NoFormat | | X-AW-Type | нет | тип форматера. Поддерживаются следующие типы: `NoFormat`, `DateTime`, `Float`, `Json`, `List`, `Script`, `String` | NoFormat |
Дополнительно следующте поля добавлены для совместимости:: `X-AW-Active`, Дополнительно следующте поля добавлены для совместимости:: `X-AW-Active`,
`X-AW-Interval`, `X-AW-Number`, но они будут проигнорированы. `X-AW-Interval`, `X-AW-Number`, `X-AW-Schedule`, `X-AW-Socket`, но они будут
проигнорированы.
Каждый тип форматера имеет свое поведение и свои настройки, которые описаны ниже. Каждый тип форматера имеет свое поведение и свои настройки, которые описаны ниже.
Также существуют системные настройки, которые хранятся в `/usr/share/awesomewidgets/formatters/`, Также существуют системные настройки, которые хранятся в `/usr/share/awesomewidgets/formatters/`,
@ -77,6 +78,17 @@ cpu=myformatter
Конечное значение будет получено по формуле `X-AW-Multiplier * value + X-AW-Summand`. Конечное значение будет получено по формуле `X-AW-Multiplier * value + X-AW-Summand`.
## <a href="#formatter-float" class="anchor" id="formatter-float"><span class="octicon octicon-link"></span></a>Json форматер
Извлекает сообщения из JSON.
| Поле | Обязательное | Значение | По-умолчанию |
| -------------------|--------------|----------------------------------|--------------|
| X-AW-Path | да | путь к значению в JSON | (пусто) |
Путь должен быть разделен точками. Числа в пути будут интерпретированы как индекс
элемента в массиве.
## <a href="#formatter-list" class="anchor" id="formatter-list"><span class="octicon octicon-link"></span></a>List форматер ## <a href="#formatter-list" class="anchor" id="formatter-list"><span class="octicon octicon-link"></span></a>List форматер
Конвертирует список строк в строку Конвертирует список строк в строку

View File

@ -48,6 +48,13 @@ Awesome"). Также пакет предоставляет дополнител
{% for devel in page.developers %} {% for devel in page.developers %}
* {{ devel }}{% endfor %} * {{ devel }}{% endfor %}
Отдельное спасибо:
* [<img src="/resources/logo_CLion.svg" alt="CLion" style="width: 100px;"/>](//www.jetbrains.com/clion/)
* [Yahoo! Finance](//finance.yahoo.com/)
* [Yahoo! Weather](/weather.yahoo.com/)
* [OpenWeatherMap](//openweathermap.org/)
### <a href="#license" class="anchor" id="license"><span class="octicon octicon-link"></span></a>Лицензия ### <a href="#license" class="anchor" id="license"><span class="octicon octicon-link"></span></a>Лицензия
* {{ page.license }} * {{ page.license }}
@ -223,6 +230,7 @@ html код. Смотри [вопрос](//github.com/arcan1s/awesome-widgets/is
| `$pscount` | Число запущенных процессов. | 1.8.0 | | `$pscount` | Число запущенных процессов. | 1.8.0 |
| `$pstotal` | Общее число процессов. | 1.8.0 | | `$pstotal` | Общее число процессов. | 1.8.0 |
| `$pkgcountN` | Число пакетов, доступных для обновления, для команды N. | 1.8.0 | | `$pkgcountN` | Число пакетов, доступных для обновления, для команды N. | 1.8.0 |
| `$responseN` | Ответ на веб запрос к URL N. | 3.3.0 |
| `$customN` | Получить данные из указанной команды N. Например, `$custom0`. | 1.9.0 | | `$customN` | Получить данные из указанной команды N. Например, `$custom0`. | 1.9.0 |
| `$desktop` | Имя текущего рабочего стола. | 2.0.0 | | `$desktop` | Имя текущего рабочего стола. | 2.0.0 |
| `$ndesktop` | Номер текущего рабочего стола. | 2.0.0 | | `$ndesktop` | Номер текущего рабочего стола. | 2.0.0 |
@ -422,6 +430,15 @@ three()
**AC offline тег:** Строка, которая будет показана, когда AC оффлайн. По **AC offline тег:** Строка, которая будет показана, когда AC оффлайн. По
умолчанию `( )`. умолчанию `( )`.
**Включить удаленную телеметрию:** Включить загрузку конфигурации на удаленный
сервер.
**Количество истории:** Общее количество конфигураций, которые будут сохранены
локально
**ID телеметрии:** Уникальный идентификатор клиента для загрузки на удаленный
сервер.
### <a href="#tooltips" class="anchor" id="tooltips"><span class="octicon octicon-link"></span></a>Тултипы ### <a href="#tooltips" class="anchor" id="tooltips"><span class="octicon octicon-link"></span></a>Тултипы
Начиная с версии 1.7.0, поля CPU, частота CPU, память, swap, сеть и батарея Начиная с версии 1.7.0, поля CPU, частота CPU, память, swap, сеть и батарея