diff --git a/_posts/2014-12-19-aw-v21-bells-and-whistles.md b/_posts/2014-12-19-aw-v21-bells-and-whistles.md index 5ab1fb9..309b529 100644 --- a/_posts/2014-12-19-aw-v21-bells-and-whistles.md +++ b/_posts/2014-12-19-aw-v21-bells-and-whistles.md @@ -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) | ## Bars @@ -65,6 +66,15 @@ following fields: |-------|----------|-------|---------| | X-AW-Ticker | yes | ticker from Yahoo! Finance system | EURUSD=X | +## 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 | + ## Scripts Directory is `scripts`, configuration files have the following fields: diff --git a/_posts/2016-06-05-aw-formatters-and-macros.md b/_posts/2016-06-05-aw-formatters-and-macros.md index 86e8603..284354a 100644 --- a/_posts/2016-06-05-aw-formatters-and-macros.md +++ b/_posts/2016-06-05-aw-formatters-and-macros.md @@ -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`. +## 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. + ## 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 | ## String formatter diff --git a/favicon.ico b/favicon.ico new file mode 120000 index 0000000..1e03f7e --- /dev/null +++ b/favicon.ico @@ -0,0 +1 @@ +resources/icon.ico \ No newline at end of file diff --git a/params.json b/params.json deleted file mode 100644 index 8d6d8e2..0000000 --- a/params.json +++ /dev/null @@ -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 `` 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 we’ll help you sort it out.\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} \ No newline at end of file diff --git a/projects/_posts/2013-02-21-awesome-widgets.md b/projects/_posts/2013-02-21-awesome-widgets.md index 31e9708..b3769e6 100644 --- a/projects/_posts/2013-02-21-awesome-widgets.md +++ b/projects/_posts/2013-02-21-awesome-widgets.md @@ -46,6 +46,13 @@ Also this packages has an additional system [DataEngine] {% for devel in page.developers %} * {{ devel }}{% endfor %} +Special thanks: + +* [CLion](//www.jetbrains.com/clion/) +* [Yahoo! Finance](//finance.yahoo.com/) +* [Yahoo! Weather](/weather.yahoo.com/) +* [OpenWeatherMap](//openweathermap.org/) + ### License * {{ page.license }} @@ -217,6 +224,7 @@ Available flags are in the table below. | `$pscount` | Number of running 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 | +| `$responseN` | Web response for url N. | 3.3.0 | | `$customN` | Get output from custom command N. For example `$custom0`. | 1.9.0 | | `$desktop` | Name 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 `( )`. +**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. + ### Tooltips Since version 1.7.0 CPU, CPU clock, memory, swap, network and battery support diff --git a/resources/logo_CLion.svg b/resources/logo_CLion.svg new file mode 100644 index 0000000..83c261d --- /dev/null +++ b/resources/logo_CLion.svg @@ -0,0 +1,18 @@ + diff --git a/ru/_posts/2014-12-19-aw-v21-bells-and-whistles.md b/ru/_posts/2014-12-19-aw-v21-bells-and-whistles.md index 52eec54..bff1640 100644 --- a/ru/_posts/2014-12-19-aw-v21-bells-and-whistles.md +++ b/ru/_posts/2014-12-19-aw-v21-bells-and-whistles.md @@ -36,6 +36,8 @@ short: aw-v21-bells-and-whistles | X-AW-ApiVersion | да | совместимость API. Не меняйте, если не знаете, что делаете | 0 | | X-AW-Interval | да | интервал запуска расширения в стандартных интервалах обновления виджета, игнорируется барами | 1 | | X-AW-Number | да | уникальный номер, который будет ассоциирован с данным расширением | случайное число меньше 1000 | +| X-AW-Schedule | нет | cron-like расписание обновлений. Доступные поля `minutes hours days month weekdays`, доступные дополнительные символы `-`, `*`, `,` | (пусто) | +| X-AW-Socket | нет | путь к сокет-файлу. Значения будут обновлены в том случае, если сокет активирован | (пусто) | ## Бары @@ -64,6 +66,15 @@ Yahoo! Finance"). Директория называется `quotes`, файлы |------|--------------|----------|--------------| | X-AW-Ticker | да | тикер из системы Yahoo! Finance | EURUSD=X | +## Запросы + +GET запрос к внешнему ресурсу. Директория называется `requests`, файлы настроек +имеют следующие поля: + +| Поле | Обязательное | Значение | По-умолчанию | +|------|--------------|----------|--------------| +| X-AW-Url | да | url для GET запроса | https://httpbin.org/get | + ## Скрипты Директория называется `scripts`, файлы настроек имеют следующие поля: diff --git a/ru/_posts/2016-06-05-aw-formatters-and-macros.md b/ru/_posts/2016-06-05-aw-formatters-and-macros.md index 783e8a5..d0e4e12 100644 --- a/ru/_posts/2016-06-05-aw-formatters-and-macros.md +++ b/ru/_posts/2016-06-05-aw-formatters-and-macros.md @@ -37,10 +37,11 @@ cpu=myformatter | Name | да | имя форматера | none | | Comment | нет | комментарий | empty | | 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-Interval`, `X-AW-Number`, но они будут проигнорированы. +`X-AW-Interval`, `X-AW-Number`, `X-AW-Schedule`, `X-AW-Socket`, но они будут +проигнорированы. Каждый тип форматера имеет свое поведение и свои настройки, которые описаны ниже. Также существуют системные настройки, которые хранятся в `/usr/share/awesomewidgets/formatters/`, @@ -77,6 +78,17 @@ cpu=myformatter Конечное значение будет получено по формуле `X-AW-Multiplier * value + X-AW-Summand`. +## Json форматер + +Извлекает сообщения из JSON. + +| Поле | Обязательное | Значение | По-умолчанию | +| -------------------|--------------|----------------------------------|--------------| +| X-AW-Path | да | путь к значению в JSON | (пусто) | + +Путь должен быть разделен точками. Числа в пути будут интерпретированы как индекс +элемента в массиве. + ## List форматер Конвертирует список строк в строку @@ -137,6 +149,6 @@ X-AW-HasReturn=false шаблоны, лямбды и прочее) и аргументы, определенные используя `$`. Чтобы вызвать макрос в коде нужно использовать следующую конструкцию: -`$aw_macro_my_macro_name<$cpu,$cpucl>{% raw %}{{}}{% endraw %}` (тело функции -будет проигнорировано здесь). В данном примере, макрос будет развернут в +`$aw_macro_my_macro_name<$cpu,$cpucl>{% raw %}{{}}{% endraw %}` (тело функции +будет проигнорировано здесь). В данном примере, макрос будет развернут в `macro body here with $cpu`. diff --git a/ru/projects/_posts/2013-02-21-awesome-widgets.md b/ru/projects/_posts/2013-02-21-awesome-widgets.md index 264b1f9..cbf043e 100644 --- a/ru/projects/_posts/2013-02-21-awesome-widgets.md +++ b/ru/projects/_posts/2013-02-21-awesome-widgets.md @@ -48,6 +48,13 @@ Awesome"). Также пакет предоставляет дополнител {% for devel in page.developers %} * {{ devel }}{% endfor %} +Отдельное спасибо: + +* [CLion](//www.jetbrains.com/clion/) +* [Yahoo! Finance](//finance.yahoo.com/) +* [Yahoo! Weather](/weather.yahoo.com/) +* [OpenWeatherMap](//openweathermap.org/) + ### Лицензия * {{ page.license }} @@ -223,6 +230,7 @@ html код. Смотри [вопрос](//github.com/arcan1s/awesome-widgets/is | `$pscount` | Число запущенных процессов. | 1.8.0 | | `$pstotal` | Общее число процессов. | 1.8.0 | | `$pkgcountN` | Число пакетов, доступных для обновления, для команды N. | 1.8.0 | +| `$responseN` | Ответ на веб запрос к URL N. | 3.3.0 | | `$customN` | Получить данные из указанной команды N. Например, `$custom0`. | 1.9.0 | | `$desktop` | Имя текущего рабочего стола. | 2.0.0 | | `$ndesktop` | Номер текущего рабочего стола. | 2.0.0 | @@ -422,6 +430,15 @@ three() **AC offline тег:** Строка, которая будет показана, когда AC оффлайн. По умолчанию `( )`. +**Включить удаленную телеметрию:** Включить загрузку конфигурации на удаленный +сервер. + +**Количество истории:** Общее количество конфигураций, которые будут сохранены +локально + +**ID телеметрии:** Уникальный идентификатор клиента для загрузки на удаленный +сервер. + ### Тултипы Начиная с версии 1.7.0, поля CPU, частота CPU, память, swap, сеть и батарея