]> git.sur5r.net Git - i3/i3status/log
i3/i3status
10 years agoClarify color_separator relation to output_format
Bas Pape [Sat, 7 Jun 2014 13:48:11 +0000 (15:48 +0200)]
Clarify color_separator relation to output_format

10 years agoUse the absolute values for (dis)charging rates
Michael Stapelberg [Sat, 31 May 2014 12:01:18 +0000 (14:01 +0200)]
Use the absolute values for (dis)charging rates

Apparently some notebooks report a negative current, whereas most don’t.

fixes #1249

10 years agorun_watch: check all matching pid files (until first valid one) (Thanks brotbart)
Michael Stapelberg [Thu, 15 May 2014 19:51:01 +0000 (21:51 +0200)]
run_watch: check all matching pid files (until first valid one) (Thanks brotbart)

fixes #1245

10 years agoFix NetBSD CPU temp gauge bug
Alexander Vasarab [Tue, 29 Apr 2014 22:30:11 +0000 (15:30 -0700)]
Fix NetBSD CPU temp gauge bug

This patch fixes a bug in which multiple (conflicting) CPU temps may be
included in the output for the "cpu temperature" module.

The bug is due to the way that the code parsed the envsys(4)-returned data,
and would manifest itself on x86-based NetBSD machines, since those use
cputemp(4) as well as acpitz(4), thereby creating multiple envsys(4) entries
with identical descriptions but which refer to different physical sensors.

Instead of matching the description attribute of each device returned by
envsys(4) against the target format, this patch throws away non-matching keys
in the first instruction inside the dict walk. This has the benefit of sparing
unnecessary CPU cycles, and preventing other sensors from being included
erroneously.

Additionally, the THERMAL_ZONE format is now joined with OpenBSD in that it
uses acpitz(4) explicitly. This is prefered since it is much older (dating
back to NetBSD 2.0), and does not exclude x86-based users (as with cputemp(4)).

10 years agoImplement battery functionality for NetBSD users
Alexander Vasarab [Mon, 28 Apr 2014 19:16:48 +0000 (12:16 -0700)]
Implement battery functionality for NetBSD users

This patch takes a similar approach as the NetBSD CPU temperature
code in that it uses proplib(3) to walk dictionaries supplied by
envsys(4).

In addition to providing the basic functionality, it:

* Provides all existing format specifiers (%emptytime %consumption
  %status %percentage %remaining)
* Respects all existing config options (hide_seconds, low_threshold,
  integer_battery_capacity, last_full_capacity)
* Projects "time until full" when battery status is CS_CHARGING

10 years agoAvoid unnecessary string duplication
Marco Hunsicker [Sat, 15 Mar 2014 13:50:07 +0000 (14:50 +0100)]
Avoid unnecessary string duplication

This patch removes an unnecessary string duplication that was only
used to avoid a compiler warning.

10 years agoRemove custom color options from order array
Marco Hunsicker [Sat, 15 Mar 2014 14:10:14 +0000 (15:10 +0100)]
Remove custom color options from order array

10 years agoUnify use of string comparisons
Mats [Tue, 11 Mar 2014 19:15:36 +0000 (20:15 +0100)]
Unify use of string comparisons

* strncmp(s1, s2, strlen(s2)) → BEGINS_WITH(s1, s2)
* strncmp(s1, s2, strlen(s1)) → strcmp(s1, s2)
* Prefer case-insensitive comparison for options

10 years agoFor the %percentage display of batteries, drop the leading '0' for values < 10.
Jasper Lievisse Adriaanse [Mon, 10 Mar 2014 09:22:47 +0000 (10:22 +0100)]
For the %percentage display of batteries, drop the leading '0' for values < 10.

10 years agodisk: Colorize output when below given threshold
Mats [Fri, 7 Mar 2014 23:24:42 +0000 (00:24 +0100)]
disk: Colorize output when below given threshold

New disk module options:
* threshold_type: ^(percentage|[kmgt]?bytes)_(free|avail)$
* low_threshold: <double>

fixes #912

10 years agoSupport align and min_width module options
Marco Hunsicker [Wed, 5 Mar 2014 19:53:07 +0000 (20:53 +0100)]
Support align and min_width module options

This patch enables users to define "align" and "min_width" options
right in the i3status module config sections.

Specifically this patch:
 * Adds macros for the two new options that are used in the option
   definitions. As the min_width option can take either a string or a
   number, a custom type has been added along with a corresponding callback
   function that parses the provided value (and provides input validation).
   The align option also uses a callback for input validation
 * Expands all module config option definitions to include the new
   options
 * Extends the SEC_CLOSE_MAP() macro to generate the JSON for the new
   options as necessary
 * Updates the manpage to explain the new options

10 years agoTypo in function name
Marco Hunsicker [Sat, 1 Mar 2014 10:05:03 +0000 (11:05 +0100)]
Typo in function name

Fixes the typo in print_seperator()

10 years agoi3status: Allow customization of module separator
Marco Hunsicker [Sat, 1 Mar 2014 08:55:29 +0000 (09:55 +0100)]
i3status: Allow customization of module separator

This patch adds the ability to customize the separator that is placed
between modules.

Specifically this patch:

* adds the "separator" general directive
* moves the definition of the default separator for the different
  output formats (excluding color formatting) to src/i3status.c
* updates the SEC_CLOSE_MAP macro to disable the separator for the
  i3bar output format if the separator directive dictates so
* changes print_seperator() in src/output.c to take a separator
  parameter in order to disable the output of the separator if
  the separator is empty and to use the provided separator
  otherwise
* updates the manpage to explain the new directive

10 years agoi3status: Bugfix: Reading multiple temperature sensors not possible
Marco Hunsicker [Tue, 25 Feb 2014 19:43:48 +0000 (20:43 +0100)]
i3status: Bugfix: Reading multiple temperature sensors not possible

This patch inlines the creation of the thermal zone string in order
to force computation on each invocation. This is necessary to be able
to read the values of several temperature sensors.

10 years agomake release: install the README file (Thanks myou)
Michael Stapelberg [Wed, 19 Feb 2014 21:58:30 +0000 (22:58 +0100)]
make release: install the README file (Thanks myou)

10 years agoAdd hide_seconds option
Iakov Davydov [Wed, 5 Feb 2014 10:12:47 +0000 (11:12 +0100)]
Add hide_seconds option

fixes: #1134

10 years agoAdd a format_down example for battery
Wieland Hoffmann [Sun, 5 Jan 2014 22:43:02 +0000 (23:43 +0100)]
Add a format_down example for battery

10 years agoman: Add a missing colon
Wieland Hoffmann [Sun, 5 Jan 2014 22:36:18 +0000 (23:36 +0100)]
man: Add a missing colon

10 years agomanpage: update version number 2.8
Michael Stapelberg [Sun, 5 Jan 2014 11:18:07 +0000 (12:18 +0100)]
manpage: update version number

10 years agoupdate CHANGELOG
Michael Stapelberg [Sun, 5 Jan 2014 11:17:18 +0000 (12:17 +0100)]
update CHANGELOG

10 years agodisk: Distinguish between IEC, SI and custom prefixes
Mats [Thu, 5 Dec 2013 21:12:17 +0000 (22:12 +0100)]
disk: Distinguish between IEC, SI and custom prefixes

* IEC: Ki, Mi, Gi, Ti (powers of 1024)
* SI: k, M, G, T (powers of 1000)
* custom: K, M, G, T (powers of 1024)

10 years agoAdd support for path_exists directive.
Kinware AB [Tue, 12 Nov 2013 19:51:23 +0000 (20:51 +0100)]
Add support for path_exists directive.

10 years agodocument format_muted in the manpage
Michael Stapelberg [Mon, 18 Nov 2013 21:32:48 +0000 (22:32 +0100)]
document format_muted in the manpage

10 years agoAdded different format string for volume in case it is muted.
Gereon Kremer [Thu, 14 Nov 2013 23:41:33 +0000 (00:41 +0100)]
Added different format string for volume in case it is muted.

If the volume is muted, the volume level would simply be displayed as zero and the color changed to color_degraded.
This patch lets the user define a custom format string for when the volume is muted.
The default value is "♪: 0%" ("♪: %volume" being the usual format).

10 years agodefault config: show %avail disk space instead of %free
Sebastian Ullrich [Mon, 11 Nov 2013 22:23:00 +0000 (23:23 +0100)]
default config: show %avail disk space instead of %free

The former property is generally more relevant to end users

11 years agoformat detection: simplify code, handle "sh" processes in the hierarchy
Michael Stapelberg [Sat, 9 Nov 2013 13:34:12 +0000 (14:34 +0100)]
format detection: simplify code, handle "sh" processes in the hierarchy

i3 starts processes using /bin/sh now, not $SHELL. This increases the
likelihood with which we are started by dash, which tends to leave its
processes in the hierarchy, e.g.:

michael       1524  i3bar --bar_id=bar-0 --socket=/run/user/1000/i3/ipc-s
michael       1525   \_ /bin/sh -c i3status
michael       1526       \_ i3status

This case is now handled correctly — when the parent is “sh”, the parent
of sh will be used instead.

11 years agofix slurp(), it needs to read size-1 for the trailing NUL
Michael Stapelberg [Sat, 9 Nov 2013 13:12:22 +0000 (14:12 +0100)]
fix slurp(), it needs to read size-1 for the trailing NUL

11 years agoprint_cpu_temperature: fix memory leak (Thanks kuba)
Michael Stapelberg [Thu, 24 Oct 2013 17:19:21 +0000 (19:19 +0200)]
print_cpu_temperature: fix memory leak (Thanks kuba)

11 years agoAdd support for cpu temperature on NetBSD (using envsys(4))
Arnaud Degroote [Sun, 6 Oct 2013 21:18:53 +0000 (21:18 +0000)]
Add support for cpu temperature on NetBSD (using envsys(4))

11 years agoAllow to print cpu usage on NetBSD
Arnaud Degroote [Sun, 6 Oct 2013 18:13:29 +0000 (18:13 +0000)]
Allow to print cpu usage on NetBSD

11 years agoAllow to print eth information on NetBSD
Arnaud Degroote [Sun, 6 Oct 2013 18:13:05 +0000 (18:13 +0000)]
Allow to print eth information on NetBSD

11 years agoFix the build on NetBSD
Arnaud Degroote [Sun, 6 Oct 2013 18:12:16 +0000 (18:12 +0000)]
Fix the build on NetBSD

11 years agoAdd example path for CPU temperature
Jan-Erik Rediger [Wed, 17 Jul 2013 21:43:45 +0000 (23:43 +0200)]
Add example path for CPU temperature

11 years agomanpage: update example for load’s max_threshold
Michael Stapelberg [Tue, 9 Jul 2013 21:25:16 +0000 (23:25 +0200)]
manpage: update example for load’s max_threshold

11 years agoallow load to be a float
M. Kory Woods [Sun, 7 Jul 2013 15:54:50 +0000 (10:54 -0500)]
allow load to be a float

11 years agoMakefile: use .SILENT and support V=1 for verbose builds
Michael Stapelberg [Tue, 18 Jun 2013 16:14:38 +0000 (18:14 +0200)]
Makefile: use .SILENT and support V=1 for verbose builds

11 years agoBugfix: In term-output, clear line before drawing new one
Axel Wagner [Tue, 11 Jun 2013 14:08:14 +0000 (16:08 +0200)]
Bugfix: In term-output, clear line before drawing new one

If we don't do this, the output of i3status will remain on the terminal,
which is really ugly if the statusline becomes shorter after a while
(for example a connection get's lost), because there will be garbage.

11 years agosignal handler: set flag because directly calling fprintf() is unsafe
Michael Stapelberg [Sun, 19 May 2013 17:58:51 +0000 (19:58 +0200)]
signal handler: set flag because directly calling fprintf() is unsafe

11 years agoImplement term-output-format
Axel Wagner [Thu, 16 May 2013 20:49:13 +0000 (22:49 +0200)]
Implement term-output-format

11 years agoprint_volume(linux): Open a new mixer every time.
oblique [Sun, 12 May 2013 17:44:27 +0000 (20:44 +0300)]
print_volume(linux): Open a new mixer every time.

This fix the following bug:
    If you switch your sound card on-the-fly, print_volume continued to
    use the old sound card.

11 years agofix #1017: i3status uses generic battery instance
Jonas Cleve [Sat, 4 May 2013 14:22:29 +0000 (16:22 +0200)]
fix #1017: i3status uses generic battery instance

11 years agomanpage: be more explicit about the path option
Michael Stapelberg [Sat, 4 May 2013 15:50:05 +0000 (17:50 +0200)]
manpage: be more explicit about the path option

11 years agoSupport colored output for CPU temperature on FreeBSD
Baptiste Daroussin [Tue, 19 Mar 2013 18:08:35 +0000 (19:08 +0100)]
Support colored output for CPU temperature on FreeBSD

11 years agoman: mention i3bar in the description (Thanks andi)
Michael Stapelberg [Tue, 19 Mar 2013 18:58:22 +0000 (19:58 +0100)]
man: mention i3bar in the description (Thanks andi)

11 years agoprint_volume: don’t return, complete the buffer first
Michael Stapelberg [Tue, 19 Mar 2013 18:56:44 +0000 (19:56 +0100)]
print_volume: don’t return, complete the buffer first

Otherwise, i3bar will display “SPEC VIOLATION” because full_text is
missing in the block.

11 years agoEnable colored output for battery on FreeBSD
Baptiste Daroussin [Tue, 19 Mar 2013 18:23:01 +0000 (19:23 +0100)]
Enable colored output for battery on FreeBSD

11 years agoSupport mixer_idx with OSS
Baptiste Daroussin [Tue, 19 Mar 2013 17:32:08 +0000 (18:32 +0100)]
Support mixer_idx with OSS

make mixer_idx load the default mixer

11 years agoShow degraded colors in case volume is muted with OSS
Baptiste Daroussin [Tue, 19 Mar 2013 17:23:59 +0000 (18:23 +0100)]
Show degraded colors in case volume is muted with OSS

11 years agoAdded format_down option for battery if no battery is available.
Christoph Göttschkes [Thu, 7 Mar 2013 20:21:54 +0000 (21:21 +0100)]
Added format_down option for battery if no battery is available.

11 years agoFix FTBFS on Hurd
Jakob Haufe [Thu, 28 Feb 2013 13:15:22 +0000 (14:15 +0100)]
Fix FTBFS on Hurd

On GNU/Hurd, THERMAL_ZONE is undefined. This makes compilation fail as
outwalk is declared inside of #ifdef THERMAL_ZONE, but it's used outside
of it (by OUTPUT_FULL_TEXT).

This moves the declaration outside the #ifdef to allow for successful
compilation on Hurd again.

11 years agoupdate CHANGELOG 2.7
Michael Stapelberg [Wed, 27 Feb 2013 09:56:28 +0000 (10:56 +0100)]
update CHANGELOG

11 years agocontrib: fix premature insetion of status message into JSON
Jiri Pinkava [Tue, 26 Feb 2013 19:16:47 +0000 (20:16 +0100)]
contrib: fix premature insetion of status message into JSON

Pass first 2 lines of JSON unmodified. It contains protocol version
and start of block of blocks of status messages.

11 years agowireless: call START_COLOR only once (Thanks XTaran)
Michael Stapelberg [Mon, 25 Feb 2013 23:32:24 +0000 (00:32 +0100)]
wireless: call START_COLOR only once (Thanks XTaran)

11 years agobattery: initialize colorful_output to false
Michael Stapelberg [Sat, 23 Feb 2013 17:05:08 +0000 (18:05 +0100)]
battery: initialize colorful_output to false

11 years agoipv6: properly handle colors for output_format == xmobar
Michael Stapelberg [Sat, 23 Feb 2013 17:04:52 +0000 (18:04 +0100)]
ipv6: properly handle colors for output_format == xmobar

11 years agoAdd colorized output for load avg
Raphael Michel [Mon, 31 Dec 2012 17:13:36 +0000 (18:13 +0100)]
Add colorized output for load avg

11 years agoAdded option to show battery capacity without decimals
Julien Lequertier [Sun, 10 Feb 2013 16:59:37 +0000 (17:59 +0100)]
Added option to show battery capacity without decimals

11 years agouse stdbool instead of (int)1 and (int)0 directly
Michael Stapelberg [Sun, 10 Feb 2013 16:21:46 +0000 (17:21 +0100)]
use stdbool instead of (int)1 and (int)0 directly

11 years agos/\<timezone\>/tz/ in order to not shadow the timezone var from time.h
Michael Stapelberg [Sun, 10 Feb 2013 16:19:56 +0000 (17:19 +0100)]
s/\<timezone\>/tz/ in order to not shadow the timezone var from time.h

11 years agoAdd tztime module to support multiple different timezones.
Emil Mikulic [Sun, 13 Jan 2013 13:18:38 +0000 (00:18 +1100)]
Add tztime module to support multiple different timezones.

11 years agoREADME: refer to cr.i3wm.org for patches
Michael Stapelberg [Sun, 10 Feb 2013 14:17:15 +0000 (15:17 +0100)]
README: refer to cr.i3wm.org for patches

11 years agoBugfix: output auto detect: properly detect ambiguous situations (Thanks mist)
Michael Stapelberg [Mon, 4 Feb 2013 20:36:55 +0000 (21:36 +0100)]
Bugfix: output auto detect: properly detect ambiguous situations (Thanks mist)

fixes #940

11 years agoretab! print_cpu_temperature
Michael Stapelberg [Mon, 28 Jan 2013 10:37:23 +0000 (11:37 +0100)]
retab! print_cpu_temperature

11 years agoMake sure colorful_output variable is initialized.
Emil Mikulic [Sun, 13 Jan 2013 12:23:43 +0000 (23:23 +1100)]
Make sure colorful_output variable is initialized.

11 years agosrc/*.c depends on include/i3status.h
Emil Mikulic [Sun, 13 Jan 2013 13:18:13 +0000 (00:18 +1100)]
src/*.c depends on include/i3status.h

11 years agowifi: properly display ad-hoc networks
Adrien Schildknecht [Thu, 24 Jan 2013 13:51:33 +0000 (14:51 +0100)]
wifi: properly display ad-hoc networks

No statistics are displayed with ad-hoc networks since none are available.

11 years agomake refreshs align with minutes
Gereon Kremer [Sat, 5 Jan 2013 11:47:02 +0000 (12:47 +0100)]
make refreshs align with minutes

11 years agochanging volume color from bad to degraded if muted
Gereon Kremer [Sat, 22 Dec 2012 18:06:53 +0000 (19:06 +0100)]
changing volume color from bad to degraded if muted

11 years agomake SIGUSR1 do nothing, so that killall -USR1 i3status will force an update
Michael Stapelberg [Wed, 5 Dec 2012 16:47:29 +0000 (17:47 +0100)]
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/

12 years agoDragonFlyBSD support added
Scott Tincman [Wed, 14 Nov 2012 01:29:55 +0000 (20:29 -0500)]
DragonFlyBSD support added

12 years agoBugfix: make custom colors configurable for battery (Thanks thomas)
Michael Stapelberg [Sat, 10 Nov 2012 07:46:26 +0000 (08:46 +0100)]
Bugfix: make custom colors configurable for battery (Thanks thomas)

fixes #865

12 years agoBugfix: make custom colors configurable for cpu_temperature (Thanks thomas)
Michael Stapelberg [Wed, 7 Nov 2012 20:14:02 +0000 (21:14 +0100)]
Bugfix: make custom colors configurable for cpu_temperature (Thanks thomas)

fixes #865

12 years agoTeen ordinal numbers always use a 'th' suffix.
Deiz [Wed, 31 Oct 2012 17:27:41 +0000 (13:27 -0400)]
Teen ordinal numbers always use a 'th' suffix.

12 years agoconfig: introduce an utf-8 character so that editors are forced to use utf-8
Michael Stapelberg [Mon, 5 Nov 2012 16:40:51 +0000 (17:40 +0100)]
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

12 years agoconfig: remove documentation from the disk field (got there by mistake)
Michael Stapelberg [Mon, 5 Nov 2012 16:36:53 +0000 (17:36 +0100)]
config: remove documentation from the disk field (got there by mistake)

12 years agoadd good, degraded and bad colors per module
Marcelo Cerri [Thu, 18 Oct 2012 20:55:41 +0000 (17:55 -0300)]
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.

12 years agoReduce the season day to 0-9 to properly print ordinal suffixes
Deiz [Wed, 17 Oct 2012 16:29:02 +0000 (12:29 -0400)]
Reduce the season day to 0-9 to properly print ordinal suffixes

12 years agobugfix: colorize output even without discharge rate (thanks f8l)
Simon Elsbrock [Tue, 16 Oct 2012 20:45:19 +0000 (22:45 +0200)]
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".

12 years agoimplement max_threshold for linux, too
Michael Stapelberg [Tue, 16 Oct 2012 08:52:57 +0000 (10:52 +0200)]
implement max_threshold for linux, too

12 years agoi3status - More temperature related fixes for OpenBSD, and a general feature
Jasper Lievisse Adriaanse [Wed, 10 Oct 2012 07:57:32 +0000 (09:57 +0200)]
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.

12 years agoi3status - Default to acpitz(4) instead of cpu(4) for OpenBSD temperature readings
Jasper Lievisse Adriaanse [Wed, 10 Oct 2012 07:53:34 +0000 (09:53 +0200)]
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.

12 years agoi3status - Handle down wireless interfaces just like ethernet interfaces (e.g. colors)
Jasper Lievisse Adriaanse [Wed, 10 Oct 2012 07:52:27 +0000 (09:52 +0200)]
i3status - Handle down wireless interfaces just like ethernet interfaces (e.g. colors)

12 years agoSkip a day in the Discordian calendar when St. Tib's Day has passed
Deiz [Mon, 15 Oct 2012 17:56:17 +0000 (13:56 -0400)]
Skip a day in the Discordian calendar when St. Tib's Day has passed

12 years agoImplement %essid and %signal for wireless on OpenBSD.
Jasper Lievisse Adriaanse [Mon, 8 Oct 2012 20:15:14 +0000 (22:15 +0200)]
Implement %essid and %signal for wireless on OpenBSD.

12 years agoImplement %speed for Ethernet on OpenBSD.
Jasper Lievisse Adriaanse [Mon, 8 Oct 2012 20:13:47 +0000 (22:13 +0200)]
Implement %speed for Ethernet on OpenBSD.

12 years agoVarious fixes for the OpenBSD section of the battery backend.
Jasper Lievisse Adriaanse [Mon, 8 Oct 2012 11:30:38 +0000 (13:30 +0200)]
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.

12 years agoBugfix: Move the pbval definition outside the ifdef (Thanks XTaran)
Michael Stapelberg [Wed, 3 Oct 2012 13:12:49 +0000 (15:12 +0200)]
Bugfix: Move the pbval definition outside the ifdef (Thanks XTaran)

This fixes compilation on !linux

12 years agoremove debian/, packaging now lives on alioth
Michael Stapelberg [Wed, 3 Oct 2012 12:13:33 +0000 (14:13 +0200)]
remove debian/, packaging now lives on alioth

12 years agoinclude contrib/ in release tarballs 2.6
Michael Stapelberg [Wed, 3 Oct 2012 11:44:34 +0000 (13:44 +0200)]
include contrib/ in release tarballs

12 years agoupdate changelog and manpage for 2.6
Michael Stapelberg [Wed, 3 Oct 2012 11:42:01 +0000 (13:42 +0200)]
update changelog and manpage for 2.6

12 years agoSave the DNS lookup for K.root-servers.net (Thanks barfoos)
Michael Stapelberg [Fri, 28 Sep 2012 22:08:56 +0000 (00:08 +0200)]
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.

12 years agoprint_battery.c: do END_COLOR only if START_COLOR was used
Simon Elsbrock [Wed, 5 Sep 2012 16:39:48 +0000 (18:39 +0200)]
print_battery.c: do END_COLOR only if START_COLOR was used

12 years agoturn volume into red if muted
Simon Elsbrock [Wed, 5 Sep 2012 16:39:47 +0000 (18:39 +0200)]
turn volume into red if muted

fixes #743

12 years agomodify START_COLOR macro variable naming
Simon Elsbrock [Wed, 5 Sep 2012 16:39:46 +0000 (18:39 +0200)]
modify START_COLOR macro variable naming

Rename val to _val to prevent shadowing warnings due to its common
naming.

12 years agointroduce percentages for all values, document them
Michael Stapelberg [Fri, 31 Aug 2012 12:16:58 +0000 (14:16 +0200)]
introduce percentages for all values, document them

12 years agoadding percentage format string for disk info module
gereon [Thu, 30 Aug 2012 17:32:33 +0000 (19:32 +0200)]
adding percentage format string for disk info module

explicit cast to double, changed format string to percentage

12 years agoEat unnecessary space from the battery format str.
Piotr Domagalski [Tue, 28 Aug 2012 20:07:33 +0000 (22:07 +0200)]
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.

12 years agoadd additional battery threshold type "percentage"
Simon Elsbrock [Thu, 23 Aug 2012 14:42:38 +0000 (16:42 +0200)]
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.

12 years agouse correct units for battery calculation
Philipp Schaefer [Mon, 30 Jul 2012 13:40:56 +0000 (15:40 +0200)]
use correct units for battery calculation

12 years agoBugfix: non-i3bar formats always used color_bad (Thanks hongy19)
Michael Stapelberg [Sun, 12 Aug 2012 23:35:07 +0000 (01:35 +0200)]
Bugfix: non-i3bar formats always used color_bad (Thanks hongy19)

fixes #772