]>
git.sur5r.net Git - i3/i3status/log
Mihai Coman [Tue, 15 Nov 2016 11:34:06 +0000 (13:34 +0200)]
Add unit tests for threshold format
Mihai Coman [Mon, 14 Nov 2016 20:10:19 +0000 (22:10 +0200)]
Add 'format_below_threshold' option for 'disk' module
Add 'format_above_threshold' option for 'cpu_temperature' module
Add 'format_above_threshold' option for 'cpu_usage' module
Add 'format_above_threshold' option for 'load' module
eplanet [Mon, 14 Nov 2016 08:13:44 +0000 (09:13 +0100)]
Unit testing in Travis (#170)
Jon Bernard [Sat, 12 Nov 2016 14:39:41 +0000 (09:39 -0500)]
Use blank padding for wireless quality (#166) (#167)
Björn Lindström [Mon, 24 Oct 2016 06:43:04 +0000 (13:43 +0700)]
Setting of custom locale in tztime configuration. (#168)
To be able to show my birth country's time zone in that country's locale, and my local time in my current locale.
Stu Zhao [Sun, 23 Oct 2016 19:20:31 +0000 (15:20 -0400)]
Detect batteries using glob (#163)
Watcom [Wed, 14 Sep 2016 07:26:45 +0000 (04:26 -0300)]
pulse device may be specified by name (#126) (#162)
Michael Stapelberg [Mon, 5 Sep 2016 06:35:24 +0000 (08:35 +0200)]
Bugfix: re-add single quotes around I3STATUS_VERSION
related to https://github.com/i3/i3/issues/2437
Michael Stapelberg [Mon, 29 Aug 2016 07:45:15 +0000 (09:45 +0200)]
Merge pull request #140 from tommie/multibatt
Implement aggregates in print_battery_info
Tommie Gannert [Mon, 1 Aug 2016 17:03:03 +0000 (18:03 +0100)]
Implement aggregates for batteries.
Using title number all, this enables aggregates. Note that FreeBSD and
OpenBSD previously only reported aggregates, so this is bringing Linux
and NetBSD that functionality.
Changes the default battery reporting to the aggregate since most
users probably don't care about individual batteries. For single-battery
systems there should be no change.
Fixes one obvious memory leak in NetBSD.
Tommie Gannert [Tue, 16 Aug 2016 08:18:05 +0000 (09:18 +0100)]
Match trailing equal sign in slurp_battery_info.
Should make it more resilient to future ambiguities in uevent.
Cihangir Akturk [Mon, 22 Aug 2016 17:23:59 +0000 (20:23 +0300)]
Parse uevent file to detect network device type (#153)
Currently i3status differentiates wireless and wired devices based
on the existence of wireless directory inside the device's sysfs
directory. This approach seems to cause 3g modems to be incorrectly
identified as the first ethernet device.
This commit solves this problem by using DEVTYPE variable from
uevent file.
Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
Michael Stapelberg [Mon, 22 Aug 2016 06:48:55 +0000 (08:48 +0200)]
print_wireless_info: fix FTBFS on hurd and kfreebsd
Patch by Axel Beckert.
tnnn [Sun, 21 Aug 2016 20:11:19 +0000 (22:11 +0200)]
Added missing ampere to watt conversion for last full capacity. (#158)
Signed-off-by: Tomasz Nitecki <tnnn@tnnn.pl>
Michael Stapelberg [Wed, 17 Aug 2016 06:16:20 +0000 (08:16 +0200)]
default config: remove DHCP, VPN
VPN was removed because it pointed to vpnc, which hasn’t been updated
since 2008 and is long obsolete in favor of openconnect. Since different
people use different VPN solutions, though (and other modules configured
by default do actually work regardless of the system), let’s remove this
and have people who need it configure it explicitly.
DHCP was removed because modern systems often don’t use dhclient anymore
(but rather systemd-networkd’s DHCP client, which can also be used via
NetworkManager these days) and because it fails our philosophy test:
it’s not something which you would look at every now and then if
i3status didn’t expose it.
eplanet [Tue, 16 Aug 2016 07:29:08 +0000 (09:29 +0200)]
Print empty string for not mounted disks. (#148)
An empty string becomes the default value for format_not_mounted parameter
for any disk entry. This avoids printing erroneous values when a
filesystem is not mounted.
tommie [Mon, 15 Aug 2016 06:52:20 +0000 (07:52 +0100)]
Move time and ratio computations out of slurp_battery_info. (#151)
This allows OSes that support reporting multiple batteries to simply
sum into full_design,full_last,remaining and let print_battery_info
make computations.
Michael Stapelberg [Sun, 14 Aug 2016 20:01:35 +0000 (13:01 -0700)]
Merge pull request #150 from tommie/incremental_multibatt
Move full_design and full_last into struct battery_info
Tommie Gannert [Mon, 1 Aug 2016 14:25:13 +0000 (15:25 +0100)]
Move full_design and full_last into struct battery_info.
This is in preparation for moving the ratio computation code out of
slurp_battery_info to support aggregating multiple batteries.
Tommie Gannert [Mon, 1 Aug 2016 19:17:50 +0000 (20:17 +0100)]
Also capture charge rate in NetBSD.
For time estimates when charging.
Michael Stapelberg [Sun, 14 Aug 2016 13:29:20 +0000 (06:29 -0700)]
Merge pull request #149 from tommie/incremental_multibatt
Fix some compilation warnings on OpenBSD and NetBSD
Tommie Gannert [Sun, 14 Aug 2016 11:35:52 +0000 (12:35 +0100)]
Fix warnings about using a char array index on NetBSD.
The isspace macro is just a table lookup.
Tommie Gannert [Mon, 1 Aug 2016 19:28:16 +0000 (20:28 +0100)]
Simplify string comparisons in slurp_battery_info for NetBSD.
Doing strlen(a) == strlen(b) && strncmp(a, b, N) seems to have no
benefits compared to just strcmp(a, b). The NetBSD cstring properties
come from the kernel, not the user.
The test for units did a prefix match, but that looked like a bug, the
unit is "Watt hour" in my Virtual box.
Tommie Gannert [Mon, 1 Aug 2016 13:34:39 +0000 (14:34 +0100)]
Make print_disk_info, print_eth_info and print_wireless_info compile on NetBSD without warnings.
Tommie Gannert [Mon, 1 Aug 2016 10:37:47 +0000 (11:37 +0100)]
Remove warnings about unused variables in slurp_battery_info on OpenBSD.
Tommie Gannert [Mon, 1 Aug 2016 10:29:18 +0000 (11:29 +0100)]
Define IW_ESSID_MAX_SIZE for OpenBSD.
Also fixes a signedness warning.
Michael Stapelberg [Sat, 13 Aug 2016 21:01:48 +0000 (14:01 -0700)]
Merge pull request #145 from tommie/incremental_multibatt
Move OS-specific code from print_battery_info to a separate function
eplanet [Sat, 13 Aug 2016 20:46:31 +0000 (22:46 +0200)]
Deleting VERSION and extracting it from I3STATUS_VERSION instead (#146)
Tommie Gannert [Mon, 1 Aug 2016 00:49:12 +0000 (01:49 +0100)]
Move OS-specific code to slurp_battery_info.
Tommie Gannert [Mon, 1 Aug 2016 00:36:23 +0000 (01:36 +0100)]
Introduce a struct battery_info to carry information from data retrieval to the output formatter.
Michael Stapelberg [Wed, 3 Aug 2016 22:21:37 +0000 (00:21 +0200)]
Merge pull request #144 from tommie/incremental_multibatt
Refactor color code and computation of seconds_remaining in print_battery_info
Tommie Gannert [Mon, 1 Aug 2016 00:27:44 +0000 (01:27 +0100)]
Refactor common seconds_remaining code in print_battery_info.
Tommie Gannert [Mon, 1 Aug 2016 00:19:23 +0000 (01:19 +0100)]
Remove an END_COLOR in print_battery_info for OpenBSD.
This was probably a bug since it makes no sense to have here.
Tommie Gannert [Mon, 1 Aug 2016 00:15:35 +0000 (01:15 +0100)]
Move START_COLOR to after OS-specific code.
This uses the more direct tests of whether percentage_remaining and
seconds_remaining are available or not (rather than looking at
present_rate).
Michael Stapelberg [Wed, 3 Aug 2016 21:14:14 +0000 (23:14 +0200)]
Merge pull request #143 from tommie/incremental_multibatt
Remove emptytimebuf and consumptionbuf from print_battery_info
Tommie Gannert [Mon, 1 Aug 2016 00:07:23 +0000 (01:07 +0100)]
Remove consumptionbuf from print_battery_info.
Tommie Gannert [Mon, 1 Aug 2016 00:00:31 +0000 (01:00 +0100)]
Remove emptytimebuf from print_battery_info.
This changes the behavior for NetBSD: previously this time was not
shown while charging. On Linux it was treated as "full time". This
change makes all OSes behave the same.
OpenBSD and FreeBSD did not support emptytime previously.
Michael Stapelberg [Wed, 3 Aug 2016 16:45:45 +0000 (18:45 +0200)]
Merge pull request #142 from tommie/incremental_multibatt
Remove statusbuf, percentagebuf and remainingbuf from print_battery_info
Tommie Gannert [Sun, 31 Jul 2016 23:51:48 +0000 (00:51 +0100)]
Remove remainingbuf from print_battery_info.
eplanet [Mon, 1 Aug 2016 20:16:50 +0000 (22:16 +0200)]
Fixed typo in README.md (#141)
Tommie Gannert [Sun, 31 Jul 2016 23:33:19 +0000 (00:33 +0100)]
Remove percentagebuf from print_battery_info.
Tommie Gannert [Sun, 31 Jul 2016 23:24:40 +0000 (00:24 +0100)]
Remove statusbuf from print_battery_info.
Michael Stapelberg [Sat, 30 Jul 2016 17:23:20 +0000 (19:23 +0200)]
Merge pull request #139 from Gjum/wb-colored-cpu-usage
Add CPU usage color thresholds
Gjum [Wed, 27 Jul 2016 17:57:50 +0000 (19:57 +0200)]
change default cpu_usage thresholds to 90 and 95
Bandie Yip Kojote [Thu, 30 Jun 2016 07:52:35 +0000 (07:52 +0000)]
Manpage subsection TzTime: Example config now matches to the context (#134)
eplanet [Mon, 27 Jun 2016 06:49:51 +0000 (08:49 +0200)]
Added version files for release tarball. Fixes #78 (#132)
eplanet [Wed, 15 Jun 2016 21:13:40 +0000 (23:13 +0200)]
Default configuration paths ordered the same way as i3. Fixes #129 (#130)
Michael Stapelberg [Wed, 15 Jun 2016 19:41:27 +0000 (21:41 +0200)]
travis: use trusty instead of (failing) llvm repo
Alexis Hildebrandt [Fri, 13 May 2016 07:50:09 +0000 (09:50 +0200)]
Add ifdef to compile wireless_info on Mac (#127)
Watcom [Sat, 7 May 2016 22:19:30 +0000 (19:19 -0300)]
reconnect to PulseAudio if connection is lost (fixes #124) (#125)
Mark Schreiber [Wed, 13 Apr 2016 16:07:12 +0000 (09:07 -0700)]
Add CPU usage color thresholds
CPU usage had previously not supported the color option. Add support
for a "degraded" state above which the degraded color is used, and a
higher "bad" state above which the "bad" color is used. One possible
use for these might be indicating whether one or all cores are
saturated.
Unlike the color settings for other, these are set high enough to be
disabled by default. This is done because i3status determines CPU
usage over only the last display interval, which means that, a user
with a low refresh rate might see frequent, potentially-annoying color
changes.
Michael Stapelberg [Wed, 30 Mar 2016 06:53:55 +0000 (08:53 +0200)]
Merge pull request #117 from egroat/master
Added status_unk to battery_info
eoin [Mon, 21 Mar 2016 22:41:22 +0000 (22:41 +0000)]
Added status_unk to battery_info
Michael Stapelberg [Mon, 21 Mar 2016 19:19:14 +0000 (12:19 -0700)]
Merge pull request #116 from eplanet/55_path_cputemp
Adding glob check to cpu temperature fixes #55
eplanet [Sun, 20 Mar 2016 10:47:56 +0000 (11:47 +0100)]
Adding glob check to cpu temperature fixes #55
Michael Stapelberg [Sat, 12 Mar 2016 03:10:45 +0000 (19:10 -0800)]
Merge pull request #114 from ixjlyons/fix-man-url
Fixed link to contrib in man page.
Kenneth Lyons [Fri, 11 Mar 2016 22:26:54 +0000 (14:26 -0800)]
Fixed link to contrib in man page.
Michael Stapelberg [Mon, 1 Feb 2016 07:53:27 +0000 (08:53 +0100)]
Merge pull request #105 from cornerman/issue_104
add separator and separator_block_width as universal module options
johannes karoff [Sun, 31 Jan 2016 18:16:42 +0000 (19:16 +0100)]
add separator and separator_block_width as universal module options
fixes #104
Michael Stapelberg [Mon, 25 Jan 2016 08:53:59 +0000 (00:53 -0800)]
Merge pull request #103 from craftyguy/bat_full_remaining
This removes the 'remaining' time when the battery is full, since the…
Clayton Craft [Mon, 25 Jan 2016 06:39:53 +0000 (22:39 -0800)]
This removes the 'remaining' time when the battery is full, since the remaining time is always 00:00:00. When the battery is discharging, the remaining time will show up again if the user has set their format correctly.
Michael Stapelberg [Fri, 22 Jan 2016 08:39:55 +0000 (00:39 -0800)]
Merge pull request #100 from czarkoff/mail-python
check_mail.py: more detailed report on IOError
Dmitrij D. Czarkoff [Thu, 21 Jan 2016 09:36:30 +0000 (10:36 +0100)]
check_mail.py: more detailed report on IOError
When user doesn't have permissions to access some file, he is better served by
exact error message python recieved then by statement "not a mailbox".
Michael Stapelberg [Tue, 12 Jan 2016 21:22:37 +0000 (13:22 -0800)]
Merge pull request #96 from bebehei/symbols-battery
give more descriptive symbols to battery format
Michael Stapelberg [Tue, 12 Jan 2016 19:57:04 +0000 (11:57 -0800)]
Merge pull request #95 from Watcom/nanosleep
revert back to using nanosleep
Benedikt Heine [Tue, 12 Jan 2016 14:07:33 +0000 (15:07 +0100)]
give more descriptive symbols to battery format
Watcom Hecht [Tue, 12 Jan 2016 13:35:02 +0000 (11:35 -0200)]
revert back to using nanosleep
Fixes #93
Michael Stapelberg [Tue, 12 Jan 2016 08:49:59 +0000 (09:49 +0100)]
Bugfix: check that format_not_mounted is not NULL before using it
This issue was introduced with commit
75a83574 .
fixes #92
Michael Stapelberg [Mon, 11 Jan 2016 09:04:18 +0000 (01:04 -0800)]
Merge pull request #94 from rpls/master
Forgotten wakeup call from USR1 handler
Richard Petri [Mon, 11 Jan 2016 08:58:44 +0000 (09:58 +0100)]
Forgotten wakeup call from USR1 handler
Fixes #93
Michael Stapelberg [Fri, 1 Jan 2016 18:49:04 +0000 (19:49 +0100)]
release v2.10
Michael Stapelberg [Sun, 27 Dec 2015 10:17:07 +0000 (11:17 +0100)]
Merge pull request #88 from auscompgeek/swaybar
format detection: recognise swaybar
David [Sun, 27 Dec 2015 04:59:32 +0000 (15:59 +1100)]
format detection: recognise swaybar
Michael Stapelberg [Wed, 23 Dec 2015 10:21:34 +0000 (11:21 +0100)]
Merge pull request #86 from remijouannet/master
update README.md with libnl-genl-3-dev
Rémi Jouannet [Wed, 23 Dec 2015 10:13:54 +0000 (11:13 +0100)]
update README.md with libnl-genl-3-dev
Michael Stapelberg [Sat, 5 Dec 2015 19:00:27 +0000 (20:00 +0100)]
Merge pull request #72 from ixjlyons/pango-setting
Implement a pango option
Kenneth Lyons [Mon, 5 Oct 2015 08:10:01 +0000 (01:10 -0700)]
Added support for Pango markup.
Michael Stapelberg [Tue, 24 Nov 2015 18:26:07 +0000 (19:26 +0100)]
fix compilation on FreeBSD
fixes #83
Michael Stapelberg [Mon, 16 Nov 2015 21:41:18 +0000 (22:41 +0100)]
first_eth_interface: ignore MAC addresses, look for IPv4/IPv6 addresses
Michael Stapelberg [Fri, 16 Oct 2015 07:44:09 +0000 (00:44 -0700)]
Merge pull request #77 from StefaBa/master
Correctly calculate Wireless link quality
Stefan Bader [Mon, 12 Oct 2015 18:46:22 +0000 (20:46 +0200)]
Correctly calculate Wireless link quality
Wireless quality was stuck at 100% due to
a signed with unsigned integer division.
Michael Stapelberg [Mon, 12 Oct 2015 18:29:52 +0000 (11:29 -0700)]
Merge pull request #76 from lahwaacz/volume_fix
Volume percentage should be obtained by float division and rounded to int
Jakub Klinkovský [Mon, 12 Oct 2015 07:44:13 +0000 (09:44 +0200)]
Volume percentage should be obtained by float division and rounded to int.
Fixes #75
Michael Stapelberg [Fri, 9 Oct 2015 16:11:16 +0000 (09:11 -0700)]
Merge pull request #71 from bsdjhb/freebsd_wifi_buildfix
Fix build under FreeBSD after recent changes for Linux.
Michael Stapelberg [Fri, 9 Oct 2015 16:11:03 +0000 (09:11 -0700)]
Merge pull request #70 from bsdjhb/freebsd_battery
Properly detect the battery charging status under FreeBSD.
John Baldwin [Thu, 8 Oct 2015 20:20:02 +0000 (13:20 -0700)]
Fix build under FreeBSD after recent changes for Linux.
John Baldwin [Thu, 8 Oct 2015 20:15:38 +0000 (13:15 -0700)]
Properly detect the battery charging status under FreeBSD.
The hw.acpi.battery.state sysctl returns a bitmask of flags as
defined in <dev/acpica/acpiio.h>. Use constants from this header
to examine the state and check for the charging flag to determine
if the battery is charging.
Michael Stapelberg [Sun, 4 Oct 2015 19:01:49 +0000 (21:01 +0200)]
Merge pull request #68 from bsvh/master
Added support for lemonbar
Brendan Van Hook [Fri, 2 Oct 2015 06:28:53 +0000 (02:28 -0400)]
Added support for lemonbar
Michael Stapelberg [Fri, 25 Sep 2015 09:39:50 +0000 (11:39 +0200)]
document code origins
fixes #65
Michael Stapelberg [Fri, 25 Sep 2015 09:05:51 +0000 (11:05 +0200)]
Fix comparison between signed/unsigned warning for real
Michael Stapelberg [Fri, 25 Sep 2015 08:49:14 +0000 (10:49 +0200)]
use proper unsigned type for ESSID length
Michael Stapelberg [Fri, 25 Sep 2015 08:49:01 +0000 (10:49 +0200)]
use nlmsg_data instead of the too-new genlmsg_hdr
Michael Stapelberg [Fri, 25 Sep 2015 08:42:30 +0000 (10:42 +0200)]
use NL80211_RATE_INFO_BITRATE (16-bit)
NL80211_RATE_INFO_BITRATE32 is not available widely enough yet (the libc
used by travis doesn’t have it yet, for example).
Michael Stapelberg [Thu, 24 Sep 2015 19:54:02 +0000 (21:54 +0200)]
travis: switch to libnl-genl-3-dev
Michael Stapelberg [Thu, 24 Sep 2015 19:47:02 +0000 (21:47 +0200)]
wireless (linux): switch from libiw to libnl
Based on http://cr.i3wm.org/patch/692/ by Alexander Monakov
fixes #32
fixes #52
Michael Stapelberg [Thu, 24 Sep 2015 11:49:29 +0000 (13:49 +0200)]
Merge pull request #62 from brioscaibriste/master
adding new markdown README.md to display nicely on github
Michael Stapelberg [Thu, 24 Sep 2015 11:42:31 +0000 (13:42 +0200)]
Merge pull request #63 from JSmith-BitFlipper/patch-1
Resolved potential bug
konadr [Wed, 23 Sep 2015 21:01:09 +0000 (22:01 +0100)]
adding new markdown README.md to display nicely on github
JSmith-BitFlipper [Sun, 20 Sep 2015 17:56:44 +0000 (13:56 -0400)]
Resolved potential bug
This pull request is in response to #61