Skip to content

Commit

Permalink
add i3status 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Oct 3, 2012
1 parent 2644eaf commit 7655baf
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 23 deletions.
43 changes: 33 additions & 10 deletions _docs/i3status.man
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
i3status(1)
===========
Michael Stapelberg <michael[email protected]>
v2.5, May 2012
Michael Stapelberg <michael@i3wm.org>
v2.6, October 2012

== NAME

Expand Down Expand Up @@ -72,6 +72,7 @@ ethernet eth0 {
battery 0 {
format = "%status %percentage %remaining %emptytime"
path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = 10
}

run_watch DHCP {
Expand Down Expand Up @@ -155,10 +156,15 @@ best available public IPv6 address on your computer).

Gets used, free, available and total amount of bytes on the given mounted filesystem.

These values can also be expressed in percentages with the percentage_used,
percentage_free, percentage_avail and percentage_used_of_avail formats.

*Example order*: +disk /mnt/usbstick+

*Example format*: +%free (%avail)/ %total+

*Example format*: +%percentage_used used, %percentage_free free, %percentage_avail avail+

=== Run-watch

Expands the given path to a pidfile and checks if the process ID found inside
Expand Down Expand Up @@ -191,21 +197,30 @@ it using +setcap cap_net_admin=ep $(which i3status)+.

=== Battery

Gets the status (charging, discharging, running), percentage and remaining
time of the given battery and when it's estimated to be empty. If you want
to use the last full capacity instead of the design capacity (when using
the design capacity, it may happen that your battery is at 23% when fully
charged because it’s old. In general, I want to see it this way, because
it tells me how worn off my battery is.), just specify
Gets the status (charging, discharging, running), percentage, remaining
time and power consumption (in Watts) of the given battery and when it's
estimated to be empty. If you want to use the last full capacity instead of the
design capacity (when using the design capacity, it may happen that your
battery is at 23% when fully charged because it’s old. In general, I want to
see it this way, because it tells me how worn off my battery is.), just specify
+last_full_capacity = true+.

If your battery is represented in a non-standard path in /sys, be sure to
modify the "path" property accordingly. The first occurence of %d gets replaced
with the battery number, but you can just hard-code a path as well.

It is possible to define a low_threshold that causes the battery text to be
colored red. The low_threshold type can be of threshold_type "time" or
"percentage". So, if you configure low_threshold to 10 and threshold_type to
"time", and your battery lasts another 9 minutes, it will be colored red.

*Example order*: +battery 0+

*Example format*: +%status %remaining (%emptytime)+
*Example format*: +%status %remaining (%emptytime %consumption)+

*Example low_threshold*: +30+

*Example threshold_type*: +time+

=== CPU-Temperature

Expand All @@ -217,7 +232,7 @@ Gets the temperature of the given thermal zone.

=== CPU Usage

Gets the percentual CPU usage from +/proc/stat+.
Gets the percentual CPU usage from +/proc/stat+ (Linux) or +sysctl(3)+ (FreeBSD/OpenBSD).

*Example order*: +cpu_usage+

Expand Down Expand Up @@ -254,6 +269,10 @@ details on the format string.

Outputs the volume of the specified mixer on the specified device. Works only
on Linux because it uses ALSA.
A simplified configuration can be used on FreeBSD and OpenBSD due to
the lack of ALSA, the +device+, +mixer+ and +mixder_idx+ options can be
ignored on these systems. On these systems the OSS API is used instead to
query +/dev/mixer+ directly.

*Example order*: +volume master+

Expand Down Expand Up @@ -346,6 +365,10 @@ done

Put that in some script, say +.bin/my_i3status.sh+ and execute that instead of i3status.

Note that if you want to use the JSON output format (with colors in i3bar), you
need to use a slightly more complex wrapper script. There are examples in the
contrib/ folder, see http://code.i3wm.org/i3status/tree/contrib

== SEE ALSO

+strftime(3)+, +date(1)+, +glob(3)+, +dzen2(1)+, +xmobar(1)+
Expand Down
Binary file added i3status/i3status-2.6.tar.bz2
Binary file not shown.
17 changes: 17 additions & 0 deletions i3status/i3status-2.6.tar.bz2.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAABCgAGBQJQbCsJAAoJEE5xYO1KyO4dWAsP/it01mfVVwjw/f/d33aXAH+c
bNiKkjXSiK51xCX6HUBpZNd7memdGQN3rWhoDLCobNLYJ1t+1xp2/6Ol1NACNcyh
zZFA08JpV5hia/Kpjku0GPmCCEcom01hmfHDmhvyNH8VIAJ3fpjLDy0VzNAX/uku
DKo8sVUVOYxOoAoifQTZlaBkrc59SHFje3Z35+Z8pNKoMrjeO+7c7oEMXvOSfN9h
WffNSSOGjt9FuVAgapjqSei+osl7Og/wnIZADnd9/eiH77+TFbPqH0/wGdmHrC6/
idm/1b4QSm3WwRrx2b8zUZ3vYX6gIYhpqgGKd2VyiMbRKfK0KBLLb5J0FQVFLIdZ
mI8RI1k9yd5w18NBCgA5W4AymkuMsd/MWzKDIMJtQxLNnkW/6Fxb8E0jVDCtucjN
DBk5SovZ+4JUXzNakutzFjr3W2/TbWavfSF2TsaAzFnWzp1Wl1WiAgNghNN8x0bv
crHUFUqPLa0BfSf9CIHLNOfCliK4xKkLSD5TQF+RXxxSmWEHPEHOOkwJYtNY8ObM
cifHT6u1ocUS6ACKSi3Vu/r2+a5jZUrXaE0cV4PsdAkvG/6z+n47mFg+42kSFL3d
tb3g/wb65dUUy38Pi+4uFeBSMM31NyULiXjS3aOV4AWnzOzA18vUgU13Z8rWF7b6
S2c3aDEEcCBVo1fKHe8m
=0iAU
-----END PGP SIGNATURE-----
2 changes: 2 additions & 0 deletions i3status/index.html.mako
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<h2>Releases</h2>

<ul>
<li><a href="/i3status/i3status-2.6.tar.bz2">i3status-2.6.tar.bz2</a>
(<a href="/i3status/i3status-2.6.tar.bz2.asc">GPG signature</a>, 2012-10-03)</li>
<li><a href="/i3status/i3status-2.5.1.tar.bz2">i3status-2.5.1.tar.bz2</a>
(<a href="/i3status/i3status-2.5.1.tar.bz2.asc">GPG signature</a>, 2012-05-11)</li>
<li><a href="/i3status/i3status-2.5.tar.bz2">i3status-2.5.tar.bz2</a>
Expand Down
43 changes: 30 additions & 13 deletions i3status/manpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<link rel="icon" type="image/png" href="/favicon.png">
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="generator" content="AsciiDoc 8.6.6" />
<meta name="generator" content="AsciiDoc 8.6.7" />
<title>i3: i3status(1)</title>
<link rel="stylesheet" href="/css/style.css" type="text/css" />
<link rel="stylesheet" href="/css/xhtml11.css" type="text/css" />
Expand All @@ -30,9 +30,9 @@
<div id="header">
<h1>i3status(1)</h1>
<span id="author">Michael Stapelberg</span><br />
<span id="email"><tt>&lt;<a href="mailto:michael[email protected]">michael[email protected]</a>&gt;</tt></span><br />
<span id="revnumber">version 2.5,</span>
<span id="revdate">May 2012</span>
<span id="email"><tt>&lt;<a href="mailto:michael@i3wm.org">michael@i3wm.org</a>&gt;</tt></span><br />
<span id="revnumber">version 2.6,</span>
<span id="revdate">October 2012</span>
<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>
Expand Down Expand Up @@ -141,6 +141,7 @@ <h2 id="_configuration">5. CONFIGURATION</h2>
battery 0 {
format = "%status %percentage %remaining %emptytime"
path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = 10
}

run_watch DHCP {
Expand Down Expand Up @@ -242,8 +243,11 @@ <h3 id="_ipv6">5.2. IPv6</h3>
<div class="sect2">
<h3 id="_disk">5.3. Disk</h3>
<div class="paragraph"><p>Gets used, free, available and total amount of bytes on the given mounted filesystem.</p></div>
<div class="paragraph"><p>These values can also be expressed in percentages with the percentage_used,
percentage_free, percentage_avail and percentage_used_of_avail formats.</p></div>
<div class="paragraph"><p><strong>Example order</strong>: <tt>disk /mnt/usbstick</tt></p></div>
<div class="paragraph"><p><strong>Example format</strong>: <tt>%free (%avail)/ %total</tt></p></div>
<div class="paragraph"><p><strong>Example format</strong>: <tt>%percentage_used used, %percentage_free free, %percentage_avail avail</tt></p></div>
</div>
<div class="sect2">
<h3 id="_run_watch">5.4. Run-watch</h3>
Expand Down Expand Up @@ -271,18 +275,24 @@ <h3 id="_ethernet">5.6. Ethernet</h3>
</div>
<div class="sect2">
<h3 id="_battery">5.7. Battery</h3>
<div class="paragraph"><p>Gets the status (charging, discharging, running), percentage and remaining
time of the given battery and when it&#8217;s estimated to be empty. If you want
to use the last full capacity instead of the design capacity (when using
the design capacity, it may happen that your battery is at 23% when fully
charged because it’s old. In general, I want to see it this way, because
it tells me how worn off my battery is.), just specify
<div class="paragraph"><p>Gets the status (charging, discharging, running), percentage, remaining
time and power consumption (in Watts) of the given battery and when it&#8217;s
estimated to be empty. If you want to use the last full capacity instead of the
design capacity (when using the design capacity, it may happen that your
battery is at 23% when fully charged because it’s old. In general, I want to
see it this way, because it tells me how worn off my battery is.), just specify
<tt>last_full_capacity = true</tt>.</p></div>
<div class="paragraph"><p>If your battery is represented in a non-standard path in /sys, be sure to
modify the "path" property accordingly. The first occurence of %d gets replaced
with the battery number, but you can just hard-code a path as well.</p></div>
<div class="paragraph"><p>It is possible to define a low_threshold that causes the battery text to be
colored red. The low_threshold type can be of threshold_type "time" or
"percentage". So, if you configure low_threshold to 10 and threshold_type to
"time", and your battery lasts another 9 minutes, it will be colored red.</p></div>
<div class="paragraph"><p><strong>Example order</strong>: <tt>battery 0</tt></p></div>
<div class="paragraph"><p><strong>Example format</strong>: <tt>%status %remaining (%emptytime)</tt></p></div>
<div class="paragraph"><p><strong>Example format</strong>: <tt>%status %remaining (%emptytime %consumption)</tt></p></div>
<div class="paragraph"><p><strong>Example low_threshold</strong>: <tt>30</tt></p></div>
<div class="paragraph"><p><strong>Example threshold_type</strong>: <tt>time</tt></p></div>
</div>
<div class="sect2">
<h3 id="_cpu_temperature">5.8. CPU-Temperature</h3>
Expand All @@ -292,7 +302,7 @@ <h3 id="_cpu_temperature">5.8. CPU-Temperature</h3>
</div>
<div class="sect2">
<h3 id="_cpu_usage">5.9. CPU Usage</h3>
<div class="paragraph"><p>Gets the percentual CPU usage from <tt>/proc/stat</tt>.</p></div>
<div class="paragraph"><p>Gets the percentual CPU usage from <tt>/proc/stat</tt> (Linux) or <tt>sysctl(3)</tt> (FreeBSD/OpenBSD).</p></div>
<div class="paragraph"><p><strong>Example order</strong>: <tt>cpu_usage</tt></p></div>
<div class="paragraph"><p><strong>Example format</strong>: <tt>%usage</tt></p></div>
</div>
Expand Down Expand Up @@ -320,7 +330,11 @@ <h3 id="_ddate">5.12. DDate</h3>
<div class="sect2">
<h3 id="_volume">5.13. Volume</h3>
<div class="paragraph"><p>Outputs the volume of the specified mixer on the specified device. Works only
on Linux because it uses ALSA.</p></div>
on Linux because it uses ALSA.
A simplified configuration can be used on FreeBSD and OpenBSD due to
the lack of ALSA, the <tt>device</tt>, <tt>mixer</tt> and <tt>mixder_idx</tt> options can be
ignored on these systems. On these systems the OSS API is used instead to
query <tt>/dev/mixer</tt> directly.</p></div>
<div class="paragraph"><p><strong>Example order</strong>: <tt>volume master</tt></p></div>
<div class="paragraph"><p><strong>Example format</strong>: <tt>♪: %volume</tt></p></div>
<div class="paragraph"><p><strong>Example configuration</strong>:</p></div>
Expand Down Expand Up @@ -414,6 +428,9 @@ <h2 id="_external_scripts_programs_with_i3status">9. External scripts/programs w
done</tt></pre>
</div></div>
<div class="paragraph"><p>Put that in some script, say <tt>.bin/my_i3status.sh</tt> and execute that instead of i3status.</p></div>
<div class="paragraph"><p>Note that if you want to use the JSON output format (with colors in i3bar), you
need to use a slightly more complex wrapper script. There are examples in the
contrib/ folder, see <a href="http://code.i3wm.org/i3status/tree/contrib">http://code.i3wm.org/i3status/tree/contrib</a></p></div>
</div>
</div>
<div class="sect1">
Expand Down

0 comments on commit 7655baf

Please sign in to comment.