]> git.sur5r.net Git - i3/i3status/log
i3/i3status
8 years agoAdded support for Pango markup. 72/head
Kenneth Lyons [Mon, 5 Oct 2015 08:10:01 +0000 (01:10 -0700)]
Added support for Pango markup.

8 years agofix compilation on FreeBSD
Michael Stapelberg [Tue, 24 Nov 2015 18:26:07 +0000 (19:26 +0100)]
fix compilation on FreeBSD

fixes #83

9 years agofirst_eth_interface: ignore MAC addresses, look for IPv4/IPv6 addresses
Michael Stapelberg [Mon, 16 Nov 2015 21:41:18 +0000 (22:41 +0100)]
first_eth_interface: ignore MAC addresses, look for IPv4/IPv6 addresses

9 years agoMerge pull request #77 from StefaBa/master
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

9 years agoCorrectly calculate Wireless link quality 77/head
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.

9 years agoMerge pull request #76 from lahwaacz/volume_fix
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

9 years agoVolume percentage should be obtained by float division and rounded to int. 76/head
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

9 years agoMerge pull request #71 from bsdjhb/freebsd_wifi_buildfix
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.

9 years agoMerge pull request #70 from bsdjhb/freebsd_battery
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.

9 years agoFix build under FreeBSD after recent changes for Linux. 71/head
John Baldwin [Thu, 8 Oct 2015 20:20:02 +0000 (13:20 -0700)]
Fix build under FreeBSD after recent changes for Linux.

9 years agoProperly detect the battery charging status under FreeBSD. 70/head
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.

9 years agoMerge pull request #68 from bsvh/master
Michael Stapelberg [Sun, 4 Oct 2015 19:01:49 +0000 (21:01 +0200)]
Merge pull request #68 from bsvh/master

Added support for lemonbar

9 years agoAdded support for lemonbar 68/head
Brendan Van Hook [Fri, 2 Oct 2015 06:28:53 +0000 (02:28 -0400)]
Added support for lemonbar

9 years agodocument code origins
Michael Stapelberg [Fri, 25 Sep 2015 09:39:50 +0000 (11:39 +0200)]
document code origins

fixes #65

9 years agoFix comparison between signed/unsigned warning for real
Michael Stapelberg [Fri, 25 Sep 2015 09:05:51 +0000 (11:05 +0200)]
Fix comparison between signed/unsigned warning for real

9 years agouse proper unsigned type for ESSID length
Michael Stapelberg [Fri, 25 Sep 2015 08:49:14 +0000 (10:49 +0200)]
use proper unsigned type for ESSID length

9 years agouse nlmsg_data instead of the too-new genlmsg_hdr
Michael Stapelberg [Fri, 25 Sep 2015 08:49:01 +0000 (10:49 +0200)]
use nlmsg_data instead of the too-new genlmsg_hdr

9 years agouse NL80211_RATE_INFO_BITRATE (16-bit)
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).

9 years agotravis: switch to libnl-genl-3-dev
Michael Stapelberg [Thu, 24 Sep 2015 19:54:02 +0000 (21:54 +0200)]
travis: switch to libnl-genl-3-dev

9 years agowireless (linux): switch from libiw to libnl
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

9 years agoMerge pull request #62 from brioscaibriste/master
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

9 years agoMerge pull request #63 from JSmith-BitFlipper/patch-1
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

9 years agoadding new markdown README.md to display nicely on github 62/head
konadr [Wed, 23 Sep 2015 21:01:09 +0000 (22:01 +0100)]
adding new markdown README.md to display nicely on github

9 years agoResolved potential bug 63/head
JSmith-BitFlipper [Sun, 20 Sep 2015 17:56:44 +0000 (13:56 -0400)]
Resolved potential bug

This pull request is in response to #61

9 years agoMerge pull request #59 from bsdjhb/freebsd_wifi
Michael Stapelberg [Wed, 16 Sep 2015 12:06:48 +0000 (14:06 +0200)]
Merge pull request #59 from bsdjhb/freebsd_wifi

Fix various issues with wireless information under FreeBSD:

9 years agoMerge pull request #58 from bsdjhb/freebsd_ethernet_media
Michael Stapelberg [Wed, 16 Sep 2015 12:06:32 +0000 (14:06 +0200)]
Merge pull request #58 from bsdjhb/freebsd_ethernet_media

Fix some issues with displaying Ethernet media status on recent FreeBSD kernels.

9 years agoFix various issues with wireless information under FreeBSD: 59/head
John Baldwin [Tue, 15 Sep 2015 20:39:01 +0000 (13:39 -0700)]
Fix various issues with wireless information under FreeBSD:

- Instead of hoping that the currently associated AP will show up as
  the first AP in the list of scan results, fetch the BSSID of the
  currently associated AP and use that to fetch station info for the
  AP.  This provides more frequently updated signal strength
  information than scan results and reliably provides information when
  multiple APs are in range.
- Do not treat the RSSI value as a raw signal value in dBm.  Instead, use
  the same formula as ifconfig(8) to compute a signal value.
- Do not report the beacon interval value as a signal quality level.

9 years agoFix some issues with displaying Ethernet media status on recent FreeBSD kernels. 58/head
John Baldwin [Tue, 15 Sep 2015 17:48:16 +0000 (10:48 -0700)]
Fix some issues with displaying Ethernet media status on recent FreeBSD kernels.

- Don't apply IFM_SUBTYPE to the raw subtype in the description table.
  IFM_SUBTYPE() requires a fully populated word and was truncating values
  in the table when comparing resulting in false matches (notably
  "10GBase-KX4" for the no media case) after recent changes to add extended
  Ethernet media states in FreeBSD.
- Explicitly check for IFM_ETHER.
- Use SIOCGIFXMEDIA when present to obtain extended media states on newer
  kernels.
- Explicitly handle "no carrier".

9 years agoMerge pull request #51 from czarkoff/mail-python
Michael Stapelberg [Mon, 10 Aug 2015 17:48:15 +0000 (19:48 +0200)]
Merge pull request #51 from czarkoff/mail-python

Basic mail checker in python

9 years agoBasic mail checker in python 51/head
Dmitrij D. Czarkoff [Fri, 7 Aug 2015 20:47:34 +0000 (22:47 +0200)]
Basic mail checker in python

9 years agoMerge pull request #50 from czarkoff/no_ip
Michael Stapelberg [Thu, 6 Aug 2015 16:18:19 +0000 (18:18 +0200)]
Merge pull request #50 from czarkoff/no_ip

Use "color_degraded" when interface has no IP

9 years agoUse "color_degraded" when interface has no IP 50/head
Dmitrij D. Czarkoff [Thu, 6 Aug 2015 15:14:38 +0000 (17:14 +0200)]
Use "color_degraded" when interface has no IP

On laptops one may want to have all interfaces up in order to let network
prioritization manage switching between wired and wireless connection.  In such
cases lack of IP address is a useful hint about currently used interface, and
color-coding makes it stand out more.

9 years agoMerge pull request #47 from czarkoff/sndio
Michael Stapelberg [Sun, 2 Aug 2015 16:13:11 +0000 (09:13 -0700)]
Merge pull request #47 from czarkoff/sndio

Use SndIO for volume module on OpenBSD

9 years agoUse SndIO for volume module on OpenBSD 47/head
Dmitrij D. Czarkoff [Thu, 30 Jul 2015 23:51:40 +0000 (01:51 +0200)]
Use SndIO for volume module on OpenBSD

 * add audio(4) code by Robert Nagy
 * disable PulseAudio

While at OpenBSD support, add "-pthread" to LIBS.

9 years agoMerge pull request #40 from afh/pull/osx
Michael Stapelberg [Wed, 8 Jul 2015 06:12:13 +0000 (23:12 -0700)]
Merge pull request #40 from afh/pull/osx

Mac OS X compatibility changes

9 years agoAdd ifdef to compile print_disk_info on Mac 40/head
Alexis Hildebrandt [Mon, 6 Jul 2015 13:40:30 +0000 (15:40 +0200)]
Add ifdef to compile print_disk_info on Mac

9 years agoUse gettimeofday instead of clock_gettime on Mac
Alexis Hildebrandt [Mon, 6 Jul 2015 13:39:34 +0000 (15:39 +0200)]
Use gettimeofday instead of clock_gettime on Mac

since the latter is not available.

9 years agoFix undeclared identifier thermal_zone error
Alexis Hildebrandt [Wed, 10 Jun 2015 17:03:29 +0000 (19:03 +0200)]
Fix undeclared identifier thermal_zone error

when THERMAL_ZONE is not defined.

9 years agoAdd A2X_FLAGS
Alexis Hildebrandt [Wed, 10 Jun 2015 17:02:57 +0000 (19:02 +0200)]
Add A2X_FLAGS

to be able to optionally skip xmllint, which errors on Mac OS X.

9 years agoWhitespace edit
Alexis Hildebrandt [Wed, 10 Jun 2015 17:01:13 +0000 (19:01 +0200)]
Whitespace edit

9 years agoMerge pull request #39 from vikstrous/master
Michael Stapelberg [Sat, 13 Jun 2015 10:40:39 +0000 (12:40 +0200)]
Merge pull request #39 from vikstrous/master

add apostrophe to error message to fix grammar

9 years agoadd apostrophe to error message to fix grammar 39/head
Viktor Stanchev [Sat, 13 Jun 2015 03:08:12 +0000 (23:08 -0400)]
add apostrophe to error message to fix grammar

9 years agoMerge pull request #35 from Airblader/feature-33
Michael Stapelberg [Fri, 29 May 2015 07:52:46 +0000 (09:52 +0200)]
Merge pull request #35 from Airblader/feature-33

Use format_not_mounted if path does not exist

9 years agoUse format_not_mounted if the directory for a disk_info block does not exist. 35/head
Ingo Bürk [Fri, 29 May 2015 06:41:11 +0000 (08:41 +0200)]
Use format_not_mounted if the directory for a disk_info block does not exist.
This is useful for dynamically mounted devices like thumb drives that get mounted into a directory such as
'/media/$UID/$NAME'.

fixes #33

9 years agoClamp the percentage at 100% when last_full_capacity is enabled.
Michael Stapelberg [Wed, 20 May 2015 17:17:23 +0000 (19:17 +0200)]
Clamp the percentage at 100% when last_full_capacity is enabled.

9 years agoMerge pull request #26 from nhelke/master
Michael Stapelberg [Tue, 5 May 2015 18:19:42 +0000 (11:19 -0700)]
Merge pull request #26 from nhelke/master

Changed battery info output to HH:MM for consistency accross all platforms

9 years agoChanged battery info output to HH:MM for consistency accross all platforms 26/head
Nicholas Helke [Thu, 16 Apr 2015 20:58:40 +0000 (21:58 +0100)]
Changed battery info output to HH:MM for consistency accross all platforms

9 years agoMerge pull request #30 from Deiz/update-notices
Michael Stapelberg [Tue, 21 Apr 2015 20:52:08 +0000 (22:52 +0200)]
Merge pull request #30 from Deiz/update-notices

Update copyright notices and get rid of ranges

9 years agoUpdate copyright notices and get rid of ranges 30/head
Deiz [Tue, 21 Apr 2015 15:48:29 +0000 (11:48 -0400)]
Update copyright notices and get rid of ranges

The script used to make these changes can be found at:

   https://gist.github.com/Deiz/32322020f76d23e2bf8f

9 years agotravis: re-add libpulse-dev
Michael Stapelberg [Mon, 20 Apr 2015 06:43:08 +0000 (08:43 +0200)]
travis: re-add libpulse-dev

9 years agotravis: switch to container-based build infrastructure
Michael Stapelberg [Mon, 20 Apr 2015 06:36:34 +0000 (08:36 +0200)]
travis: switch to container-based build infrastructure

9 years agoMerge pull request #28 from Watcom/mute
Michael Stapelberg [Sun, 19 Apr 2015 16:40:09 +0000 (09:40 -0700)]
Merge pull request #28 from Watcom/mute

PulseAudio muted volume support

9 years agoPulseAudio muted volume support (fixes #27) 28/head
Watcom Hecht [Sun, 19 Apr 2015 14:32:51 +0000 (11:32 -0300)]
PulseAudio muted volume support (fixes #27)

9 years agoMerge pull request #23 from Deiz/net-speed
Michael Stapelberg [Sun, 12 Apr 2015 16:12:22 +0000 (09:12 -0700)]
Merge pull request #23 from Deiz/net-speed

Basic XDG support and minor tweaks to the net-speed script

9 years agoMerge pull request #24 from tanderson92/master
Michael Stapelberg [Wed, 8 Apr 2015 07:53:40 +0000 (00:53 -0700)]
Merge pull request #24 from tanderson92/master

Add support for differing PREFIX and MANPREFIX.

9 years agoAdd support for differing PREFIX and MANPREFIX. 24/head
Thomas Anderson [Wed, 8 Apr 2015 00:28:07 +0000 (17:28 -0700)]
Add support for differing PREFIX and MANPREFIX.

Sometimes we do not want man pages to go to $(PREFIX)/man, as in the
case of cross-compiling on distributions such as Exherbo.

9 years agoBasic XDG support and minor tweaks to the net-speed script 23/head
Deiz [Sat, 4 Apr 2015 17:12:30 +0000 (13:12 -0400)]
Basic XDG support and minor tweaks to the net-speed script

9 years agoMerge pull request #22 from jasperla/obsd_signal
Michael Stapelberg [Sat, 4 Apr 2015 16:03:45 +0000 (09:03 -0700)]
Merge pull request #22 from jasperla/obsd_signal

Use the maximum rssi, not the scaled percentage for the signal level.

9 years agoUse the maximum rssi, not the scaled percentage for the signal level. 22/head
Jasper Lievisse Adriaanse [Sat, 4 Apr 2015 08:56:58 +0000 (10:56 +0200)]
Use the maximum rssi, not the scaled percentage for the signal level.

This makes the value for %signal match ifconfig(8) in all cases.

9 years agoMerge pull request #7 from Watcom/master
Michael Stapelberg [Fri, 3 Apr 2015 21:45:40 +0000 (14:45 -0700)]
Merge pull request #7 from Watcom/master

PulseAudio support for volume input

9 years agoPulseAudio support for volume input 7/head
Watcom Hecht [Wed, 11 Mar 2015 16:29:32 +0000 (13:29 -0300)]
PulseAudio support for volume input

9 years agoMerge pull request #17 from chrko/format_down
Michael Stapelberg [Thu, 2 Apr 2015 20:42:47 +0000 (13:42 -0700)]
Merge pull request #17 from chrko/format_down

Adding format_down option to path_exists and run_watch

9 years agoAdding the option "format_down" to path_exists and run_watch. 17/head
Christian Kohlstedde [Thu, 2 Apr 2015 20:31:06 +0000 (22:31 +0200)]
Adding the option "format_down" to path_exists and run_watch.
This fixes #1.

9 years agoMerge pull request #16 from He-Ro/patch-1
Michael Stapelberg [Thu, 2 Apr 2015 20:14:36 +0000 (13:14 -0700)]
Merge pull request #16 from He-Ro/patch-1

Fix spacing

9 years agoMerge pull request #18 from jasperla/sched_h
Michael Stapelberg [Thu, 2 Apr 2015 20:13:34 +0000 (13:13 -0700)]
Merge pull request #18 from jasperla/sched_h

sys/dkstat.h has been removed from OpenBSD and it's functionality actual...

9 years agosys/dkstat.h has been removed from OpenBSD and it's functionality actually lived... 18/head
Jasper Lievisse Adriaanse [Thu, 2 Apr 2015 18:31:17 +0000 (20:31 +0200)]
sys/dkstat.h has been removed from OpenBSD and it's functionality actually lived/lives in sys/sched.h

9 years agoFix spacing 16/head
Hendrik R [Thu, 2 Apr 2015 09:56:47 +0000 (11:56 +0200)]
Fix spacing

9 years agofix invalid forward declaration
Michael Stapelberg [Thu, 2 Apr 2015 07:06:07 +0000 (09:06 +0200)]
fix invalid forward declaration

9 years agoMerge pull request #15 from Watcom/refactor
Michael Stapelberg [Sun, 29 Mar 2015 20:56:50 +0000 (22:56 +0200)]
Merge pull request #15 from Watcom/refactor

refactoring to avoid code duplication

9 years agorefactoring to avoid code duplication 15/head
Watcom Hecht [Sat, 28 Mar 2015 20:00:33 +0000 (17:00 -0300)]
refactoring to avoid code duplication

9 years agoMerge pull request #13 from bapt/master
Michael Stapelberg [Wed, 25 Mar 2015 07:56:00 +0000 (08:56 +0100)]
Merge pull request #13 from bapt/master

Fixes for FreeBSD

9 years agoprint_cpu_usage: Fix warnings on non linux 13/head
Baptiste Daroussin [Wed, 25 Mar 2015 07:19:13 +0000 (08:19 +0100)]
print_cpu_usage: Fix warnings on non linux

Move linux variable under LINUX boundaries

9 years agoprint_eth_info: fix warnings on FreeBSD
Baptiste Daroussin [Wed, 25 Mar 2015 07:18:00 +0000 (08:18 +0100)]
print_eth_info: fix warnings on FreeBSD

9 years agoprint_volume: don’t return, complete the buffer first
Baptiste Daroussin [Wed, 25 Mar 2015 07:13:47 +0000 (08:13 +0100)]
print_volume: don’t return, complete the buffer first

Follow the changed done for Linux on f0cd726b

9 years agoFix build on FreeBSD
Baptiste Daroussin [Wed, 25 Mar 2015 07:03:23 +0000 (08:03 +0100)]
Fix build on FreeBSD

9 years agoMerge pull request #12 from Airblader/feature-tztime-instance
Michael Stapelberg [Mon, 23 Mar 2015 21:12:21 +0000 (22:12 +0100)]
Merge pull request #12 from Airblader/feature-tztime-instance

Pass the "instance" JSON property key for tztime blocks

9 years agoPass the "instance" JSON property key for tztime blocks 12/head
Ingo Bürk [Mon, 23 Mar 2015 20:42:52 +0000 (21:42 +0100)]
Pass the "instance" JSON property key for tztime blocks

fixes #10

9 years agoMerge pull request #11 from AloisMahdal/man_bat_typo
Michael Stapelberg [Mon, 23 Mar 2015 18:24:27 +0000 (19:24 +0100)]
Merge pull request #11 from AloisMahdal/man_bat_typo

Fix typo in battery example

9 years agoFix typo in battery example 11/head
Alois Mahdal [Mon, 23 Mar 2015 18:12:44 +0000 (19:12 +0100)]
Fix typo in battery example

9 years agorelease v2.9 2.9
Michael Stapelberg [Sun, 22 Mar 2015 16:58:40 +0000 (17:58 +0100)]
release v2.9

9 years agoMerge pull request #8 from azuwis/master
Michael Stapelberg [Mon, 16 Mar 2015 21:47:51 +0000 (22:47 +0100)]
Merge pull request #8 from azuwis/master

Add contrib/net-speed, a reimplementation of contrib/measure-net-speed.bash

9 years agoadd .travis.yml
Michael Stapelberg [Mon, 16 Mar 2015 18:35:22 +0000 (19:35 +0100)]
add .travis.yml

9 years agoadd CONTRIBUTING file
Michael Stapelberg [Mon, 16 Mar 2015 09:02:22 +0000 (10:02 +0100)]
add CONTRIBUTING file

9 years agoclang-format-3.5 -i **/*.[ch], update modeline
Michael Stapelberg [Mon, 16 Mar 2015 09:00:32 +0000 (10:00 +0100)]
clang-format-3.5 -i **/*.[ch], update modeline

From here on, we’ll use clang-format to automatically format the source.

This has worked well in i3, so we are introducing it for i3status.

9 years agoAdd contrib/net-speed 8/head
Zhong Jianxin [Thu, 21 Aug 2014 02:00:36 +0000 (10:00 +0800)]
Add contrib/net-speed

A reimplementation of contrib/measure-net-speed.bash.

- Single script
- Compatible with most POSIX shells, tested with bash, dash, busybox ash
- Auto detect interfaces
- Does not write temp files

9 years agoMerge pull request #3 from chrko/master
Michael Stapelberg [Sun, 1 Mar 2015 15:42:59 +0000 (07:42 -0800)]
Merge pull request #3 from chrko/master

Modify print_disk_info. Now there is no output if the path is no mountpoint.

9 years agoremoving Yoda-Style 3/head
Christian Kohlstedde [Sun, 22 Feb 2015 17:25:12 +0000 (18:25 +0100)]
removing Yoda-Style
adding some words in the manpage

9 years agoAdding optional configuration option to "print_disk_info".
Christian Kohlstedde [Wed, 18 Feb 2015 22:43:25 +0000 (23:43 +0100)]
Adding optional configuration option to "print_disk_info".

9 years agoExcluding the code on BSD systems.
Christian Kohlstedde [Wed, 18 Feb 2015 21:11:57 +0000 (22:11 +0100)]
Excluding the code on BSD systems.

9 years agoMake the code more readable.
Christian Kohlstedde [Wed, 18 Feb 2015 21:11:16 +0000 (22:11 +0100)]
Make the code more readable.

9 years agoModify print_disk_info. Now there is no output if the path is no mountpoint.
Christian Kohlstedde [Wed, 18 Feb 2015 15:53:24 +0000 (16:53 +0100)]
Modify print_disk_info. Now there is no output if the path is no mountpoint.

9 years agoMerge pull request #2 from pfsmorigo/master
Michael Stapelberg [Sun, 8 Feb 2015 13:04:34 +0000 (13:04 +0000)]
Merge pull request #2 from pfsmorigo/master

Add i3status and man/i3status.1 to ignore list.

9 years agoAdd i3status and man/i3status.1 to ignore list. 2/head
Paulo Flabiano Smorigo [Sun, 8 Feb 2015 00:17:59 +0000 (22:17 -0200)]
Add i3status and man/i3status.1 to ignore list.

9 years agomake github the canonical i3status repository
Michael Stapelberg [Fri, 26 Dec 2014 20:13:52 +0000 (21:13 +0100)]
make github the canonical i3status repository

9 years agoAvoid use of uninitialized variable in print_battery_info
Alexander Monakov [Thu, 18 Dec 2014 15:23:25 +0000 (18:23 +0300)]
Avoid use of uninitialized variable in print_battery_info

The boolean flag 'watt_as_unit' may be used without being initialized if the
configured battery path does not contain expected statistics (for example if
it is misconfigured and points to AC adapter info or simply an unrelated file).

Even though it does not cause ill effects, it causes a warning (true positive)
when running i3status under Valgrind.  Initialize the variable to make code
well-defined.

9 years agoAllocate and expose per-instance pointers for plugins
Alexander Monakov [Sun, 7 Dec 2014 20:32:19 +0000 (23:32 +0300)]
Allocate and expose per-instance pointers for plugins

9 years agosupport the special interface name _first_ for ethernet/wireless
Michael Stapelberg [Sun, 7 Dec 2014 14:14:02 +0000 (15:14 +0100)]
support the special interface name _first_ for ethernet/wireless

Since we have deterministic device names in Linux, these strings are a
much better default in the i3status config than "eth0" and "wlan0" (what
we used before).

9 years agoi3status: Support %frequency for wireless interfaces
Tuomas Tynkkynen [Mon, 1 Dec 2014 16:30:30 +0000 (18:30 +0200)]
i3status: Support %frequency for wireless interfaces

In many public WiFis, the 2.4 GHz wireless band is slow due to
congestion, while there is still plenty of bandwidth available on the
5 GHz area. So when debugging wireless issues it's convenient to have
i3status display the frequency of the access point that the interface is
connected to.

This patch adds support for the %frequency tag for wireless interfaces,
so for example:
    format_up = "WLAN: %essid - %quality / %frequency"
would result in:
    "WLAN: eduroam - 074% / 2.4 GHz"

10 years agoUpdated the man page for i3status with information about the new individual strings...
Cyril Andreatta [Tue, 7 Oct 2014 14:14:16 +0000 (16:14 +0200)]
Updated the man page for i3status with information about the new individual strings that can be used for each battery status.

10 years agoCreated three individual Strings for each battery status (charging, dicharching,...
Cyril Andreatta [Tue, 7 Oct 2014 13:47:58 +0000 (15:47 +0200)]
Created three individual Strings for each battery status (charging, dicharching, full)

Replaced hard coded status strings (CHR, BAT, FULL) in
print_battery_info.c with user defined strings. The new strings are
'status_chr', 'status_bat' and 'status_full' and can be set in i3status.conf.
e.g.
status_chr = "⚡ CHR"

If any of the new status strings is omitted the standard strings (CHR,
BAT, FULL) are used.