Commit Graph

336 Commits

Author SHA1 Message Date
Michael Stapelberg
0a608d4af6 make SIGUSR1 do nothing, so that killall -USR1 i3status will force an update
Sending SIGUSR1 will interrupt the nanosleep() and thus force a new
iteration of i3status’s output loop. The signal handler itself is empty.

Based on the question by ttjjss at
http://faq.i3wm.org/question/854/how-to-force-status-bar-update/
2012-12-05 17:49:54 +01:00
Scott Tincman
0eeded8bc0 DragonFlyBSD support added 2012-11-15 12:31:17 +01:00
Michael Stapelberg
2f20400d7a Bugfix: make custom colors configurable for battery (Thanks thomas)
fixes #865
2012-11-10 08:46:26 +01:00
Michael Stapelberg
264068551f Bugfix: make custom colors configurable for cpu_temperature (Thanks thomas)
fixes #865
2012-11-07 21:14:02 +01:00
Deiz
638156c8b2 Teen ordinal numbers always use a 'th' suffix. 2012-11-06 00:26:47 +01:00
Michael Stapelberg
beaaf4c742 config: introduce an utf-8 character so that editors are forced to use utf-8
…and if they don’t, the user can fix the editor setup at least.

See also http://bugs.i3wm.org/864
2012-11-05 17:40:51 +01:00
Michael Stapelberg
4bf84391d8 config: remove documentation from the disk field (got there by mistake) 2012-11-05 17:36:53 +01:00
Marcelo Cerri
dbf3adc81d add good, degraded and bad colors per module
This commit adds support for color_good, color_degraded and color_bad
directives per module section in the config file.
2012-10-24 18:59:46 +02:00
Deiz
e10d38fea0 Reduce the season day to 0-9 to properly print ordinal suffixes 2012-10-19 19:36:53 +02:00
Simon Elsbrock
35f3bcb348 bugfix: colorize output even without discharge rate (thanks f8l)
On some systems, the discharge rate may be missing, although the battery
is still working. This leads to an edge case on Linux systems in which
the output may not be colorized although a threshold was defined.

This commit fixes the behavior by colorizing output if threshold_type is
set to "percentage". Since we cannot calculate remaining time without
discharge rate, output is still uncolorized in case of threshold_type
set to "time".
2012-10-16 22:49:22 +02:00
Michael Stapelberg
450424f97a implement max_threshold for linux, too 2012-10-16 10:52:57 +02:00
Jasper Lievisse Adriaanse
ae4873bac7 i3status - More temperature related fixes for OpenBSD, and a general feature
- Temperature sensors can now set a 'max_threshold' value to color the output red if exceeded.
- Allow for arbitrary temperature sensors nodes to be selected with 'path' on OpenBSD.
2012-10-16 10:51:15 +02:00
Jasper Lievisse Adriaanse
1c2517a399 i3status - Default to acpitz(4) instead of cpu(4) for OpenBSD temperature readings
The acpitz(4) values are eventually used by the kernel to determine if the machine
is getting too hot.
2012-10-16 10:48:44 +02:00
Jasper Lievisse Adriaanse
ed03d2450c i3status - Handle down wireless interfaces just like ethernet interfaces (e.g. colors) 2012-10-16 10:48:29 +02:00
Deiz
04dc34f27d Skip a day in the Discordian calendar when St. Tib's Day has passed 2012-10-16 09:25:38 +02:00
Jasper Lievisse Adriaanse
794151cfe7 Implement %essid and %signal for wireless on OpenBSD. 2012-10-10 08:24:29 +02:00
Jasper Lievisse Adriaanse
11c4ab9870 Implement %speed for Ethernet on OpenBSD. 2012-10-10 08:24:04 +02:00
Jasper Lievisse Adriaanse
8da0452d2c Various fixes for the OpenBSD section of the battery backend.
- fix the battery status printing in %status.
- fix remaining time when we're charging.
- use colors to indicate battery status.
- small cleanups.
2012-10-10 08:23:14 +02:00
Michael Stapelberg
7dcc961fa2 Bugfix: Move the pbval definition outside the ifdef (Thanks XTaran)
This fixes compilation on !linux
2012-10-03 15:12:49 +02:00
Michael Stapelberg
266734418c remove debian/, packaging now lives on alioth 2012-10-03 14:13:33 +02:00
Michael Stapelberg
c705b11d44 include contrib/ in release tarballs 2012-10-03 13:44:34 +02:00
Michael Stapelberg
69cd4fe003 update changelog and manpage for 2.6 2012-10-03 13:42:01 +02:00
Michael Stapelberg
5c615f7074 Save the DNS lookup for K.root-servers.net (Thanks barfoos)
This avoids running into a timeout when there is no connectivity on
i3status startup.
2012-09-29 00:08:56 +02:00
Simon Elsbrock
59d52ad787 print_battery.c: do END_COLOR only if START_COLOR was used 2012-09-05 23:28:31 +02:00
Simon Elsbrock
1c4677a644 turn volume into red if muted
fixes #743
2012-09-05 23:28:27 +02:00
Simon Elsbrock
674d28e192 modify START_COLOR macro variable naming
Rename val to _val to prevent shadowing warnings due to its common
naming.
2012-09-05 23:28:17 +02:00
Michael Stapelberg
d6b8a4efc1 introduce percentages for all values, document them 2012-08-31 14:16:58 +02:00
gereon
50ad0334f6 adding percentage format string for disk info module
explicit cast to double, changed format string to percentage
2012-08-31 14:07:46 +02:00
Piotr Domagalski
fa4e9cdfb3 Eat unnecessary space from the battery format str.
If the battery is not discharging it may be not possible to give information on
remaining time or consumption. The resulting strings (%remaining, %consumption,
%emptytime) are empty then. But because they are in the format string, the
output string contains unnecessary spaces in this case.

This commit makes i3status strip these spaces.
2012-08-31 12:08:24 +02:00
Simon Elsbrock
68f438ec9e add additional battery threshold type "percentage"
The battery threshold can now be configured as type "time" or
"percentage", but defaults to "time" to prevent unexpected behavior.
Also, low_threshold was set to a more reasonable default of 30.
2012-08-28 18:05:11 +02:00
Philipp Schaefer
3baf27bf1d use correct units for battery calculation 2012-08-13 01:44:40 +02:00
Michael Stapelberg
cfaeba4df1 Bugfix: non-i3bar formats always used color_bad (Thanks hongy19)
fixes #772
2012-08-13 01:35:07 +02:00
Valentin Haenel
c69da4c4f5 contrib: python version of the wrapper 2012-08-12 17:59:07 +02:00
Michael Stapelberg
b61f70b05f Import measure-net-speed bash scripts to contrib/ 2012-08-04 21:31:06 +02:00
Michael Stapelberg
dea8703aba Bugfix: Properly skip "consumption", not "consumptionbuf" (Thanks mloskot)
Fixes #752
2012-07-12 08:16:40 +02:00
Michael Stapelberg
141f45e792 small style fix in src/print_battery_info.c (move comment) 2012-07-11 19:11:29 +02:00
Marcel Hellwig
1271ff2aa4 Calculate the consumption if POWER_SUPPLY_POWER_NOW does not exist in uevent 2012-07-11 19:11:08 +02:00
Lars Kumbier
f5c96008b0 colorful ipv6 status message 2012-07-10 20:37:54 +02:00
Michael Stapelberg
eec9629eb8 README: fix trailing whitespace, add libcap2-bin, more unicode 2012-07-10 20:36:40 +02:00
Lars Kumbier
3fef39d3f5 Some information on building i3status from source 2012-07-10 20:33:28 +02:00
Michael Stapelberg
7efb5f9103 clarify the unit of the power consumption and reformat that paragraph 2012-07-09 15:13:46 +02:00
Marcel Hellwig
0165709fc1 Added new feature - consumption - to documentation 2012-07-09 15:13:08 +02:00
Marcel Hellwig
c01e87b269 Added consumption to battery info 2012-07-09 15:13:05 +02:00
Marcel Hellwig
ccc31f0b80 Added condition, for red color, when battery-time is low, namely battery is discharging 2012-07-09 15:12:43 +02:00
Mateusz Poszwa
859a7690a6 Avoid division by zero when calculating CPU usage. 2012-06-28 12:05:01 +02:00
Mateusz Loskot
10ed9efff4 Moved translation of wireless status code to text from multiple places into single BATT_STATUS_NAME macro. It simplifies customisation of the hard-wired status text. 2012-06-11 12:00:24 +02:00
Michael Stapelberg
2e3490141d add a small perl example wrapper script for i3status’s JSON output 2012-06-10 19:42:53 +02:00
Michael Stapelberg
850f6720b5 rename threshold to low_threshold and document it properly 2012-05-25 09:57:03 +02:00
Simon Elsbrock
7c02c10b72 colorize battery output if remaining time below threshold 2012-05-25 09:53:49 +02:00
Michael Stapelberg
7a77472a81 battery info: output errors in JSON in every case
This hopefully fixes http://bugs.i3wm.org/707
2012-05-15 12:30:23 +02:00