diff options
author | Watcom Hecht <watcom.hecht@gmail.com> | 2015-03-11 13:29:32 -0300 |
---|---|---|
committer | Watcom Hecht <watcom.hecht@gmail.com> | 2015-04-03 17:57:40 -0300 |
commit | 1710c206cf82330815b6db82316eb422f8be5370 (patch) | |
tree | 4c88b35c692ede73e01d2024184aa2d802553824 /man | |
parent | 40d29483c0f7f07645c124fdd76be100c11db4e5 (diff) |
PulseAudio support for volume input
Diffstat (limited to 'man')
-rw-r--r-- | man/i3status.man | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/man/i3status.man b/man/i3status.man index 84f1d13..502f391 100644 --- a/man/i3status.man +++ b/man/i3status.man @@ -422,13 +422,26 @@ details on the format string. === Volume -Outputs the volume of the specified mixer on the specified device. Works only -on Linux because it uses ALSA. -A simplified configuration can be used on FreeBSD and OpenBSD due to -the lack of ALSA, the +device+ and +mixer+ options can be -ignored on these systems. On these systems the OSS API is used instead to -query +/dev/mixer+ directly if +mixer_dix+ is -1, otherwise -+/dev/mixer++mixer_idx+. +Outputs the volume of the specified mixer on the specified device. PulseAudio +and ALSA (Linux only) are supported. If PulseAudio is absent, a simplified +configuration can be used on FreeBSD and OpenBSD due to the lack of ALSA, the ++device+ and +mixer+ options can be ignored on these systems. On these systems +the OSS API is used instead to query +/dev/mixer+ directly if +mixer_idx+ is +-1, otherwise +/dev/mixer++mixer_idx+. + +To get PulseAudio volume information, one must use the following format in the +device line: + + device = "pulse" + +or + + device = "pulse:N" + +where N is the index of the PulseAudio sink. If no sink is specified the +default is used. If the device string is missing or is set to "default", +PulseAudio will be tried if detected and will fallback to ALSA (Linux) +or OSS (FreeBSD/OpenBSD). *Example order*: +volume master+ @@ -445,6 +458,14 @@ volume master { mixer_idx = 0 } ------------------------------------------------------------- +*Example configuration (PulseAudio)*: +------------------------------------------------------------- +volume master { + format = "♪: %volume" + format_muted = "♪: muted (%volume)" + device = "pulse:1" +} +------------------------------------------------------------- == Universal module options |