From 1c2d65d5f60c401c02908b3c317c7f8d7a8ea47e Mon Sep 17 00:00:00 2001 From: arcan1s Date: Sun, 9 Aug 2015 03:47:52 +0300 Subject: [PATCH] update aw pages before 2.4.0 release --- _includes/comment.html | 2 +- .../2014-12-19-aw-v21-bells-and-whistles.html | 70 ++++++++++++++++++- projects/awesome-widgets.html | 68 ++++++++++++++++-- .../2014-12-19-aw-v21-bells-and-whistles.html | 66 +++++++++++++++++ ru/projects/awesome-widgets.html | 64 ++++++++++++++++- 5 files changed, 259 insertions(+), 11 deletions(-) diff --git a/_includes/comment.html b/_includes/comment.html index 330b1d9..6d1ca76 100644 --- a/_includes/comment.html +++ b/_includes/comment.html @@ -10,4 +10,4 @@ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); - \ No newline at end of file + 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 b15d7f0..4e34ef8 100644 --- a/_posts/2014-12-19-aw-v21-bells-and-whistles.html +++ b/_posts/2014-12-19-aw-v21-bells-and-whistles.html @@ -75,6 +75,12 @@ description: The paper deals with settings of a custom scripts and graphical bar width, pixels 100 + + X-AW-Number + yes + unique number which will be associated with the bar. The property has been introduced to provide compatibility with others items. Should be the same as number in Name is + number from Name +

Quotes

@@ -156,7 +162,7 @@ description: The paper deals with settings of a custom scripts and graphical bar X-AW-Prefix no - prefix to executable file. Usually it's not required, but in other you may want to specify interpretor for example. + prefix to executable file. Usually it's not required, but in other you may want to specify interpretor for example @@ -249,4 +255,64 @@ description: The paper deals with settings of a custom scripts and graphical bar unique number which will be associated with the upgrade script random number which is less than 1000 - \ No newline at end of file + + +

Weather

+

Weathers are stored in the two directories: /usr/share/awesomewidgets/weather/ and $HOME/.local/share/awesomewidgets/weather/ (path may be differ in depend from your distro). Settings in the home directory have a higher priority that global ones. The weather uses data and API from OpenWeatherMap. Configuration files have the following fields:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldRequiredValueDefault
Nameyesweather namenone
Commentnocommentempty
X-AW-CityyesCityLondon
X-AW-CountryyesTwo-letter country codeuk
X-AW-TSyesTime to which weather should be. 0 is a current weather, 1 - weather 3 hours later, etc0
X-AW-Activenowhether or not the monitor is activetrue
X-AW-Intervalnoupdate interval in standard widget intervals1
X-AW-Numberдаunique number which will be associated with the upgrade weatherrandom number which is less than 1000
diff --git a/projects/awesome-widgets.html b/projects/awesome-widgets.html index 9b9671d..a3ba586 100644 --- a/projects/awesome-widgets.html +++ b/projects/awesome-widgets.html @@ -122,7 +122,7 @@ sudo make install PLAYER - Set music player. Supported players are mpd and MPRIS/DBus supported. + Set music player. Supported players are mpd and MPRIS/DBus supported. disable will disable this monitor. @@ -163,7 +163,20 @@ sudo make install Will enable custom uptime format. - CPU label + Load average + $la1 + Load average over 1 min, -----. + + + $la5 + Load average over 5 min, -----. + + + $la15 + Load average over 15 min, -----. + + + CPU $cpu Total load CPU, %, -----. @@ -396,17 +409,62 @@ sudo make install Total number of desktops. - Quotes + Quotes $askN Get ask for ticker N. For example $ask0. + + $askchgN + Get absolute ask change for ticker N. For example $askchg0. + + + $percaskchgN + Get ask change for ticker N, %. For example $percaskchg0. + $bidN Get bid for ticker N. For example $bid0. + + $bidchgN + Get absolute bid change for ticker N, %. For example $bidchg0. + + + $percbidchgN + Get bid change for ticker N. For example $percbidchg0. + $priceN - Get average between bid and ask for ticker N. For example $price0. + Get price for ticker N. For example $price0. + + + $pricechgN + Get absolute price change for ticker N. For example $pricechg0. + + + $percaskchgN + Get price change for ticker N, %. For example $percpricechg0. + + + Weather + $weatherIdN + Numerical weather ID. For example $weatherId0. + + + $weatherN + UTF symbol for weather ID. For example $weather0. + + + $humidityN + Humidity, %. For example $humidity0. + + + $pressureN + Pressure, bars. For example $pressure0. + + + $temperatureN + Temperature. For example $temperature0. @@ -547,7 +605,7 @@ sudo make install

MPRIS: Select MPRIS player name. auto will enable auto selection. Default is auto.

-

Music player: Select one of supported music playes for player label.

+

Music player: Select one of supported music players for player label.

Desktop Panel

Since version 1.11.0 it provides a minimalistic panel for monitoring on desktops written on C++. And yes, it looks like the same panel in Awesome.

diff --git a/ru/_posts/2014-12-19-aw-v21-bells-and-whistles.html b/ru/_posts/2014-12-19-aw-v21-bells-and-whistles.html index e344de3..e3c3f65 100644 --- a/ru/_posts/2014-12-19-aw-v21-bells-and-whistles.html +++ b/ru/_posts/2014-12-19-aw-v21-bells-and-whistles.html @@ -75,6 +75,12 @@ description: Данная статья посвящена обсуждению ширина в пикселях 100 + + X-AW-Number + да + уникальный номер, который будет ассоциирован с данным баром. Введено для совместимости с другими расширениями. Должно быть такое же, как и в поле Name + число из Name +

Котировки

@@ -250,3 +256,63 @@ description: Данная статья посвящена обсуждению случайное число меньше 1000 + +

Погода

+

Погода хранится в двух директориях: /usr/share/awesomewidgets/weather/ и $HOME/.local/share/awesomewidgets/weather/ (пути могут немного отличаться в зависимости от используемого дистрибутива). Настройки в домашней директории перезаписывают глобальные настройки. Для показа погоды используются данные и API OpenWeatherMap. Файлы настроек имеют следующие поля:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ПолеОбязательноеЗначениеПо-умолчанию
Nameдаимя погодыnone
Commentнеткомментарийempty
X-AW-CityдаГородLondon
X-AW-CountryдаДвухбуквенное обозначения страныuk
X-AW-TSдаНа какое время прогноз (целое число). 0 - текущая погода, 1 - погода через 3 часа и т.д.0
X-AW-Activeнетактивен или нет данный монитор погодыtrue
X-AW-Intervalдаинтервал запуска монитора в стандартных интервалах обновления виджета1
X-AW-Numberдауникальный номер, который будет ассоциирован с данным мониторомслучайное число меньше 1000
diff --git a/ru/projects/awesome-widgets.html b/ru/projects/awesome-widgets.html index 7457e39..5c3be05 100644 --- a/ru/projects/awesome-widgets.html +++ b/ru/projects/awesome-widgets.html @@ -123,7 +123,7 @@ sudo make install PLAYER - Устанавливает музыкальный плеер. Поддерживаемые плееры: mpd и с поддержкой MPRIS/DBus. + Устанавливает музыкальный плеер. Поддерживаемые плееры: mpd и с поддержкой MPRIS/DBus. disable отключит данный монитор. @@ -163,6 +163,19 @@ sudo make install $cuptime Cпециальный формат аптайма. + + Средняя загрузка + $la1 + Средняя загрузка за 1 минуту, -----. + + + $la5 + Средняя загрузка за 5 минут, -----. + + + $la15 + Средняя загрузка за 15 минут, -----. + CPU $cpu @@ -397,17 +410,62 @@ sudo make install Общее число рабочих столов. - Котировки + Котировки $askN Получить аск по тикеру N. Например, $ask0. + + $askchgN + Абсолютное изменение аск по тикеру N. Например, $askchg0. + + + $percaskchgN + Изменение аск по тикеру N, %. Например, $percaskchg0. + $bidN Получить бид по тикеру N. Например, $bid0. + + $bidchgN + Абсолютное изменение бид по тикеру N. Например, $bidchg0. + + + $percbidchgN + Изменение бид по тикеру N, %. Например, $percbidchg0. + $priceN - Получить среднее между бидом и аском по тикеру N. Например, $price0. + Получить цену по тикеру N. Например, $price0. + + + $pricechgN + Абсолютное изменение цены по тикеру N. Например, $pricechg0. + + + $percpricechgN + Изменение цены по тикеру N, %. Например, $percpricechg0. + + + Погода + $weatherIdN + Численное ID погоды. Например $weatherId0. + + + $weatherN + UTF символ для соответствующего ID. Например $weather0. + + + $humidityN + Влажность, %. Например $humidity0. + + + $pressureN + Давление, бар. Например $pressure0. + + + $temperatureN + Температура. Humidity $temperature0.