mirror of
https://github.com/arcan1s/arcanis.me.git
synced 2025-07-15 06:05:47 +00:00
some site update
This commit is contained in:
@ -33,9 +33,10 @@ ones. Common settings for all extensions are:
|
||||
| Comment | no | comment | empty |
|
||||
| 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-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-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
|
||||
|
||||
@ -65,6 +66,15 @@ following fields:
|
||||
|-------|----------|-------|---------|
|
||||
| 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
|
||||
|
||||
Directory is `scripts`, configuration files have the following fields:
|
||||
|
@ -36,10 +36,11 @@ fields inside `[Desktop Entry]` section:
|
||||
| Name | yes | formatter name | none |
|
||||
| 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-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`,
|
||||
`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
|
||||
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`.
|
||||
|
||||
## <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
|
||||
|
||||
Coverts list of string objects to string.
|
||||
@ -82,7 +94,7 @@ Coverts list of string objects to string.
|
||||
| Field | Required | Value | Default |
|
||||
| -------------------|----------|----------------------------------|------------|
|
||||
| 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 |
|
||||
|
||||
## <a href="#formatter-script" class="anchor" id="formatter-script"><span class="octicon octicon-link"></span></a>String formatter
|
||||
|
Reference in New Issue
Block a user