eoin
d59589bf9e
Added status_unk to battery_info
2016-03-21 22:41:22 +00:00
eplanet
a8aa5d608c
Adding glob check to cpu temperature fixes #55
2016-03-20 11:47:56 +01:00
Clayton Craft
430b053326
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.
2016-01-25 00:38:13 -08:00
Watcom Hecht
dd75c260f8
revert back to using nanosleep
...
Fixes #93
2016-01-12 11:46:42 -02:00
Michael Stapelberg
fad9c8237c
Bugfix: check that format_not_mounted is not NULL before using it
...
This issue was introduced with commit 75a83574
.
fixes #92
2016-01-12 09:50:44 +01:00
David
b54623a56d
format detection: recognise swaybar
2015-12-27 15:59:32 +11:00
Kenneth Lyons
dcd0518e25
Added support for Pango markup.
2015-12-04 10:27:18 -08:00
Michael Stapelberg
876c1cef8d
fix compilation on FreeBSD
...
fixes #83
2015-11-24 19:26:07 +01:00
Michael Stapelberg
3e14e6e5f3
first_eth_interface: ignore MAC addresses, look for IPv4/IPv6 addresses
2015-11-16 22:41:18 +01:00
Stefan Bader
9e6e0d4f8f
Correctly calculate Wireless link quality
...
Wireless quality was stuck at 100% due to
a signed with unsigned integer division.
2015-10-12 20:46:22 +02:00
Jakub Klinkovský
611e863ace
Volume percentage should be obtained by float division and rounded to int.
...
Fixes #75
2015-10-12 09:44:13 +02:00
Michael Stapelberg
1935110ef3
Merge pull request #71 from bsdjhb/freebsd_wifi_buildfix
...
Fix build under FreeBSD after recent changes for Linux.
2015-10-09 09:11:16 -07:00
John Baldwin
9ebde24df1
Fix build under FreeBSD after recent changes for Linux.
2015-10-08 13:20:02 -07:00
John Baldwin
5e33d9fe74
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.
2015-10-08 13:15:38 -07:00
Brendan Van Hook
a13b2e7288
Added support for lemonbar
2015-10-04 14:52:32 -04:00
Michael Stapelberg
f3125fdfde
document code origins
...
fixes #65
2015-09-25 11:40:07 +02:00
Michael Stapelberg
06a133135f
Fix comparison between signed/unsigned warning for real
2015-09-25 11:05:51 +02:00
Michael Stapelberg
b8b07511b1
use proper unsigned type for ESSID length
2015-09-25 10:49:14 +02:00
Michael Stapelberg
45ccd84309
use nlmsg_data instead of the too-new genlmsg_hdr
2015-09-25 10:49:01 +02:00
Michael Stapelberg
e1203ca62a
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).
2015-09-25 10:42:30 +02:00
Michael Stapelberg
668bf2079f
wireless (linux): switch from libiw to libnl
...
Based on http://cr.i3wm.org/patch/692/ by Alexander Monakov
fixes #32
fixes #52
2015-09-24 21:47:02 +02:00
Michael Stapelberg
fb57fca5c2
Merge pull request #59 from bsdjhb/freebsd_wifi
...
Fix various issues with wireless information under FreeBSD:
2015-09-16 14:06:48 +02:00
John Baldwin
85618dc8e8
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.
2015-09-15 13:39:01 -07:00
John Baldwin
dee6d52720
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".
2015-09-15 10:48:16 -07:00
Dmitrij D. Czarkoff
9b238a8d65
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.
2015-08-06 17:20:29 +02:00
Dmitrij D. Czarkoff
15f2279592
Use SndIO for volume module on OpenBSD
...
* add audio(4) code by Robert Nagy
* disable PulseAudio
While at OpenBSD support, add "-pthread" to LIBS.
2015-08-01 17:35:09 +02:00
Alexis Hildebrandt
80e7b83d54
Add ifdef to compile print_disk_info on Mac
2015-07-06 15:48:39 +02:00
Alexis Hildebrandt
d1cec2632d
Fix undeclared identifier thermal_zone error
...
when THERMAL_ZONE is not defined.
2015-07-06 15:47:44 +02:00
Viktor Stanchev
a2b8529043
add apostrophe to error message to fix grammar
2015-06-12 23:08:46 -04:00
Ingo Bürk
75a835742e
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
2015-05-29 08:43:29 +02:00
Michael Stapelberg
d1aa135d28
Clamp the percentage at 100% when last_full_capacity is enabled.
2015-05-20 19:17:23 +02:00
Nicholas Helke
d7f0d64c40
Changed battery info output to HH:MM for consistency accross all platforms
2015-05-05 10:51:57 +01:00
Watcom Hecht
f779da1a59
PulseAudio muted volume support ( fixes #27 )
2015-04-19 13:28:26 -03:00
Jasper Lievisse Adriaanse
e91891729e
Use the maximum rssi, not the scaled percentage for the signal level.
...
This makes the value for %signal match ifconfig(8) in all cases.
2015-04-04 10:56:58 +02:00
Michael Stapelberg
9abe0a9d59
Merge pull request #7 from Watcom/master
...
PulseAudio support for volume input
2015-04-03 14:45:40 -07:00
Watcom Hecht
1710c206cf
PulseAudio support for volume input
2015-04-03 17:57:40 -03:00
Michael Stapelberg
d00a0e087c
Merge pull request #17 from chrko/format_down
...
Adding format_down option to path_exists and run_watch
2015-04-02 13:42:47 -07:00
Christian Kohlstedde
5c094a5493
Adding the option "format_down" to path_exists and run_watch.
...
This fixes #1 .
2015-04-02 22:31:06 +02:00
Jasper Lievisse Adriaanse
ae50bbe257
sys/dkstat.h has been removed from OpenBSD and it's functionality actually lived/lives in sys/sched.h
2015-04-02 20:31:17 +02:00
Watcom Hecht
b12e11237b
refactoring to avoid code duplication
2015-03-29 17:05:26 -03:00
Baptiste Daroussin
c9dc67e054
print_cpu_usage: Fix warnings on non linux
...
Move linux variable under LINUX boundaries
2015-03-25 08:19:13 +01:00
Baptiste Daroussin
0b882f36b5
print_eth_info: fix warnings on FreeBSD
2015-03-25 08:18:23 +01:00
Baptiste Daroussin
eaf5d6bf80
print_volume: don’t return, complete the buffer first
...
Follow the changed done for Linux on f0cd726b
2015-03-25 08:13:47 +01:00
Baptiste Daroussin
e9fc4c1c06
Fix build on FreeBSD
2015-03-25 08:03:23 +01:00
Ingo Bürk
0a84bcb74a
Pass the "instance" JSON property key for tztime blocks
...
fixes #10
2015-03-23 21:42:52 +01:00
Michael Stapelberg
d74e904bf4
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.
2015-03-16 10:01:07 +01:00
Christian Kohlstedde
562a879f7c
removing Yoda-Style
...
adding some words in the manpage
2015-02-22 18:25:12 +01:00
Christian Kohlstedde
85bb373095
Adding optional configuration option to "print_disk_info".
2015-02-18 23:43:25 +01:00
Christian Kohlstedde
f7b25a15dd
Excluding the code on BSD systems.
2015-02-18 22:11:57 +01:00
Christian Kohlstedde
014e66563f
Make the code more readable.
2015-02-18 22:11:16 +01:00