From 7cb270168d5a87b9437451591ac09b62b493fec6 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Wed, 15 Jun 2016 20:15:45 +0200 Subject: [PATCH] update doc for py3status 3.0 (#24) --- docs/user-contributed/py3status.html | 55 +++++++++++++++++++++++----- 1 file changed, 45 insertions(+), 10 deletions(-) diff --git a/docs/user-contributed/py3status.html b/docs/user-contributed/py3status.html index 5edfdcf..cb84b58 100644 --- a/docs/user-contributed/py3status.html +++ b/docs/user-contributed/py3status.html @@ -29,7 +29,8 @@ The goal of py3status is to fill this gap by allowing users to simply extend their i3bar while preserving their current i3status configuration. The main idea is to rely on i3status' strength without adding any configuration on the user's side. py3status is thus a wrapper script for i3status and its configuration as -explained on the wiki. +explained +in the documentation.

Usage

@@ -84,20 +85,20 @@ disk / { on_click 1 = "exec thunar /" } -# open an URL on opera when I left click on the py3status weather_yahoo module +# open an URL on firefox when I left click on the py3status weather_yahoo module weather_yahoo paris { - cache_timeout = 1800 - city_code = "FRXX0076" + cache_timeout = 7200 + woeid = 615702 forecast_days = 2 - on_click 1 = "exec opera http://www.meteo.fr" request_timeout = 10 + on_click 1 = "exec firefox-bin http://www.meteo.fr" } -

Use py3status modules in your i3bar

+

Use py3status modules on your i3bar

-Py3status (since v2) also comes with some configurable modules you can load and +Py3status also comes with some configurable modules you can load and configure directly from your i3status.conf just like any other i3status module. You @@ -134,6 +135,40 @@ imap { } +

Group modules to save space on your i3bar

+ +

+The group module allows you to group several modules together. +Only one of the modules are displayed at a time. The displayed module can either +be cycled through automatically or by user action (mouse scroll by default). +

+ +

Example usage:

+ +

+order += "group tz"
+
+# cycle through different timezone hours every 10s
+group tz {
+    cycle = 10
+    format = "{output}"
+
+    tztime la {
+        format = "LA %H:%M"
+        timezone = "America/Los_Angeles"
+    }
+
+    tztime ny {
+        format = "NY %H:%M"
+        timezone = "America/New_York"
+    }
+
+    tztime du {
+        format = "DU %H:%M"
+        timezone = "Asia/Dubai"
+    }
+}
+

Write your own modules to display your own stuff

@@ -141,13 +176,13 @@ imap { Py3status features a simple and straightforward module system which you can use to get your own output displayed on your i3bar. You can read more and view some examples
on the -wiki. +href="https://github.com/ultrabug/py3status/tree/master/doc#writing_custom_modules"> +in the documentation.

Documentation

You can read the full and up to date documentation on the py3status home page. +href="https://github.com/ultrabug/py3status/tree/master/doc">py3status docs.

-- 2.39.5