summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-11-24fix compilation on FreeBSDMichael Stapelberg
fixes #83
2015-11-16first_eth_interface: ignore MAC addresses, look for IPv4/IPv6 addressesMichael Stapelberg
2015-10-12Correctly calculate Wireless link qualityStefan Bader
Wireless quality was stuck at 100% due to a signed with unsigned integer division.
2015-10-12Volume percentage should be obtained by float division and rounded to int.Jakub Klinkovský
Fixes #75
2015-10-09Merge pull request #71 from bsdjhb/freebsd_wifi_buildfixMichael Stapelberg
Fix build under FreeBSD after recent changes for Linux.
2015-10-08Fix build under FreeBSD after recent changes for Linux.John Baldwin
2015-10-08Properly detect the battery charging status under FreeBSD.John Baldwin
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.
2015-10-04Added support for lemonbarBrendan Van Hook
2015-09-25document code originsMichael Stapelberg
fixes #65
2015-09-25Fix comparison between signed/unsigned warning for realMichael Stapelberg
2015-09-25use proper unsigned type for ESSID lengthMichael Stapelberg
2015-09-25use nlmsg_data instead of the too-new genlmsg_hdrMichael Stapelberg
2015-09-25use NL80211_RATE_INFO_BITRATE (16-bit)Michael Stapelberg
NL80211_RATE_INFO_BITRATE32 is not available widely enough yet (the libc used by travis doesn’t have it yet, for example).
2015-09-24wireless (linux): switch from libiw to libnlMichael Stapelberg
Based on http://cr.i3wm.org/patch/692/ by Alexander Monakov fixes #32 fixes #52
2015-09-16Merge pull request #59 from bsdjhb/freebsd_wifiMichael Stapelberg
Fix various issues with wireless information under FreeBSD:
2015-09-15Fix various issues with wireless information under FreeBSD:John Baldwin
- 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.
2015-09-15Fix some issues with displaying Ethernet media status on recent FreeBSD kernels.John Baldwin
- 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".
2015-08-06Use "color_degraded" when interface has no IPDmitrij D. Czarkoff
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.
2015-08-01Use SndIO for volume module on OpenBSDDmitrij D. Czarkoff
* add audio(4) code by Robert Nagy * disable PulseAudio While at OpenBSD support, add "-pthread" to LIBS.
2015-07-06Add ifdef to compile print_disk_info on MacAlexis Hildebrandt
2015-07-06Fix undeclared identifier thermal_zone errorAlexis Hildebrandt
when THERMAL_ZONE is not defined.
2015-06-12add apostrophe to error message to fix grammarViktor Stanchev
2015-05-29Use format_not_mounted if the directory for a disk_info block does not exist.Ingo Bürk
This is useful for dynamically mounted devices like thumb drives that get mounted into a directory such as '/media/$UID/$NAME'. fixes #33
2015-05-20Clamp the percentage at 100% when last_full_capacity is enabled.Michael Stapelberg
2015-05-05Changed battery info output to HH:MM for consistency accross all platformsNicholas Helke
2015-04-19PulseAudio muted volume support (fixes #27)Watcom Hecht
2015-04-04Use the maximum rssi, not the scaled percentage for the signal level.Jasper Lievisse Adriaanse
This makes the value for %signal match ifconfig(8) in all cases.
2015-04-03Merge pull request #7 from Watcom/masterMichael Stapelberg
PulseAudio support for volume input
2015-04-03PulseAudio support for volume inputWatcom Hecht
2015-04-02Merge pull request #17 from chrko/format_downMichael Stapelberg
Adding format_down option to path_exists and run_watch
2015-04-02Adding the option "format_down" to path_exists and run_watch.Christian Kohlstedde
This fixes #1.
2015-04-02sys/dkstat.h has been removed from OpenBSD and it's functionality actually ↵Jasper Lievisse Adriaanse
lived/lives in sys/sched.h
2015-03-29refactoring to avoid code duplicationWatcom Hecht
2015-03-25print_cpu_usage: Fix warnings on non linuxBaptiste Daroussin
Move linux variable under LINUX boundaries
2015-03-25print_eth_info: fix warnings on FreeBSDBaptiste Daroussin
2015-03-25print_volume: don’t return, complete the buffer firstBaptiste Daroussin
Follow the changed done for Linux on f0cd726b
2015-03-25Fix build on FreeBSDBaptiste Daroussin
2015-03-23Pass the "instance" JSON property key for tztime blocksIngo Bürk
fixes #10
2015-03-16clang-format-3.5 -i **/*.[ch], update modelineMichael Stapelberg
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.
2015-02-22removing Yoda-StyleChristian Kohlstedde
adding some words in the manpage
2015-02-18Adding optional configuration option to "print_disk_info".Christian Kohlstedde
2015-02-18Excluding the code on BSD systems.Christian Kohlstedde
2015-02-18Make the code more readable.Christian Kohlstedde
2015-02-18Modify print_disk_info. Now there is no output if the path is no mountpoint.Christian Kohlstedde
2014-12-22Avoid use of uninitialized variable in print_battery_infoAlexander Monakov
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.
2014-12-07support the special interface name _first_ for ethernet/wirelessMichael Stapelberg
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).
2014-12-03i3status: Support %frequency for wireless interfacesTuomas Tynkkynen
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"
2014-10-07Created three individual Strings for each battery status (charging, ↵Cyril Andreatta
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.
2014-08-26Bugfix: fix wrong color tags with xmobarMichael Stapelberg
fixes #1353
2014-08-25Fix battery indicator on systems without POWER_SUPPLY_VOLTAGE_NOW.Klemen Košir
In my case, the voltage variable would stay initialized as -1, which caused the calculation of battery charge percentage to be incorrect (I would get the message that there is no battery present or even -0% charge). I have no idea how this would affect other systems, since I don't have a chance to test this.