Age | Commit message (Collapse) | Author |
|
The rationale of the code is explained in the header:
http://git.alsa-project.org/?p=alsa-utils.git;a=blob;f=alsamixer/volume_mapping.c;h=1c0d7c45e6686239464e1b0bbc8983ea57f3914f;hb=HEAD
> The mapping is designed so that the position in the interval is
> proportional to the volume as a human ear would perceive it (i.e., the
> position is the cubic root of the linear sample multiplication
> factor).
and the commit message:
http://git.alsa-project.org/?p=alsa-utils.git;a=commit;h=34bb514b5fd1d6f91ba9a7b3a70b0ea0c6014250
> use a mapping where the bar height is proportional to the audible
> volume, i.e., where the amplitude is the cube of the bar height.
and further explanation can be found in the pull request:
https://github.com/i3/i3status/pull/268#pullrequestreview-147429763
|
|
|
|
its now possible to have percentage before and after a variable. except
for the date. But percentage with dates does not make much sense to me, so
i skipped it.
|
|
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
|
|
On some hardware the AUDIO_MIXER_READ ioctl requires the current number
of channels to be set, and the mute device found needs to be checked if
it belongs to the master output device.
|
|
|
|
|
|
* add audio(4) code by Robert Nagy
* disable PulseAudio
While at OpenBSD support, add "-pthread" to LIBS.
|
|
|
|
|
|
|
|
Follow the changed done for Linux on f0cd726b
|
|
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.
|
|
fixes #1353
|
|
If the volume is muted, the volume level would simply be displayed as zero and the color changed to color_degraded.
This patch lets the user define a custom format string for when the volume is muted.
The default value is "♪: 0%" ("♪: %volume" being the usual format).
|
|
This fix the following bug:
If you switch your sound card on-the-fly, print_volume continued to
use the old sound card.
|
|
Otherwise, i3bar will display “SPEC VIOLATION” because full_text is
missing in the block.
|
|
make mixer_idx load the default mixer
|
|
|
|
|
|
|
|
This fixes compilation on !linux
|
|
fixes #743
|
|
i3status (Thanks Artemis)
The former made i3bar crash, the latter is helpful for debugging.
|
|
|
|
|
|
|
|
This hardcodes all the JSON parts. Strings are not properly escaped currently.
The best/easiest way to fix this is by actually using libyajl.
|
|
|
|
|
|
|