alsa-utils/alsamixer
Takashi Iwai 5d4442b2cf alsamixer: Allow setting the default background color in config
The recent commit c867aa8a84 ("alsamixer: use background color
instead of COLOR_BLACK") changed the behavior of alsamixer to take the
system default background color instead of black.  This caused
problems on the terminal setups that have bright background colors,
e.g. yellow is very hard to read.

It could be "fixed" by setting up the color configurations in
~/.config/alsamixer.rc, but this needs to change the all colors in
every element, which is pretty cumbersome.  Instead, this patch
extends the config set command to allow user to specify the default
background color.  A user like me can create their own
~/.config/alsamixer.rc file containing the line

  set background black

and the old good black background is back again.

Note that, for achieving the above, we also had to shuffle the
function call order, to parse the config at first, then initialize
curses.  This shouldn't matter for other behavior.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-10-20 17:24:35 +02:00
..
alsamixer.1 alsamixer: Allow setting the default background color in config 2021-10-20 17:24:35 +02:00
bindings.c alsamixer: Replaced hardcoded keys by binding arrays 2020-07-01 16:10:35 +02:00
bindings.h alsamixer: added mouse support 2020-07-01 16:10:35 +02:00
card_select.c alsamixer: increase control device name buffer (sysdefault) 2021-04-15 11:27:42 +02:00
card_select.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
cli.c alsamixer: Allow setting the default background color in config 2021-10-20 17:24:35 +02:00
colors.c alsamixer: Allow setting the default background color in config 2021-10-20 17:24:35 +02:00
colors.h alsamixer: Allow setting the default background color in config 2021-10-20 17:24:35 +02:00
configparser.c alsamixer: Allow setting the default background color in config 2021-10-20 17:24:35 +02:00
configparser.h alsamixer: added configuration file parser 2020-07-01 16:10:35 +02:00
curskey.c alsamixer: added configuration file parser 2020-07-01 16:10:35 +02:00
curskey.h alsamixer: added configuration file parser 2020-07-01 16:10:35 +02:00
device_name.c alsamixer: small optimizations 2020-07-01 16:10:35 +02:00
device_name.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
die.c alsamixer: Fix X-win related crash for PulseAudio plugin (bad linking) 2011-11-02 17:27:47 +01:00
die.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
go amixer/alsamixer - updated go scripts for debugging 2007-07-11 10:12:24 +02:00
mainloop.c alsamixer: Check the availability of mouse 2021-10-20 17:24:30 +02:00
mainloop.h alsamixer: added configuration file parser 2020-07-01 16:10:35 +02:00
Makefile.am alsamixer: added configuration file parser 2020-07-01 16:10:35 +02:00
mem.c alsamixer: fix gcc warnings 2018-10-14 17:05:22 +02:00
mem.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
menu_widget.c alsamixer: small optimizations 2020-07-01 16:10:35 +02:00
menu_widget.h alsamixer: small optimizations 2020-07-01 16:10:35 +02:00
mixer_clickable.c alsamixer: added mouse support 2020-07-01 16:10:35 +02:00
mixer_clickable.h alsamixer: added mouse support 2020-07-01 16:10:35 +02:00
mixer_controls.c alsamixer: fix gcc warnings 2018-10-14 17:05:22 +02:00
mixer_controls.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
mixer_display.c alsamixer: remove unused variable y in display_scroll_indicators() 2021-01-11 10:41:42 +01:00
mixer_display.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
mixer_widget.c alsamixer: Use a struct for storing color attributes 2020-07-01 16:10:35 +02:00
mixer_widget.h alsamixer: added mouse support 2020-07-01 16:10:35 +02:00
proc_files.c alsamixer: small optimizations 2020-07-01 16:10:35 +02:00
proc_files.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
textbox.c alsamixer: small optimizations 2020-07-01 16:10:35 +02:00
textbox.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
utils.c alsamixer: remove wrong free(buf) call in read_file() 2020-07-01 16:16:24 +02:00
utils.h alsamixer: added configuration file parser 2020-07-01 16:10:35 +02:00
volume_mapping.c alsamixer: Remove exp10 usage 2019-09-03 12:17:41 +02:00
volume_mapping.h alsamixer: use cubic scale for volume bars 2010-12-06 14:07:48 +01:00
widget.c alsamixer: remove dead fcn widget_handle_key() in widget.c 2021-01-11 10:40:53 +01:00
widget.h alsamixer: fix gcc warnings 2018-10-14 17:05:22 +02:00