Commit Graph

508 Commits

Author SHA1 Message Date
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
Michael Stapelberg
5081f2b5b8 Merge pull request #77 from StefaBa/master
Correctly calculate Wireless link quality
2015-10-16 00:44:09 -07: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
Michael Stapelberg
dc94d6cba8 Merge pull request #76 from lahwaacz/volume_fix
Volume percentage should be obtained by float division and rounded to int
2015-10-12 11:29:52 -07: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
Michael Stapelberg
c582090cbc Merge pull request #70 from bsdjhb/freebsd_battery
Properly detect the battery charging status under FreeBSD.
2015-10-09 09:11:03 -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
Michael Stapelberg
974f95702e Merge pull request #68 from bsvh/master
Added support for lemonbar
2015-10-04 21:01:49 +02: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
83ab6e51c3 travis: switch to libnl-genl-3-dev 2015-09-24 21:54:02 +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
51c1dbdba2 Merge pull request #62 from brioscaibriste/master
adding new markdown README.md to display nicely on github
2015-09-24 13:49:29 +02:00
Michael Stapelberg
c3a61ff0f4 Merge pull request #63 from JSmith-BitFlipper/patch-1
Resolved potential bug
2015-09-24 13:42:31 +02:00
konadr
b61665ab94 adding new markdown README.md to display nicely on github 2015-09-23 22:01:09 +01:00
JSmith-BitFlipper
2cd5c86915 Resolved potential bug
This pull request is in response to #61
2015-09-20 13:56:44 -04: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
Michael Stapelberg
43fc5791f5 Merge pull request #58 from bsdjhb/freebsd_ethernet_media
Fix some issues with displaying Ethernet media status on recent FreeBSD kernels.
2015-09-16 14:06:32 +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
Michael Stapelberg
452399d84a Merge pull request #51 from czarkoff/mail-python
Basic mail checker in python
2015-08-10 19:48:15 +02:00
Dmitrij D. Czarkoff
6714fd9c1c Basic mail checker in python 2015-08-07 22:47:34 +02:00
Michael Stapelberg
6d634b1b67 Merge pull request #50 from czarkoff/no_ip
Use "color_degraded" when interface has no IP
2015-08-06 18:18:19 +02: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
Michael Stapelberg
57c3fb3629 Merge pull request #47 from czarkoff/sndio
Use SndIO for volume module on OpenBSD
2015-08-02 09:13:11 -07: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
Michael Stapelberg
55a23712ad Merge pull request #40 from afh/pull/osx
Mac OS X compatibility changes
2015-07-07 23:12:13 -07:00
Alexis Hildebrandt
80e7b83d54 Add ifdef to compile print_disk_info on Mac 2015-07-06 15:48:39 +02:00
Alexis Hildebrandt
2113737107 Use gettimeofday instead of clock_gettime on Mac
since the latter is not available.
2015-07-06 15:48:33 +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
Alexis Hildebrandt
fcabfc889a Add A2X_FLAGS
to be able to optionally skip xmllint, which errors on Mac OS X.
2015-07-06 15:47:38 +02:00
Alexis Hildebrandt
0006ec53ef Whitespace edit 2015-07-06 15:47:29 +02:00
Michael Stapelberg
326f26c513 Merge pull request #39 from vikstrous/master
add apostrophe to error message to fix grammar
2015-06-13 12:40:39 +02:00
Viktor Stanchev
a2b8529043 add apostrophe to error message to fix grammar 2015-06-12 23:08:46 -04:00
Michael Stapelberg
adaa83222c Merge pull request #35 from Airblader/feature-33
Use format_not_mounted if path does not exist
2015-05-29 09:52:46 +02: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
Michael Stapelberg
f8c11c31b2 Merge pull request #26 from nhelke/master
Changed battery info output to HH:MM for consistency accross all platforms
2015-05-05 11:19:42 -07:00
Nicholas Helke
d7f0d64c40 Changed battery info output to HH:MM for consistency accross all platforms 2015-05-05 10:51:57 +01:00
Michael Stapelberg
96e36117e3 Merge pull request #30 from Deiz/update-notices
Update copyright notices and get rid of ranges
2015-04-21 22:52:08 +02:00
Deiz
36a3be24aa 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
2015-04-21 11:48:29 -04:00
Michael Stapelberg
405c552a2f travis: re-add libpulse-dev 2015-04-20 08:43:08 +02:00