snow
91cc0594d9
Add envsys support
2020-05-01 20:18:30 -07:00
Jeremy Sowden
25dacf9256
wmbattery: fix a couple of potential memory-leaks.
...
In `cmd_crit`, if there is an allocation failure, we return from the
function immediately and leak any previously allocated memory. Go to
the clean-up code at the end of the function instead.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-11-01 16:09:31 +00:00
Doug Torrance
219e04f6ad
Update mailing list links to new Google Groups.
2018-05-14 23:34:53 +01:00
Doug Torrance
81e95eabca
wmbattery: Add -n option to disable dial graphic.
...
Thanks to Christoph Fritz for the feature request.
2015-05-14 11:44:03 +01:00
Doug Torrance
0b45f308ad
wmbattery: Improve help text for -i option.
2015-05-14 11:44:03 +01:00
Doug Torrance
149ea78090
wmbattery: Expand -g option to allow positions relative to right or bottom.
...
Use '-' instead of '+', e.g., `wmbattery -g -0+0` will place wmbattery in
the upper right hand corner of the screen.
Thanks to Christoph Fritz for the feature request.
2015-05-14 11:44:03 +01:00
Doug Torrance
afdfdc07eb
wmbattery: Avoid redefinition of apm_read/apm_exists in *BSD.
...
The two functions are defined if the BSD-specific apm headers are found and
if libapm is not found. Both of these conditions will be true on BSD
systems, so we use #elif instead of the separate #if statements.
2015-02-20 16:59:53 +00:00
Doug Torrance
535b83d232
wmbattery: Use AC_CHECK_LIB instead of AC_CHECK_HEADERS to check for libapm.
...
If autoconf finds an apm.h other than the one belonging to libapm, we get
builds errors like the ones reported by Haroldo Gambini Santos in [1].
[1] http://lists.windowmaker.org/dev/msg07937.html
2015-02-20 16:59:53 +00:00
Ludwig Nussel
9db8262d65
wmbattery: update upower support
...
* reuse dbus connection
* set delay to actually refresh values
2015-01-17 15:02:06 +00:00
Ludwig Nussel
bdc9f33956
wmbattery: make it work without libapm
...
libapm and apm.h are not necessarily available on Linux either so make it work
without.
2015-01-17 15:02:06 +00:00
Doug Torrance
02bce1c90f
wmbattery: Restore BSD support.
...
Code that was ripped out of wmbattery for version 1.22, which introduced the
dependency on libapm but dropped support for the BSDs, has been restored.
2014-10-05 19:18:50 +01:00
Doug Torrance
a750a6b25f
wmbattery: Add -v option to display version number.
...
Also, in order to facilitate this, keep track of version number in configure.ac.
It was previously only mentioned in ChangeLog.
2014-10-05 19:18:50 +01:00
Doug Torrance
8b8f2745fb
wmbattery: Add copyright header to source.
...
Copyright information used to be in debian/copyright, which was removed
upstream.
2014-10-05 19:18:50 +01:00
Doug Torrance
539ef9f52c
wmbattery: Consistent formatting in source.
...
Modified source files to minimize warnings from checkpatch.pl in Window Maker
source tree.
2014-10-05 19:18:50 +01:00
Doug Torrance
8e5aa5c7e4
wmbattery: Add -x option to run a command when battery is critical.
...
This is based on the patch by Cristoph Fritz submitted to Debian. See
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543674
2014-10-05 19:18:49 +01:00
Doug Torrance
612921ae43
Remove trailing whitespace.
2014-10-05 19:18:49 +01:00
Doug Torrance
773552ebd8
wmbattery: Avoid uninitialized variable warning.
...
Move assignment of old_status until after cur_info is initialized in
wmbattery.c.
2014-09-21 10:11:55 +01:00
Doug Torrance
51380525e7
wmbattery: Add to repository.
...
Version 2.44. Source obtained from:
http://ftp.de.debian.org/debian/pool/main/w/wmbattery/wmbattery_2.44.tar.gz
2014-09-21 10:11:55 +01:00