Commit graph

153 commits

Author SHA1 Message Date
Doug Torrance 6014b452cb wmacpi: Bump to version 1.99r7.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.

2004 August 18 1.99r7
	Implemented the libdockapp port - this seems to close Debian bug
	#227819, but it hasn't received sufficient testing.

	Implemented a capacity mode for calculating time remaining (as
	opposed to the normal current rate mode) - this mode samples the
	remaining capacity of the battery and notes the time at which it
	was sampled, and uses a history of samples to estimate the rate of
	drain on the battery. From there it calculates a value for time
	remaining.

	Also, various cleanups have gone in:

	* a reworking of the scrolling code

	* generic battery number support (rather than just
	using two pixmaps, one for b1 and one for b2)

	* stopped the battery glyph from blinking when running on AC
2014-08-19 18:13:57 +01:00
Doug Torrance dd9ef3519f wmacpi: Bump to version 1.99r6.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.

2004 July 19 1.99r6
	Fix for Debian bug #250792 - the parser for the acpi files was
	too stupid to deal with error conditions. I've now added some
	basic checking to make it handle the error that caused the bug
	report, but I'll need to add more later.
2014-08-19 18:13:57 +01:00
Doug Torrance 38bd883523 wmacpi: Bump to version 1.99r5.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.

2004 April 23 1.99r5
	Collected fixes for the collected fixes below . . .

	* Manpage fixes, to reflect the reality of the current code.

	* Code cleanups, to make a few things more sensible. Most notably,
	the interface for setting the samplerate has changed so that it's
	no longer inverted and illogical - you now say how many times you
	want to sample per minute.

	* Fixed an issue with initialisation - I'd moved the power_init()
	call below the options parsing code, without dealing with the -m
	option properly. The end result was that if you told it to monitor
	a battery number, it would fail saying the battery didn't exist. I
	moved the check for this out of the options parsing and after the
	power_init() call.

	* Fixed a leaking file descriptor in init_ac_adapters.

	* Implemented a way to handle changing batteries - reinitialise
	the battery info periodically. I don't know of a better way to do
	that, since we'd have to do all that parsing anyway to find out if
	it had changed . . .

	libdockapp is waiting, but I think that's the only change left
	without more bug repots . . .
2014-08-19 18:13:57 +01:00
Doug Torrance e5eb888b1f wmacpi: Bump to version 1.99r4.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.

2004 April 15 1.99r4
	Collected fixes for various small issues.

	* Fixed a problem with placement of the window when using the
	click to place mode - turned out to be a sizehints problem.

	* Some fixes to the manpage.

	* Reenabled the CLI build by default - the Debian patches can
	handle disabling it themselves.

	* Added a way to disable the scrolling message, since some users
	find this annoying.

	I've left the big changes that are needed (like using libdockapp,
	in the hope that it'll solve the docking problems) until later, so
	that I can get these smaller fixes out. Hopefully soon . . .
2014-08-19 18:13:57 +01:00
Doug Torrance 9c6f407b38 wmacpi: Bump to version 1.99r3.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.

2004 January 12 1.99r3
	. . . and a fix for a fix that didn't fix it . . .
2014-08-19 18:13:57 +01:00
Doug Torrance 2de3883e99 wmacpi: Bump to version 1.99r2.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.

2004 January 12 1.99r2
	Some cleanups and bugfixes found by the wonderful Debian users.

	It's finally in testing!
2014-08-19 18:13:57 +01:00
Doug Torrance e5b50109b6 wmacpi: Bump to version 1.99r1.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.
2014-08-19 18:13:57 +01:00
Doug Torrance 6961aed640 wmacpi: Bump to version 1.99.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.

2003 November 23 1.99
	Finally claimed the wmacpi name as my own . . .

	Renamed wmacpi-ng and acpi-ng, renamed the header files, fixed up
	the makefile.

	For the Debian package, also made compilation of the command line
	tool optional, defaulting to not building it. This is because
	after the renaming, my acpi clashes with the acpi package that's
	already in Debian. The command line functionality is now
	accessible via the -w option to wmacpi.

	This is wmacpi 1.99, so that I can have a release packaged and in
	Debian before going to 2.0, so that any bugs that are left can be
	found by all the extra users.
2014-08-19 18:13:56 +01:00
Doug Torrance 310714058f wmacpi: Bump to wmacpi-ng version 0.99.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.

2003 September 26 0.99
	Fix the last of the old wmacpi code oddities (specifically, the
	APMInfo struct, which was a completely inappropriate name given we
	no longer deal with APM, and because of the various code
	refactoring).

	I think this is probably as good as I can make it without getting
	more feedback and the like, so I'm going to make this version
	0.99, preliminary to either wmacpi-ng 1.0 or wmacpi 2.0 (depending
	which direction I go with that).
2014-08-19 18:13:56 +01:00
Doug Torrance df54026a62 wmacpi: Bump to wmacpi-ng version 0.92.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.

2003 September 23 0.92
	Fix a few more bugs, and include an option to allow the user to
	specify how often to sample the ACPI data - some BIOSes disable
	all interrupts while reading from the battery, which apparently
	causes some interactivity issues. I have no idea why reading once
	every three seconds (which is our default), but there've been some
	complaints.
2014-08-19 18:13:56 +01:00
Doug Torrance 61ea0840d6 wmacpi: Bump to wmacpi-ng version 0.90.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.

2003 July 16 0.90
	Make the time display show '--:--' instead of '00:00' when the
	time remaining is 0 - I think this is reasonable, since it'll only
	get into this state when the present rate value is 0. This only
	happens when the battery is fully charged and neither discharging
	or charging, or when the battery is completely drained. In any of
	these states the time remaining is of very little interest, so we
	don't lose anything. We also get to handle the (sadly, very
	common) case where the ACPI subsystem doesn't report sane values
	for the things we depend on.
2014-08-19 18:13:56 +01:00
Doug Torrance a68f78f034 wmacpi: Bump to wmacpi-ng version 0.50.
Source obtained from http://sourceforge.net/projects/wmacpi/files/.

2003 July 6 0.50
	Finally got rid of that annoying button - that space now contains
	a 'B 1' or 'B 2' (only those two at present, since I'm too lazy to
	fix it so that the number is generic. It should work fine for
	anyone who doesn't have a freakish system with more than two
	batteries . . .)

	A few more code cleanups.
2014-08-19 18:13:56 +01:00
Doug Torrance 9fcd703e60 Add script to generate dockapps website database.
This script is run in the root directory of the dockapps repo to generate the
file used by the Window Maker website to store all of the information in the
dockapps section.  Note that this file will then be submitted to the whome repo.
2014-08-13 12:05:33 +01:00
Rodolfo García Peñas (kix) db4f9a0307 wmbatteries: Remove unneded files
This patch removes files not used in wmbatteries repo.
2014-08-12 18:51:01 +01:00
Rodolfo García Peñas (kix) 6adf44ca1a wmnotify: Remove svn folder
This patch removes the old svn folder.
2014-08-12 18:51:01 +01:00
Rodolfo García Peñas (kix) 2c429729d6 wmacpiload: Avoid warning in configure.ac
This patch removes the warning about extra values in AM_INIT_AUTOMAKE.
2014-08-12 18:51:01 +01:00
Rodolfo García Peñas (kix) a5dd70c29d wmacpiload: Avoid warning in Makefile.am
This patch remove the warning about the old keywords "CPPFLAGS" and "INCLUDES"
using AM_CPPFLAGS.
2014-08-12 18:51:01 +01:00
Rodolfo García Peñas (kix) 347c42f0a1 wmacpiload: New autogen.sh file
This patch includes the autogen.sh file.
2014-08-12 18:51:01 +01:00
Rodolfo García Peñas (kix) 1bbb8751b0 wmacpiload: Removed unneed files
This patch removes these files:

- .xvpics/*: Images for xv, not used.
- *.o: Compiler object files.
- wmacpiload and battest: Binary files.
2014-08-12 18:51:01 +01:00
Doug Torrance 665b8f777a wmmixer-alsa: Add to repository.
Previously, wmmixer-alsa existed as an object in the repository named
wmmixer-alsa-0.6.  However, it was not a directory and contained no files.
This patch removes this object and adds the source to wmmixer-alsa.  It was
obtained by extracting wmmixer-alsa-0.6.tar.gz from the source rpm found at
http://ftp.cc.uoc.gr/mirrors/linux/pld/pool/w/wmmixer-alsa/.
2014-08-06 13:23:10 -06:00
Doug Torrance 07b53ba34e wmifinfo: Restore FSF address update.
This patch restores the updated FSF address from commit 792a5d which was
removed when version 0.7 was introduced in commit f93842.
2014-08-06 13:23:10 -06:00
Doug Torrance 8d7e817de2 wmifinfo: bump to version 0.9. 2014-07-29 08:03:37 -06:00
Doug Torrance c2861235bc wmifinfo: bump to version 0.8. 2014-07-29 08:03:37 -06:00
Doug Torrance f938426084 wmifinfo: bump to version 0.7. 2014-07-29 08:03:37 -06:00
Christophe CURIS 36febff3d5 wmix: increased version number to 3.2 after the recent changes
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS d37962fd46 wmix: do not count space padding in channel short name when comparing names for exclusion
The names for channels provided by <sys/soundcard.h> have a padding with
space when their name is shorter than 6 characters, and this cause
excluding them difficult.
The new comparison code makes sure this padding is properly handled during
the match search.

Took the opportunity to bring light changes to try to improve the
readability of the channel listing code.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS ccff1cf409 wmix: allow to choose device and exclude channels from the config file
Because that's the kind of option that could deserve to be saved in the
file. A device specified on the command line will take precedence; the
list of channel to exclude will be merged.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 67548f3b6a wmix: added an option to disable grabbing the volume control keys
There may be some case where user would like to fall back to the original
behaviour, for example if grabbing these keys could get in conflict with
other applications.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS d83b160217 wmix: added error catch for XGrabKey on multimedia keys
If another application has already set a grab on these keys then the call
would fail (BadAccess) and wmix stop. With the X error handler, we can
display a warning to user and continue anyway.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 4379368290 wmix: added function to handle Multimedia keys related to volume
We can handle the keys AudioRaiseVolume, AudioLowerVolume and AudioMute,
so we ask the X server to send the key press event for them to us and
update the volume appropriately.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 3e2d8a730a wmix: always display the version information when verbose is asked
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS d7add56750 wmix: release memory for startup-only configuration stuff after startup
A number of configuration options are useful only during the startup, so it
is possible to free them when ready.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS b1fcdb1552 wmix: added appropriate message and fall back if user's color for OSD failed
It is generally not considered a good behaviour to leave user puzzled on
non-working request. With a little message at least he will know where to
look at.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>

Conflicts:
	wmix/config.c
2014-06-07 21:27:27 +01:00
Christophe CURIS 546bc1e49b wmix: rewrote parser of config file to report problems to user
The original parser would not say anything if the user had misspelled
something in the file which can be annoying. Now the parser will report
warnings for everything not understood with a message trying to be more
helpful to debug and fix.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 5b46b380e6 wmix: changed command line parsing code to report properly incorrect options
The original code did not abort when an invalid option was provided
or if there was non-options arguments on the command line.
The new code will report all problems found and stop to have the user
fix his command. It also remove some unnecessary pointer checks.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 676fc13cb2 wmix: be more verbose about the configuration file in use
If the config file was set by user with '-f', it would be a good idea to
report him if we're not able to load it.
Took opportunity to report to user that the config file is loaded if he
asked for verbose operations, so he can see if the default file loaded
is the one he expected.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS b394e0bdba wmix: moved the initialisation of the config to the related file
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS eb8be92aa8 wmix: moved parsing of Command-Line options to the config handling file
Took opportunity to re-order them alphabetically so they are easier to
work with, both for devs and for users.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 4c1bae53c4 wmix: created new file config.c to contain configuration related stuff
Management of the configuration is split in many places, the goal is to
regroup stuff together, starting with the loading from file stuff.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS e2dc01bdc0 wmix: create the PID file only after successful initialisation
The PID file was created at the early beginning, but wmix can abort later
if something is not ok. It is better to create it at the end, so it will
be created only if wmix will actually be running.

Took the opportunity to move the code to a dedicated function to keep main
simple, and added a check to fix possible crash on startup if environment
variable $HOME does not exist.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 8eae1880b9 wmix: removed unused variable because a pixmap's mask is not used
The bitmap mask associated to the Led image on the knob was not used,
probably because the visual gain is negligible compared to the added
complexity to handle it.
So, as compiler warned about it, remove the variable.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 2d191d0e6c wmix: do not risk a crash (null-pointer-dereference) if $DISPLAY is not set
The original code merely assumed that an XOpenDisplay failure was caused
only by incapacity to connect to the X server, but if $DISPLAY was not set
then the fprintf would be given a NULL pointer which it may not appreciate
(depending on the libc in use).
Let's avoid that case and try to provide more info to help the user.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 4be6166084 wmix: fixed makefile to use PREFIX in a standard way (and with the standard default path)
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS f5e5d2ffcb wmix: changed the makefile to use the standard practice LIBS variable for libraries
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 65f5baad33 wmix: install the man page at the same time as the program 2014-06-07 21:27:27 +01:00
Christophe CURIS 0243a0b9ed wmix: added description of channel naming in the man page
It may not be easy to understand how channels are names, particularly
when user wants to use a name to exclude a channel from the GUI. This
new sections answers all those questions.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 8833ff91d3 wmix: added new BUGS section in the man page
This is handy to let the user know about the possible strange behaviour he
may encounter and some limitations.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS f18ecf27e9 wmix: more small improvements to the man page
This includes detailing more files of interest to user, spell-checking and
appearance, and few other things.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 46199b9170 wmix: added description of the syntax of the config file in the man page
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00
Christophe CURIS 8e7c63282c wmix: added missing command line options to the man page
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-06-07 21:27:27 +01:00