]> git.sur5r.net Git - i3/i3.github.io/blobdiff - i3status/manpage.html
add i3status 2.6
[i3/i3.github.io] / i3status / manpage.html
index b7b468cfa08c2fcfc4e36900fdb6a3b694b6fe0b..c4bccd500a51816d5bbeb211dc8cce5bf65e09df 100644 (file)
@@ -4,7 +4,7 @@
 <head>\r
 <link rel="icon" type="image/png" href="/favicon.png">\r
 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />\r
-<meta name="generator" content="AsciiDoc 8.6.6" />\r
+<meta name="generator" content="AsciiDoc 8.6.7" />\r
 <title>i3: i3status(1)</title>\r
 <link rel="stylesheet" href="/css/style.css" type="text/css" />\r
 <link rel="stylesheet" href="/css/xhtml11.css" type="text/css" />\r
@@ -30,9 +30,9 @@ window.onload = function(){asciidoc.footnotes(); asciidoc.toc(2);}
 <div id="header">\r
 <h1>i3status(1)</h1>\r
 <span id="author">Michael Stapelberg</span><br />\r
-<span id="email"><tt>&lt;<a href="mailto:michael+i3@stapelberg.de">michael+i3@stapelberg.de</a>&gt;</tt></span><br />\r
-<span id="revnumber">version 2.5,</span>\r
-<span id="revdate">May 2012</span>\r
+<span id="email"><tt>&lt;<a href="mailto:michael@i3wm.org">michael@i3wm.org</a>&gt;</tt></span><br />\r
+<span id="revnumber">version 2.6,</span>\r
+<span id="revdate">October 2012</span>\r
 <div id="toc">
   <div id="toctitle">Table of Contents</div>
   <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
@@ -141,6 +141,7 @@ ethernet eth0 {
 battery 0 {\r
         format = "%status %percentage %remaining %emptytime"\r
         path = "/sys/class/power_supply/BAT%d/uevent"\r
+        low_threshold = 10\r
 }\r
 \r
 run_watch DHCP {\r
@@ -242,8 +243,11 @@ best available public IPv6 address on your computer).</p></div>
 <div class="sect2">\r
 <h3 id="_disk">5.3. Disk</h3>\r
 <div class="paragraph"><p>Gets used, free, available and total amount of bytes on the given mounted filesystem.</p></div>\r
+<div class="paragraph"><p>These values can also be expressed in percentages with the percentage_used,\r
+percentage_free, percentage_avail and percentage_used_of_avail formats.</p></div>\r
 <div class="paragraph"><p><strong>Example order</strong>: <tt>disk /mnt/usbstick</tt></p></div>\r
 <div class="paragraph"><p><strong>Example format</strong>: <tt>%free (%avail)/ %total</tt></p></div>\r
+<div class="paragraph"><p><strong>Example format</strong>: <tt>%percentage_used used, %percentage_free free, %percentage_avail avail</tt></p></div>\r
 </div>\r
 <div class="sect2">\r
 <h3 id="_run_watch">5.4. Run-watch</h3>\r
@@ -271,18 +275,24 @@ it using <tt>setcap cap_net_admin=ep $(which i3status)</tt>.</p></div>
 </div>\r
 <div class="sect2">\r
 <h3 id="_battery">5.7. Battery</h3>\r
-<div class="paragraph"><p>Gets the status (charging, discharging, running), percentage and remaining\r
-time of the given battery and when it&#8217;s estimated to be empty. If you want\r
-to use the last full capacity instead of the design capacity (when using\r
-the design capacity, it may happen that your battery is at 23% when fully\r
-charged because it’s old. In general, I want to see it this way, because\r
-it tells me how worn off my battery is.), just specify\r
+<div class="paragraph"><p>Gets the status (charging, discharging, running), percentage, remaining\r
+time and power consumption (in Watts) of the given battery and when it&#8217;s\r
+estimated to be empty. If you want to use the last full capacity instead of the\r
+design capacity (when using the design capacity, it may happen that your\r
+battery is at 23% when fully charged because it’s old. In general, I want to\r
+see it this way, because it tells me how worn off my battery is.), just specify\r
 <tt>last_full_capacity = true</tt>.</p></div>\r
 <div class="paragraph"><p>If your battery is represented in a non-standard path in /sys, be sure to\r
 modify the "path" property accordingly. The first occurence of %d gets replaced\r
 with the battery number, but you can just hard-code a path as well.</p></div>\r
+<div class="paragraph"><p>It is possible to define a low_threshold that causes the battery text to be\r
+colored red. The low_threshold type can be of threshold_type "time" or\r
+"percentage". So, if you configure low_threshold to 10 and threshold_type to\r
+"time", and your battery lasts another 9 minutes, it will be colored red.</p></div>\r
 <div class="paragraph"><p><strong>Example order</strong>: <tt>battery 0</tt></p></div>\r
-<div class="paragraph"><p><strong>Example format</strong>: <tt>%status %remaining (%emptytime)</tt></p></div>\r
+<div class="paragraph"><p><strong>Example format</strong>: <tt>%status %remaining (%emptytime %consumption)</tt></p></div>\r
+<div class="paragraph"><p><strong>Example low_threshold</strong>: <tt>30</tt></p></div>\r
+<div class="paragraph"><p><strong>Example threshold_type</strong>: <tt>time</tt></p></div>\r
 </div>\r
 <div class="sect2">\r
 <h3 id="_cpu_temperature">5.8. CPU-Temperature</h3>\r
@@ -292,7 +302,7 @@ with the battery number, but you can just hard-code a path as well.</p></div>
 </div>\r
 <div class="sect2">\r
 <h3 id="_cpu_usage">5.9. CPU Usage</h3>\r
-<div class="paragraph"><p>Gets the percentual CPU usage from <tt>/proc/stat</tt>.</p></div>\r
+<div class="paragraph"><p>Gets the percentual CPU usage from <tt>/proc/stat</tt> (Linux) or <tt>sysctl(3)</tt> (FreeBSD/OpenBSD).</p></div>\r
 <div class="paragraph"><p><strong>Example order</strong>: <tt>cpu_usage</tt></p></div>\r
 <div class="paragraph"><p><strong>Example format</strong>: <tt>%usage</tt></p></div>\r
 </div>\r
@@ -320,7 +330,11 @@ details on the format string.
 <div class="sect2">\r
 <h3 id="_volume">5.13. Volume</h3>\r
 <div class="paragraph"><p>Outputs the volume of the specified mixer on the specified device. Works only\r
-on Linux because it uses ALSA.</p></div>\r
+on Linux because it uses ALSA.\r
+A simplified configuration can be used on FreeBSD and OpenBSD due to\r
+the lack of ALSA,  the <tt>device</tt>, <tt>mixer</tt> and <tt>mixder_idx</tt> options can be\r
+ignored on these systems. On these systems the OSS API is used instead to\r
+query <tt>/dev/mixer</tt> directly.</p></div>\r
 <div class="paragraph"><p><strong>Example order</strong>: <tt>volume master</tt></p></div>\r
 <div class="paragraph"><p><strong>Example format</strong>: <tt>♪: %volume</tt></p></div>\r
 <div class="paragraph"><p><strong>Example configuration</strong>:</p></div>\r
@@ -414,6 +428,9 @@ do
 done</tt></pre>\r
 </div></div>\r
 <div class="paragraph"><p>Put that in some script, say <tt>.bin/my_i3status.sh</tt> and execute that instead of i3status.</p></div>\r
+<div class="paragraph"><p>Note that if you want to use the JSON output format (with colors in i3bar), you\r
+need to use a slightly more complex wrapper script. There are examples in the\r
+contrib/ folder, see <a href="http://code.i3wm.org/i3status/tree/contrib">http://code.i3wm.org/i3status/tree/contrib</a></p></div>\r
 </div>\r
 </div>\r
 <div class="sect1">\r